在同一台机器使用Hyper-v和VMWare
2013-08-02 17:49
260 查看
Booting Hyper-V and VMWare on the Same Headless Machine |
General | |||||||
Written by Darwin Sanoy | |||||||
Thursday, May 6, 2010 3:34am | |||||||
Share on email Share on favoritesShare on printShare on twitterShare on twitthisShare on diggShare on technoratiShare on linkedinShare on igoogleShare on googlebuzzShare on googleShare on stumbleupon More Sharing Services This week I built a virtualization server on the cheap. I wanted to be able to test with both Hyper-V and VMware workstation on the same configuration. However, once you add the Hyper-V server role, the parent partition becomes virtualized as well. VMWare Workstation detects this situation and simply shows an abort message. I found this excellent article that tells of how to create a boot option to turn off Hyper-V. If you do not disable Hyper-V then VMWare Workstation gives the error “VMware Workstation and Hyper-V are not compatible. You must remove the Hyper-V role from your system to run VMware Workstation.” when you attempt to start a virtual machine. Here are the steps from the above link outlined: At the command prompt, type the following: bcdedit /copy {default} /d "No Hypervisor" The above command should say: The entry was successfully copied to {guid}. Copy that guid to the clipboard including the curly braces. Now, type the following command: bcdedit /set {guid_hvoff} hypervisorlaunchtype off In the above command, replace {guid_hvoff} with what you copied in step 2. The above command just sets a property in the boot entry that will not load the hypervisor on boot. Now I had just one more problem – the machine I am using will be headless and in another location. So how to switch back and forth between the options? Here is how to create two shell scripts to swap back and forth. Like this script? Subscribe to our newsletter (without loosing your place in this article). In a file called Restart-HyperV-OFF.cmd copy and edit this text: @echo off bcdedit /default {guid_hvoff} echo. echo Press any key to restart or CTRL-C to cancel pause shutdown /r /t 0 /d p:0:0 Note that {guid_hvoff} is the same guid that you just copied for the bcdedit command above. This shell script can now boot with Hyper-V off. The only way to know the guid of the “Hyper-V on” guid is to boot into Hyper-V off and enumerate the existing guids. Run Restart-HyperV-OFF.cmd After the reboot, run the following command: bcdedit /enum Find the “Windows Boot Loader” section that has the setting “hypervisorlaunch Auto” Copy the {guid_hvon} from the “identifier” field of the same Windows Boot Loader section. (Note: If the identifier says “{current}” then you did not successfully boot into the non-hypervisor boot configuration.) In a file called Restart-HyperV-ON.cmd copy and edit this text: @echo off bcdedit /default {guid_hvon} echo. echo Press any key to restart or CTRL-C to cancel pause shutdown /r /t 0 /d p:0:0 Note that you must replace {guid_hvon} with the guid you copied in the earlier step. Looks like I will be using VMWare workstation over Hyper-V due to these factors: VM Portability (Hyper-V VMs cannot be shared back and forth with Virtual PC reliably). VMWare Teams (management of Groups of VMs). VM Clones. Ability to do USB pass through to VMs. And Using VMWare Workstation over ESXi due to: Storage of VMs on NTFS (I like the freedom to move drives in and out of the server without moving data and reformatting). It could not use the integrated NIC on the motherboard - chewing up a precious PCI slot on a board that only has two.
|
相关文章推荐
- eclipse CDT 怎样使用另外一台机器上的cygwin
- 怎样使用局域网内的一台机器做为代…
- Vmware、Hyper-V、Virtual PC等虚拟机运用usb server硬件服务器使用USB加密狗设备的方法
- 查看同一台机器安装sql2000和sql2005,时打开sql查询分析器,查看当前的数据库引擎。并且如何使用sql2005引擎的问题。
- 在linux下使用rsync将文件定时同步到另外一台机器
- VMware与Hyper—V使用感受
- 【驱动使用】如何在一台PC机器上运行两个CP210X的串口
- (XMPP)如何使用agsxmpp类库登陆已经设置成cluster模式的XMPP服务器中的其中一台机器?
- 使用ARP欺骗, 截取局域网中任意一台机器的网页请求,破解用户名密码等信息
- 一台机器连接上了打印机,怎么共享给其他人使用?
- MsSQL server连接另外一台机器数据库,共享使用数据表的2种方法
- 一台机器运行多个mysql服务(mysqld_multi的使用)
- 如何使用局域网中一台机器搭建面向广域网的Web服务器: DMZ主机
- 使用VMware 的P2V功能 将一台物理计算机操作系统克隆为一个虚拟机
- MxNet教程:使用一台机器训练1400万张图片
- MsSQL server连接另外一台机器数据库,共享使用数据表的2种方法
- 示例在同一台机器上使用RMAN克隆数据库
- 同一台机器如何同时使用多个Git账号
- Linux下使用expect和另外一台机器通过SSH进行持续性交互
- 同一台机器如何同时使用多个Git账号