Permission issues VirtualBox.xml

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
SMNetAd
Posts: 2
Joined: 18. Mar 2011, 16:26
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Windows 7 Pro

Permission issues VirtualBox.xml

Post by SMNetAd »

I am having the exact same issue new MBPro i7. Shamblin explained the issue perfectly just trying to post under different title.
shamblin wrote:Sorry, I have trouble with the tab key in this environment.

To continue

I have
created /Users/Shared/VirtualBox
edited /etc/Launchd.conf to contain setenv VBOX_USER_HOME /Users/Shared/VirtualBox
installed VirtualBox 4.0.4
changed the default machine folder to /Users/Shared/VirtualBox
this created VirtualBox.xml, VirtualBox.xml-prev with permissions 600 and compreq.dat and xpti.dat with permissions 644 in /Users/Shared/VirtualBox
I changed VirtualBox.xml* to 777
created a new machine
this changed VirtualBox.xml* back to 600
I installed and ran Windows XP

logged on as a different user
started VirtualBox
received error "Failed to create VirtualBox COM obj" Could not open VirtualBox.xml
in terminal i changed VirtualBox.xml to 777
started VirtualBox
started VM
received error "Windows/Windows.vbox"
I changed Windows.vbox to 777
started VM
received error Windows/Logs/VBox.logs
I changed VBox.logs to 777
started VM
error Windows/Windows.vdi
changed Windows.vdi to 777
started VM and ran OK

When I closed the VM VirtualBox.xml permissions had been reset to 600 and owner changed to the user I was logged on as.

I logged back on to the Mac as the original install account and couldn't start the VirtualBox without changing permissions on VirtualBox.xml

Could some one help?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Permission issues VirtualBox.xml

Post by Perryg »

Use the MAC utility to reset the permissions.
SMNetAd
Posts: 2
Joined: 18. Mar 2011, 16:26
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Windows 7 Pro

Re: Permission issues VirtualBox.xml

Post by SMNetAd »

Perryg I appreciate any help but can you please elaborate on what you mean by MAC utility?

Perryg wrote:Use the MAC utility to reset the permissions.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Permission issues VirtualBox.xml

Post by Perryg »

shamblin
Posts: 7
Joined: 16. Mar 2011, 21:09
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux(CentOS),Windows XP

Re: Permission issues VirtualBox.xml

Post by shamblin »

A solution:

I wrote a logout script to change the permissions on /Users/Shared/VirtualBox/VirtualBox.xml
/Users/Shared/VirtualBox/Windows/Windows.xml
/Users/Shared/VirtualBox/Windows/Logs/VBox.log

http://developer.apple.com/library/mac/ ... ementID_59
provides info on how make the script execute on logout.

my script is simply:

#!/bin/bash
chmod 666 /Users/Shared/VirtualBox/VirtualBox.xml
...

If you come up with something better let me know.
shamblin
Posts: 7
Joined: 16. Mar 2011, 21:09
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux(CentOS),Windows XP

Re: Permission issues VirtualBox.xml

Post by shamblin »

Sorry that's Windows.vbox and VBox.log
Post Reply