1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
Howto - Virtualbox Headless on ClearOS
(1 viewing) 1 Guest
Go to bottomPage: 1...45678910...16
TOPIC: Howto - Virtualbox Headless on ClearOS
*****
#15602
Re:Howto - Virtualbox Headless on ClearOS 2 Years, 9 Months ago  
Thanks iI have installed XP.
i have tried to unmount the xp.iso nothing seems to work.
ernst
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#15626
Re:Howto - Virtualbox Headless on ClearOS 2 Years, 9 Months ago  
[vbox@server ~]$ VBoxManage storageattach WinXP --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium none
Moses
Junior Boarder
Posts: 23
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#16703
Re:Howto - Virtualbox Headless on ClearOS 2 Years, 8 Months ago  
Tim Burgess wrote:
I will amend the how to so that it uses yum, then it will pick up the libSDL dependancy, must already be on my system!

You only need to install the relevant kernel-devel or kernel-PAE-devel rpm, as Carl posted above

BSOD > To automate startup of a VM you can add the line to /etc/rc.local, but will need to pass user credentials so that it doesn't startup as root. Something like the following will run as user vbox
Code:

su vbox -c '/usr/bin/VBoxHeadless --startvm myvmname'



I added the above in /etc/rc.d since /etc/rc.local is a shortcut and the VM cant auto start on reboot, what am I missing?

Thanks
ClearNovice
Junior Boarder
Posts: 28
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#16707
Re:Howto - Virtualbox Headless on ClearOS 2 Years, 8 Months ago  
Hi - /etc/rc.local is a (symlink) shortcut to the file at /etc/rc.d/rc.local they are one and the same
Tim Burgess
Moderator
Posts: 5800
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#16709
Re:Howto - Virtualbox Headless on ClearOS 2 Years, 8 Months ago  
I cant seem to get the VM to run automatically on server reboot or start by editing the /etc/rc.d/rc.local file, do I include the quotes '/usr/bin/VBoxHeadless --startvm WindowsXP'
ClearNovice
Junior Boarder
Posts: 28
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#16728
Re:Howto - Virtualbox Headless on ClearOS 2 Years, 8 Months ago  
Yes, because you are changing user from root to vbox to run the command in quotes
Code:

su vbox -c '/usr/bin/VBoxHeadless --startvm myvmname'




No, if you are running as user vbox
Code:

su vbox
/usr/bin/VBoxHeadless --startvm myvmname

Moses
Junior Boarder
Posts: 23
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/09/02 03:31 By ggg777.
The administrator has disabled public write access.
 
#16751
Re:Howto - Virtualbox Headless on ClearOS 2 Years, 8 Months ago  
Hmm perhaps it should be:-
Code:

/bin/su vbox -c '/usr/bin/VBoxHeadless --startvm myvmname'

Tim Burgess
Moderator
Posts: 5800
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#16760
Re:Howto - Virtualbox Headless on ClearOS 2 Years, 8 Months ago  
guys, I have tried all the above and my VM cannot start automatically on system reboot, anymore ideas ?

I visited this link
Code:

http://vboxtool.sourceforge.net/



It reads Autostart at host boot. When the host boots, all sessions registered in /etc/vboxtool/machines.conf will be started in the background, issuing a 'vboxtool autostart' command under the named vbox_user in /etc/vboxtool/vboxtool.conf.

I have no idea how to install vboxtool in Clear OS, can someone please help

Thank you
ClearNovice
Junior Boarder
Posts: 28
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/09/02 16:06 By ClearNovice.
The administrator has disabled public write access.
 
#16786
Re:Howto - Virtualbox Headless on ClearOS 2 Years, 8 Months ago  
Ahhh I wonder if the problem is because the command is not telling vboxheadless to start as a background process, and that it is expecting .Virtualbox to be in the home user directory which is actually /root and not /home/vbox. Using the -l flag might help?

Code:

/bin/su -l vbox -c '/usr/bin/VBoxHeadless --startvm myvmname 2>&1 &'



You can always test this from your own command line first to see (unfortunately I don't access to my VM machines at the mo so I can't test)
Tim Burgess
Moderator
Posts: 5800
graph
User Offline Click here to see the profile of this user
Last Edit: 2010/09/02 19:06 By timb80.
The administrator has disabled public write access.
 
#16806
Re:Howto - Virtualbox Headless on ClearOS 2 Years, 8 Months ago  
This will work

Autostart a VM
Code:

touch /etc/rc.d/start.vbox
echo '#!/bin/bash' >> start.vbox
echo "su vbox -c '/usr/bin/VBoxHeadless --startvm WinXP &'" >> start.vbox
chmod +x /etc/rc.d/start.vbox
echo '/etc/rc.d/start.vbox' >> /etc/rc.d/rc.local



I will update the Howto
Moses
Junior Boarder
Posts: 23
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/09/13 15:07 By ggg777.
The administrator has disabled public write access.
 
Go to topPage: 1...45678910...16
  get the latest posts directly to your desktop