mac os通过VirtualBox直接运行Boot Camp 下的windows10

由于老外描述的比较直接易懂,就懒得翻译了,按步骤操作即可,正文如下:

Notes for using Windows 10 Boot Camp disk with VirtualBox

25 Aug 2015


Some notes on how I got VirtualBox to boot from my Windows 10 Boot Camp drive. This will let you share a Windows install between Boot Camp and VirtualBox.


Things I installed
Windows 10 x64 using the OS X Boot Camp assistant
VirtualBox 5.0.10 (version I installed was VirtualBox-5.0.10-104061-OSX)
Accompanying VirtualBox extensions (Oracle_VM_VirtualBox_Extension_Pack-5.0.10-104061.vbox-extpack). I’m not really sure if I needed this, but installed it anyway.
Disabling SIP
I had to disable System Integrity Protection on El Capitan (OS X 10.11) to get this to work.


Setting drive permissions
Firstly, run diskutil list to get a list of drives on your system. Take a note of the drive number of the drive named EFI and the other one named BOOTCAMP. (The BOOTCAMP drive might have a different name depending on what you’ve called it). In my case, the EFI drive was 1 and the BOOTCAMP drive was 4.


Now run the following to unmount your Bootcamp drive and set permissions so that VirtualBox can access the drive. You’ll need to perform this each time you reboot.


diskutil unmount /Volumes/BOOTCAMP
sudo chmod 777 /dev/disk0s1 <--- This is the drive no. of the EFI disk
sudo chmod 777 /dev/disk0s4 <--- This is the drive no. of the BOOTCAMP disk

Creating the VirtualBox image
Run the following commands to create a VirtualBox disk image wrapper for your HD. Substitute the 1,4 with the numbers of your EFI and BOOTCAMP partitions as appropriate and put your OS X username in for your_username_here.


sudo VBoxManage internalcommands createrawvmdk -rawdisk /dev/disk0 -filename win10raw.vmdk -partitions 1,4
sudo chown your_username_here *.vmdk

Creating the VM

Finally, set up VirtualBox as indicated in the following screenshots, and you should now be able to run your Windows 10 install.

补充:如果boot camp下的win10已经装好,通过上面的步骤就可以直接用了,但是一定记好分区编号,别搞错了


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值