请选择 进入手机版 | 继续访问电脑版

VirtualBox非官方中文论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 1718|回复: 0

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

[复制链接]

28

主题

28

帖子

39万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
390179
发表于 2017-6-1 21:09:37 | 显示全部楼层 |阅读模式

[物理主机系统:OS X]

,[虚拟机系统:Windows hosts » Windows 10]

由于老外描述的比较直接易懂,就懒得翻译了,按步骤操作即可,正文如下:
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已经装好,通过上面的步骤就可以直接用了,但是一定记好分区编号,别搞错了


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|VirtualBox非官方中文论坛 ( 蜀ICP备16014044号 )

GMT+8, 2018-10-22 19:01 , Processed in 0.034054 second(s), 7 queries , Gzip On, APC On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表