PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 27, 2012, 04:00:19 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: how do I start a virtualbox image automatically at startup? [SOLVED]  (Read 1665 times)
spottyrover
Full Member
***
Offline Offline

Posts: 55


« on: July 25, 2011, 12:23:10 AM »

how do I start a virtualbox image automatically at startup?

thanks
Dave
Logged
Rudge
Hero Member
*****
Offline Offline

Posts: 7778


I'm just a dog.


« Reply #1 on: July 25, 2011, 12:38:44 AM »

how do I start a virtualbox image automatically at startup?

thanks
Dave

You might be able to start VB at start-up, but I think you would still have to select the box that you would want to boot up.

ps. I aint all that smart.  Tongue
Logged

Old-Polack
Administrator
Hero Member
*****
Offline Offline

Posts: 9695


----IOFLU----


« Reply #2 on: July 25, 2011, 01:25:16 AM »

how do I start a virtualbox image automatically at startup?

thanks
Dave


What VM are you trying to start... VM name?

I used to do this with the command VBoxManage startvm WinXP on an older version of VB. The command may still work in a script placed in your startup directory. You would need to use the correct name for your specific VM. As all things Linux, the command is case sensitive.

Edited the old script to start VM named Win2000 And here it is.



Resizing the window to use the scanner application, my sole reason for having the VM as there are no Linux drivers for the scanner.



The main VBox window does not open, just the Win2000 VM runs, as seen above. When I shutdown Windows, the VM window closes and nothing is left behind on the desktop.
Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
spottyrover
Full Member
***
Offline Offline

Posts: 55


« Reply #3 on: July 25, 2011, 02:11:34 AM »

I am going to be a backup server for a friend using vmware.
I can run it,  is called "ispconfig 3 server" . Now that I look at the name I am not sure if it will run automatically.

Thanks
Dave
Logged
Old-Polack
Administrator
Hero Member
*****
Offline Offline

Posts: 9695


----IOFLU----


« Reply #4 on: July 25, 2011, 02:28:41 AM »

I am going to be a backup server for a friend using vmware.
I can run it,  is called "ispconfig 3 server" . Now that I look at the name I am not sure if it will run automatically.

Thanks
Dave

Personally, I'd lose the spaces in the VM name, replacing them with underscores, dashes, or periods.

ispconfig_3_server

ispconfig-3-server

ispconfig.3.server


You may get away with putting quotes around the name, but having no spaces in the name always works and is the better choice on Linux systems.
Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
spottyrover
Full Member
***
Offline Offline

Posts: 55


« Reply #5 on: July 25, 2011, 03:23:39 AM »

of course tried the hard way.
changed the file names etc
VBoxManage startvm /media/Multimedia/Virtualbox/Web-server/ispconfig/ISPCONFIG-3-on-9.04-server.vmdk

then realised
you meant VBoxManage startvm ispconfig

and it started from the terminal

thanks

any idea on how to start it on the second monitor?

Dave
Logged
Old-Polack
Administrator
Hero Member
*****
Offline Offline

Posts: 9695


----IOFLU----


« Reply #6 on: July 25, 2011, 03:28:02 AM »

of course tried the hard way.
changed the file names etc
VBoxManage startvm /media/Multimedia/Virtualbox/Web-server/ispconfig/ISPCONFIG-3-on-9.04-server.vmdk

then realised
you meant VBoxManage startvm ispconfig

and it started from the terminal

thanks

any idea on how to start it on the second monitor?

Dave

Having never had a second monitor, in a word...No!  Grin
Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
spottyrover
Full Member
***
Offline Offline

Posts: 55


« Reply #7 on: July 25, 2011, 03:30:44 AM »

Thanks for your help old-polack
Dave
Logged
Old-Polack
Administrator
Hero Member
*****
Offline Offline

Posts: 9695


----IOFLU----


« Reply #8 on: July 25, 2011, 04:04:57 AM »

Thanks for your help old-polack
Dave


No problem.  Grin Grin

I also made a desktop icon/widget to do the same thing. This should work for any VM by changing the called VM and of course the file name. Copy the purple text below, if interested, paste into a text editor, edit VM name and file name, (mine shown in blue in the text) and save to your desktop as <appropriate name>.desktop. Right click on the file, Properties --> Permissions tab, and check the box to make it executable.

------------------------------------------------------------------ start ------------------------------------------------------------------------------
[Desktop Entry]
Comment[en_US]=
Comment=
Encoding=UTF-8
Exec=VBoxManage startvm Win2000
GenericName[en_US]=
GenericName=
Icon=/usr/share/pixmaps/xmlcopyeditor.png
MimeType=
Name[en_US]=Win2K
Name=Win2K
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-DCOP-ServiceType=
X-KDE-SubstituteUID=false
X-KDE-Username=

------------------------------------------------------------------------ end -------------------------------------------------------------------------

I didn't have a Windows-logo.png file handy so just used the Icon noted in the file. On the desktop it looks like this;

Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
Just18
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 4637


MLUs Forever!


« Reply #9 on: July 25, 2011, 05:22:23 AM »

Here ye go o-p  Wink

http://icons.iconarchive.com/icons/benjigarner/softdimension/256/Windows-icon.png


Grin  Grin
Logged

MLUs rule the roost!

Linux XPS 3.2.17-pclos1.pae.bfs  32 bit
Intel(R) Core(TM)2 Quad  CPU   Q9450  @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech ‎DVB-T 2 USB DTT
Old-Polack
Administrator
Hero Member
*****
Offline Offline

Posts: 9695


----IOFLU----


« Reply #10 on: July 25, 2011, 05:38:42 AM »



And back atcha.  Grin Grin

Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
travisN000
Global Moderator
Hero Member
*****
Offline Offline

Posts: 1755


« Reply #11 on: March 18, 2012, 11:59:37 PM »

I was trying to figure out how to do something similar, but wanted the vbox image / VM to run headless and start up at boot, even without logging in to the graphical desktop environment....   although a bit more complicated, I did find a solution; it is posted in the Advanced users section:

http://www.pclinuxos.com/forum/index.php/topic,103651.html


@ Old-polack...   As usual, another great and useful tutorial; I thought it deserved a sticky!   Grin
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM