sharing folders

Discussions related to using VirtualBox on Windows hosts.
Post Reply
MoonKid
Posts: 11
Joined: 21. May 2007, 16:52

sharing folders

Post by MoonKid »

I tried to share a folder as described in the manual.

But it does not work.

Code: Select all

C:\Programme\InnoTek VirtualBox>VBoxManage sharedfolder add "MultiBoot" -name "V
Bshare" -hostpath "D:\VirtualBoxEnv\share"
VirtualBox Command Line Management Interface Version 1.3.8
(C) 2005-2007 InnoTek Systemberatung GmbH
All rights reserved.

[!] FAILED calling aVirtualBox->OpenSession(aSession, uuid) at line 5528!
[!] Primary RC  = E_ACCESSDENIED (0x80070005) - General access denied error
[!] Full error info present: true , basic error info present: true
[!] Result Code = E_ACCESSDENIED (0x80070005) - General access denied error
[!] Text        = A session for the machine 'MultiBoot' is currently open (or be
ing closed)
[!] Component   = Machine, Interface: IMachine, {fd443ec1-0009-4f5b-9282-d72760a
66916}
[!] Callee      = IVirtualBox, {e1d95593-f579-4f47-b489-0b67181014e1}
achimha
Volunteer
Posts: 217
Joined: 10. May 2007, 09:24

Post by achimha »

The VM is running or saved. Either close it or add a transient shared folder. It's all described in the manual.
tacktick
Posts: 4
Joined: 24. May 2007, 08:46

Post by tacktick »

Yes, you need to software shutdown your virtual machine to put your current state "Off", then you will be able to run the Vboxmanage command.

And I'm sorry, but the manual does not state this little piece of crucial info.
bodhi.zazen
Volunteer
Posts: 180
Joined: 17. May 2007, 16:02

Post by bodhi.zazen »

Yes the manual describes this tidbit of information and also describes the
-transient
Add -transient to the end of VBoxManage .... and you can add a share to a running guest.

The -transient flag is just that, the share will not be there when you re boot the guest.

So to add the share to the guest permanently you will need to run the VBxoManage with the guest powered down.
If is a virtual machine, is it still broken ?
davidesharpe
Posts: 1
Joined: 31. May 2007, 03:05

Similar share issue.

Post by davidesharpe »

I have attempted to create a share using vbmanage and get the following

C:\Program Files\InnoTek VirtualBox>vboxmanage sharedfolder add "Debian4" -name
"vbshare" -hostpath "c:\vbshare"
VirtualBox Command Line Management Interface Version 1.3.8
(C) 2005-2007 InnoTek Systemberatung GmbH
All rights reserved.

[!] FAILED calling machine->CreateSharedFolder(Bstr(name), Bstr(hostpath)) at li
ne 5533!
[!] Primary RC = E_ACCESSDENIED (0x80070005) - General access denied error
[!] Full error info present: true , basic error info present: true
[!] Result Code = E_ACCESSDENIED (0x80070005) - General access denied error
[!] Text = The machine is not mutable
[!] Component = Machine, Interface: IMachine, {fd443ec1-0009-4f5b-9282-d72760a
66916}
[!] Callee = IMachine, {fd443ec1-0009-4f5b-9282-d72760a66916}
[!] FAILED calling machine->SaveSettings() at line 5536!
[!] Primary RC = E_ACCESSDENIED (0x80070005) - General access denied error
[!] Full error info present: true , basic error info present: true
[!] Result Code = E_ACCESSDENIED (0x80070005) - General access denied error
[!] Text = The machine is not mutable
[!] Component = Machine, Interface: IMachine, {fd443ec1-0009-4f5b-9282-d72760a
66916}
[!] Callee = IMachine, {fd443ec1-0009-4f5b-9282-d72760a66916}


Anyone got any ideas ? The VM was closed down at the time
Jacquers
Posts: 17
Joined: 29. May 2007, 09:49
Location: South Africa

Post by Jacquers »

You say the VM was closed down? Or was it suspended, because thats the error I've had when trying to add a share to a suspended VM.

Make sure the VM is powered off and try again or if that doesnt work, power up the VM and add the -transient option to the cmd line.
Post Reply