Page 1 of 1

Run boot camp windows in virtualbox, some questions

Posted: 16. Sep 2011, 02:58
by DrD
I have been able to successfully run windows 7 - boot camp in virtualbox by following this guide:
http://luckyviplav.blogspot.com/2011/06 ... rtual.html

One little detail - I had to choose 'PIIX4' instead of 'ICH6', in order to get past the blue screen of death - unlike what he suggests.
Anyhow, onto the question. I choose not to permanently unmount my boot camp partition, and just eject it like the article mentions. I then noticed that I have to run the command: "sudo chmod 777 /dev/disk0s3" every time before starting windows 7. To be more accurate, I need to run this after ejecting the drive in finder, every time after a restart (say, after running win7 natively and go back into OSX).

The need to eject BOOTCAMP is understandable, but I would like to know of a way to skip running the terminal command every time... either by making the chmod effects permanent... or if that fails, possibly figure out a way to automate said command every time I run 'Windows 7' in virtualbox. Or anything else clever you can come up with, so long as I don't have to run that command over and over and over. Thanks for any worthwhile suggestions!

Re: Run boot camp windows in virtualbox, some questions

Posted: 16. Sep 2011, 09:58
by pbaekdal
DrD,

have another look at the page (http://luckyviplav.blogspot.com/2011/06 ... rtual.html) ...

Go down to the part headed '1. Prepare the Mac system for installation' and you'll find how to edit the etc/rc.local file to include the 'diskutil unmount' and the 'chmod' commands. The etc/rc.local file is executed every time the system is booted into OSX so this should work for you - it worked for me.

Cheers,
Pete.

Re: Run boot camp windows in virtualbox, some questions

Posted: 18. Sep 2011, 22:30
by DrD
Yup, that worked. My bad - I skipped that part (in my laziness), because I assumed it only applied to those who unmount their bootcamp partition permanently.

So I just added: "sudo chmod 777 /dev/disk0s3"
to the /etc/rc.local file, and left off the unmount command.

Restarted the computer, and now I can just eject 'bootcamp' myself, and it starts up perfectly. Thanks for the pointer.