Menu Bar --> VirtualBox --> Preferences --> General tab --> Default Machine Folder
위 설정에서 옵션을 변경해서 기본으로 복제(생성)되는 vdi파일이 저장될 위치를 지정할 수 있습니다.
또한 command line으로도 가능한 것으로 보입니다.
위 설정에서 옵션을 변경해서 기본으로 복제(생성)되는 vdi파일이 저장될 위치를 지정할 수 있습니다.
또한 command line으로도 가능한 것으로 보입니다.
Failed to open a session for the virtual machine 7.
The virtual machine '7' has terminated unexpectedly during startup with exit code 1 (0x1).
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MachineWrap
Interface: IMachine {f30138d4-e5ea-4b3a-8858-a059de4c93fd}
위와 같은 에러가 나타나면서 실행이 안되었습니다.
아래 붉은색 명령어를 입력하니 실행이 되더군요^^
[root@localhost ~]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules [ OK ]
Recompiling VirtualBox kernel modules^[[A
^[[A^[[B^C
[root@localhost ~]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules [ OK ]
Recompiling VirtualBox kernel modules [ OK ]
Starting VirtualBox kernel modules [ OK ]
검색하여 보니 아래와 같은 답변도 있군요.
The reason, why the module can not be built are, as the error suggest, missing kernel header files.
Install them with
sudo apt-get install linux-headers-generic
It will install a meta-package that always points to the latest kernel headers in the repository. If a new kernel is available and installed during a system update, the appropriate headers are going to be installed automatically as well.
Afterwards, try to install the vboxdrv
modules again.
출처 : http://askubuntu.com/questions/676992/virtualmachine-5-dosnt-work-after-upgrade-linux-mint-to-17-1
서버 매니저에서 Add Roles and Features Wizard를 실행합니다.
Features에 Remote Server Adminstration Tool > Hyper-V Management Tool을 선택한 후 설치하면 됩니다.
출처 및 동영상
https://youtu.be/K4UI4ENknGs
apache web server 80을 운영하다가 vmware를 설치한 후 web서버가 실행되지 않았습니다.
vmware에 workstation server setting에 enable virtual machine sharing and remote access를 비활성화하니 해결되는군요.
해당 기능이 필요하다면 포트를 변경도 가능해 보입니다.
출처 : http://superuser.com/questions/414717/trying-to-run-apache-but-vmware-workstation-is-blocking-port-80
2017/7/7 CentOS 7 + virtualbox 최신에서도 아래 명령어로 잘 작동되었습니다.
출처 : http://www.bradleyschacht.com/virtualbox-cannot-register-the-hard-drive-because-a-hard-drive-with-uuid-already-exists/
vboxmanage 를 이용하여 UUID를 변경하여 이 문제를 해결 할 수 있습니다. 아래 참고..
Virtualization is awesome! It really helps when you are a developer. On my laptop I don’t even have SQL Server installed on the OS directly. In fact the only thing I have installed on my host is Office, Skype and Chrome. Everything else gets run on a VM.
SSIS package creation using BIDS: VM.
SQL Server Management Studio: VM.
SharePoint sandbox: VM
VPN: VM.
One of the advantages of doing this is you don’t have to worry about screwing something up. I have a snapshot on the VM just before I installed SQL Server. So if something happens and my install gets corrupted I will just roll it back and reinstall SQL Server rather than the entire OS plus SQL Server. Currently to do all this I am using Oracle’s VirtualBox software. It works great for those of us who have Windows 7 and allows you to run both x86 and x64 virtual machines. I recently tried to make a copy of one of my VHDs (Virtual Hard Drive) and create a new VM. Everything was wonderful until I got this error:
Failed to open the hard disk <FilePath>.
Cannot register the hard disk <FilePath><GUID> becuase a hard disk <DifferentFilePath> with UUID <GUID> already exists.
I looked all over the place to find what was causing it and finally found a fix. Of course it requires the command prompt, so open that junk up and let’s get started!
**Note that I am on VirtualBox version 4.1.6 and from what I’ve read this command used to be something different a few versions ago. I think instead of setdhuuid it was setvdiuuid, but don’t hold me to that.**
Note that internalcommands and sethduuid need to be lowercase. I spent more than a couple minutes trying to figure out why things weren’t working.
Below is the output of me changing the ID of the VHD located at C:\Users\bschacht\VirtualBox VMs\Windows XP (VPN) Copy.vhd
파워쉘로 Hyper-V 제어하기
출처 : http://technet.microsoft.com/en-us/library/hh848559.aspx
Updated: June 10, 2014
Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2
Windows PowerShell® is a task-based command-line shell and scripting language designed especially for system administration. This reference topic for the information technology (IT) professional provides assistance in utilizing the Windows PowerShell cmdlets to script and automate tasks.
This reference provides cmdlet descriptions and syntax for all Hyper-V-specific cmdlets. It lists the cmdlets in alphabetical order based on the verb at the beginning of the cmdlet.
cmdlet | Description |
---|---|
Installs a DVD drive in a virtual machine (VM). | |
Installs a virtual Fibre Channel host bus adapter in a virtual machine (VM). | |
Installs a hard disk drive in a virtual machine (VM). | |
Adds a network to the list of networks that can be used for virtual machine (VM) migration. | |
Installs a network adapter in a virtual machine (VM). | |
Creates an access control list (ACL) to apply to the traffic sent or received by a virtual machine (VM) network adapter. | |
Creates an extended ACL for a virtual network adapter. | |
Adds a routing domain and virtual subnets to a virtual network adapter. | |
Installs a RemoteFX video adapter in a virtual machine (VM). | |
Installs a SCSI controller in a virtual machine (VM). | |
Adds a path to a storage resource pool. | |
Adds a network to a resource pool. | |
Adds a flow sheet document (FSD) to a virtual network adapter in a virtual machine or the management operating system (which runs the Hyper-V role). | |
Adds a flow sheet document (FSD) to a virtual switch. | |
Creates a checkpoint of a virtual machine (VM). | |
Compares a virtual machine (VM) to a host and returns a compatibility report. | |
Completes the failover process of the virtual machine (VM). | |
Connects a virtual network adapter to a virtual network. | |
Associates a host bus adapter with a virtual storage area network (VMSAN). | |
Converts the format version and type of virtual hard disk file of a virtual machine (VM). | |
Copies a file to a virtual machine. | |
Debugs a virtual machine. | |
Disables virtual machine eventing. | |
Disables an integration service on a virtual machine (VM). | |
Disables migration on one or more virtual machine hosts. | |
Disables a particular RemoteFX physical graphics processing unit (GPU) adapter for use with a RemoteFX virtual machine (VM). | |
Disables resource utilization data collection for a virtual machine (VM) or a resource pool. | |
Disables one or more extensions —and the feature sets associated with each extension— for one or more specified switches. | |
Disconnects a virtual network adapter from a virtual network or a network resource pool. | |
Removes a host bus adapter from a virtual storage area network (VMSAN). | |
Specifies the path to the files representing the virtual hard disks to be dismounted. | |
Enables the automatic refresh of Hyper-V objects —"live" objects— for the current Windows PowerShell session. | |
Enables an integration service on a virtual machine (VM). | |
Enables migration on one or more Hyper-V hosts. | |
Enables one or more RemoteFX physical video adapters for use with RemoteFX-enabled virtual machines. | |
Enables replication of a virtual machine. | |
Enables the collection of resource utilization data for one or more virtual machines (VM) or resource pools. | |
Enables one or more extensions —and the feature sets associated with each extension— on one or more specified virtual switches. | |
Exports a virtual machine (VM) to disk. | |
Exports a checkpoint as a virtual machine (VM) and writes it to disk. | |
Creates a VHDObject for each virtual hard disk file specified by path or associated with a virtual machine (VM). | |
Retrieves a VMObject for each virtual machine (VM) on the Hyper-V host. | |
Retrieves the BIOS configuration of a virtual machine (VM). | |
Retrieves a list of the COM ports associated with a virtual machine (VM). | |
Retrieves a list of users that have access to connect to a virtual machine (VM). | |
Retrieves a list of DVD drives that are attached to a virtual machine (VM). | |
Retrieves a list of all Fibre Channel host bus adapters associated with a virtual machine (VM). | |
Gets the firmware configuration of a virtual machine. | |
Retrieves a list of floppy disk drives that are attached to a virtual machine (VM). | |
Retrieves a list of the hard disk drives that are attached to a virtual machine (VM). | |
Retrieves the configuration of a Hyper-V host. | |
Retrieves the NUMA topology of a Hyper-v host. | |
Retrieves a list that associates each virtual machine (VM) with the allocated resources for each NUMA Node on the host. | |
Retrieves a list of the IDE controllers associated with a virtual machine (VM). | |
Retrieves the integration services configuration of a virtual machine (VM). | |
Retrieves the memory configuration of a virtual machine (VM). | |
Retrieves a list of the networks that have been added for migration on a Hyper-V host. | |
Retrieves a list of the virtual network adapters of a virtual machine (VM), the management operating system, or both. | |
Retrieves an access control list (ACL) configured for a virtual machine (VM) network adapter. | |
Gets extended ACLs configured for a virtual network adapter. | |
Retrieves the Failover IP settings on a virtual machine (VM) network adaptor. | |
Gets isolation settings for a virtual network adapter. | |
Gets members of a routing domain. | |
Retrieves virtual local area network (VLAN) settings configured on a virtual network adapter. | |
Retrieves the processor configuration of a virtual machine (VM). | |
Retrieves the RemoteFX adapter of a virtual machine (VM). | |
Retrieves a list of physical graphics processing unit (GPU) adapters in the server that can be used with RemoteFX. | |
Retrieve a list of virtual machine (VM) replication plans or a specific replication plan and associated settings. | |
Retrieve the authorization list or a specific authorization entry. | |
Retrieves the authentication details of the recovery server. | |
Retrieves the resource pools that meet the specified criteria. | |
Retrieves a list of virtual storage area networks (VMSANs) available on a host. | |
Retrieves the virtual SCSI controllers for a virtual machine (VM). | |
Retrieves a list of the checkpoints of a virtual machine (VM). | |
Retrieves a list of the paths in a storage resource pool. | |
Retrieves the virtual network from a virtual machine (VM) host. | |
Retrieves a list of the switch extensions on one or more virtual switches. | |
Retrieves the status or the statistics for the extension of a virtual switch (VMSwitch) applied on a virtual network adapter. | |
Retrieve features configured on a virtual network adapter. | |
Retrieves the status or the statistics for the extension of a virtual switch (VMSwitch) applied on a VMSwitch. | |
Retrieves features configured on a virtual switch (VMSwitch). | |
Retrieves a list of the switch extensions that are installed on a physical server at a system level. | |
Retrieves the default instance of the port level feature or features available in an extension at a system level. | |
Retrieves the default instance of the switch level feature or features available in an extension at a system level. | |
Grants a user access to connect to a virtual machine (VM). | |
Imports a virtual machine (VM) from a folder. | |
Imports the initial replication at a recovery site. | |
Retrieves the resource utilization data of virtual machines (VMs). | |
Retrieves statistics related to the replication of a virtual machine. | |
Retrieves the resource utilization information for a resource pool. | |
Merges virtual hard disks (VHDs) in a differencing virtual hard disk (VHD) chain. | |
Mounts one or more virtual hard disks (VHDs) specified by one or more virtual hard disk (VHD) files. | |
Migrates an offline virtual machine (VM) or Live Migrates a running virtual machine (VM). | |
Moves the storage of a virtual machine (VM). | |
Creates a virtual floppy disk. | |
Creates one or more new virtual hard disk (VHD) files. | |
Creates a new virtual machine (VM). | |
Creates an authorization entry containing the allowed primary server and corresponding replica storage. | |
Creates a resource pool. | |
Creates a new virtual storage area network (VMSAN) on a Hyper-V host. | |
Creates a new virtual network switch on a Hyper-V host. | |
Compacts one or more dynamic or differencing virtual hard disk (VHD) files. | |
Deletes the configuration file for a virtual machine. | |
Deletes one or more virtual DVD drives from a virtual machine (VM). | |
Deletes a Fibre Channel host bus adapter from a virtual machine (VM) configuration. | |
Deletes one or more virtual hard disks (VHDs) from a virtual machine (VM). | |
Deletes a network from the list of networks that can be used for virtual machine (VM) migration. | |
Deletes one or more network adapters from a virtual machine (VM). | |
Deletes an access control list (ACL) applied to a virtual machine (VM) network adapter for traffic that is sent or received. | |
Removes an extended ACL for a virtual network adapter. | |
Removes a virtual subnet from a routing domain. | |
Deletes a RemoteFX adapter from a virtual machine (VM). | |
Delete the replication relationship for a virtual machine. | |
Deletes an authorization entry. | |
Deletes a resource pool. | |
Deletes a virtual storage area network (VMSAN) from a Hyper-V host. | |
Deletes the saved state of a saved virtual machine (VM). | |
Deletes one or more SCSI controllers from a virtual machine (VM). | |
Deletes a checkpoint or checkpoint tree. | |
Deletes a path from a virtual machine (VM) storage resource pool. | |
Deletes a virtual network. | |
Deletes a flow sheet document (FSD) from a virtual network adapter. | |
Deletes a flow sheet document (FSD) from a virtual switch. | |
Renames a virtual machine (VM). | |
Renames a virtual network adapter on a virtual machine or on the management operating system. | |
Renames a resource pool. | |
Renames an existing virtual machine storage area network (VMSan). | |
Renames a checkpoint. | |
Renames a virtual network. | |
Restores one or more virtual machines (VMs) to usable condition based upon adjustments ─fixes─ contained in each compatibility report. | |
Resets the data collected about resource utilization for a virtual machine (VM) or a resource pool. | |
Resets the resource utilization data collected by Hyper-V resource metering. | |
Resize a virtual hard disk (VHD). | |
Restarts a virtual machine (VM) immediately with shutting down the operating system. | |
Restores a virtual machine (VM) checkpoint. | |
Resumes a paused (suspended) or saved (hibernated) virtual machine (VM). | |
Resumes the replication of a virtual machine (VM). | |
Revokes the access assigned to a user for connections to a virtual machine (VM). | |
Saves a virtual machine (VM). | |
Modifies the differencing virtual hard disk (VHD) chain settings to assign the parent of a virtual hard disk file (VHD). | |
Modifies the properties for a virtual machine (VM). | |
Modifies the BIOS settings of a virtual machine (VM). | |
Modifies the virtual COM port settings for a virtual machine (VM). | |
Modifies the virtual DVD drive settings for a virtual machine (VM). | |
Modifies the existing Fibre Channel host bus adapter settings for a virtual machine (VM). | |
Sets the firmware configuration of a virtual machine. | |
Modifies the virtual floppy drive (VFD) settings for a virtual machine (VM). | |
Modifies the virtual hard disk (VHD) drive settings for a virtual machine (VM). | |
Modifies the settings for a Hyper-V host. | |
Modifies the memory settings for a virtual machine (VM). | |
Sets the subnet, subnet mask, and/or priority of a migration network. | |
Modifies the network adapter settings for a virtual machine (VM). | |
Modifies the Failover IP settings of the network adapter for a virtual machine (VM). | |
Modifies isolation settings for a virtual network adapter. | |
Sets virtual subnets on a routing domain. | |
Modifies the virtual local area network (VLAN) settings configured on a virtual machine (VM) network adapter. | |
Modifies the virtual processor settings for a virtual machine (VM). | |
Modifies the RemoteFX adapter settings for a virtual machine (VM). | |
Modifies the replication relationship settings for a virtual machine (VM). | |
Modifies the authorization entry for a virtual machine (VM). | |
Modifies the settings that specify the server authentication and the associated ports of the recovery server for a virtual machine (VM). | |
Modifies the settings that specify the relationship between two resource pools. | |
Modifies the existing virtual machine storage area network (VMSAN) settings on the Hyper-V host. | |
Modifies the virtual network settings for a virtual machine (VM). | |
Modifies an existing flow sheet document (FSD) of a virtual machine network interface controller (VMNIC) or parent virtual network interface controller (VNIC) for a virtual machine (VM). | |
Modifies an existing flow sheet document (FSD) of a vmswitch for a virtual machine (VM). | |
Intiates a virtual machine (VM) that is shutdown —off—, hibernated —saved—, or suspended —paused—. | |
Initiates the failover of a virtual machine (VM). | |
Initiates the replication for a virtual machine (VM). | |
Discontinues running an active virtual machine (VM). | |
Discontinues an on-going failover for a virtual machine (VM). | |
Discontinues an on-going replication for a virtual machine (VM). | |
Discontinues an on-going resync operation for a virtual machine (VM). | |
Pauses an active virtual machine (VM). | |
Pauses replication for a virtual machine (VM). | |
Tests the connection configured for replication traffic. | |
Verifies the usability of one of more virtual hard disk (VHD) files. |
Note |
---|
To view a list all the cmdlets that are available for Hyper-V, run the Get-Command -Module Hyper-V command. |
For more information about, or for the syntax of, any of the cmdlets, use the Get-Help
<cmdlet name> cmdlet, where <cmdlet name> is the name of the cmdlet that you want to research. For more detailed information, you can run any of the following cmdlets:
● Get-Help
<cmdlet name> -Detailed
● Get-Help
<cmdlet name> -Examples
● Get-Help
<cmdlet name> -Full