Cannot change settings/create VM for Virtual Box on Windows

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Thomas d
Posts: 2
Joined: 11. Jul 2013, 11:21

Cannot change settings/create VM for Virtual Box on Windows

Post by Thomas d »

Hello,

I'm new on Virtual Box.
I tried to install Virtual Box on Windows. Everything seemed to work fine.
Then I tried to change the Preferences -> default Machine Folder.
But I had the following error:
Failed to set global VirtualBox properties.

Failed to replace 'C:\Users\Utilisateur Maboite/.VirtualBox\VirtualBox.xml' with 'C:\Users\Utilisateur Maboite/.VirtualBox\VirtualBox.xml-tmp': -38 (Access denied.).

D:\tinderbox\win-4.2\src\VBox\Main\src-server\VirtualBoxImpl.cpp[4151] (long __thiscall VirtualBox::saveSettings(void)).

Result Code: E_FAIL (0x80004005)
Component: VirtualBox
Interface: IVirtualBox {3b2f08eb-b810-4715-bee0-bb06b9880ad2}
Callee: ISystemProperties {1d7aca29-97f0-4287-9874-a60ec4f80ea6}

I can open and copy manually VirtualBox.xml-tmp to VirtualBox. but then I have the same kind of problem when creating a VM.
Has anyone an idea?
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Cannot change settings/create VM for Virtual Box on Wind

Post by noteirak »

Seems like the permissions of the global Virtualbox config file are screwed.
Check that you have write access on C:\Users\Utilisateur Maboite/.VirtualBox\VirtualBox.xml, and if not, give it to yourself.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Thomas d
Posts: 2
Joined: 11. Jul 2013, 11:21

Re: Cannot change settings/create VM for Virtual Box on Wind

Post by Thomas d »

Well, it seems that VirtualBox needs to be executed as an administrator.
Everything seems to work fine now.
Thx for your answer.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Cannot change settings/create VM for Virtual Box on Wind

Post by noteirak »

That's a workaround of your probem, your issue is still present, you're only bypassing it with the Admin rights.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Cannot change settings/create VM for Virtual Box on Wind

Post by Perryg »

Right click the icon used to start VirtualBox -> Shortcuts -> advanced, and make sure that it does not have a check mark on run as administrator.
Post Reply