fault when start with vboxmanage but np with voxheadless....

This is for discussing general topics about how to use VirtualBox.
Post Reply
xzyyy
Posts: 12
Joined: 13. Dec 2011, 11:19
Primary OS: Linux other
VBox Version: OSE Fedora
Guest OSses: windows2003

fault when start with vboxmanage but np with voxheadless....

Post by xzyyy »

[root@www /]# VBoxManage startvm win2003
Waiting for VM "win2003" to power on...
VBoxManage: error: The virtual machine 'win2003' has terminated unexpectedly during startup with exit code 0
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component Machine, interface IMachine, callee

firstly, i set my guest with vrdp(start vm with vboxheadless), but when i open the port 3389 on the guest os, i set vrdp off and start my guest os with vboxmanage startvm, but it failed....
is there any suggestion?
thanks a lot
xzyyy
Posts: 12
Joined: 13. Dec 2011, 11:19
Primary OS: Linux other
VBox Version: OSE Fedora
Guest OSses: windows2003

Re: fault when start with vboxmanage but np with voxheadless

Post by xzyyy »

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

Re: fault when start with vboxmanage but np with voxheadless

Post by Perryg »

Don't run the host as root.
Seriously why are you running as root? Anyway your answers are in the VirtualBox users manual.
VBoxManage startvm must have an additional key, but VBoxHeadless does not.

See chapter 7.1.2 VBoxHeadless, the remote desktop server in your VirtualBox users manual
xzyyy
Posts: 12
Joined: 13. Dec 2011, 11:19
Primary OS: Linux other
VBox Version: OSE Fedora
Guest OSses: windows2003

Re: fault when start with vboxmanage but np with voxheadless

Post by xzyyy »

thanks, i have check the manual and solve the problem.
xzyyy
Posts: 12
Joined: 13. Dec 2011, 11:19
Primary OS: Linux other
VBox Version: OSE Fedora
Guest OSses: windows2003

Re: fault when start with vboxmanage but np with voxheadless

Post by xzyyy »

Hi, Perryg
is there anyway to migrate the vm register by root to another user in linux? i have configured my guest system but i can't list it under a common user.
thanks in advance.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: fault when start with vboxmanage but np with voxheadless

Post by Perryg »

If you have been running and installing everything as root the permissions will all be so restrictive that you are in for some heavy work figuring it all out.

Normally you would simply set the VBOX_USER_HOME environment and be done with it, but that probably will not help much in this case.
See chapter 10.1.3 Global configuration data in your VirtualBox users guide.
xzyyy
Posts: 12
Joined: 13. Dec 2011, 11:19
Primary OS: Linux other
VBox Version: OSE Fedora
Guest OSses: windows2003

Re: fault when start with vboxmanage but np with voxheadless

Post by xzyyy »

Hi Perryg,
Thanks for your help firstly, i try to solve the problem, cp all files including global setting and guest setting files to /home/vboxuser/, change all files owner to vboxuser, now i can find my guest system with VBoxManage, but when i start it without VRDE, it returns me the same error.
Waiting for VM "win2003" to power on...
VBoxManage: error: The virtual machine 'win2003' has terminated unexpectedly during startup with exit code 0
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component Machine, interface IMachine, callee
is there any suggestion? i don't know what the meaning of "VBoxManage startvm must have an additional key" is in your post, could you please send me a url talked about it?
thanks a lot.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: fault when start with vboxmanage but np with voxheadless

Post by Perryg »

See chapter 7.1.2 VBoxHeadless, the remote desktop server in your VirtualBox users manual
xzyyy
Posts: 12
Joined: 13. Dec 2011, 11:19
Primary OS: Linux other
VBox Version: OSE Fedora
Guest OSses: windows2003

Re: fault when start with vboxmanage but np with voxheadless

Post by xzyyy »

Thanks a lot, i can start my guest system with VBoxHeadless --vrde=off
btw, that means, i can't start a guest system with VBoxManage if i don't have a local graphical interface on host system and disable vrde mode, am i right?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: fault when start with vboxmanage but np with voxheadless

Post by Perryg »

VBoxManage is the command line interface. It does not use/need a graphical interface. If this is not what you mean then you will need to explain better.
xzyyy
Posts: 12
Joined: 13. Dec 2011, 11:19
Primary OS: Linux other
VBox Version: OSE Fedora
Guest OSses: windows2003

Re: fault when start with vboxmanage but np with voxheadless

Post by xzyyy »

sorry for my poor english, i mean, if i want to start a guest system with VBoxManage, i need enable vrde setting, or i need a x windows to start it. am i right?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: fault when start with vboxmanage but np with voxheadless

Post by Perryg »

If the host does not have X then you must use vrdp/rdp/vnc. something to be able to see the guest if you plan to actually work in the guest. The only exception is running a fixed server or anything CLI that you can use SFTP, SSH, Etc..
Post Reply