Can I have a guest OS open at start up?

This is for discussing general topics about how to use VirtualBox.
Post Reply
ptex
Posts: 2
Joined: 14. Oct 2009, 16:41
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: xp pro

Can I have a guest OS open at start up?

Post by ptex »

I have one VirtualBox running on a laptop the host is XP pro and the guest os is also xp pro. I would like to have the guest os open at start up for a cretin user name, can this be done?

I have 13 laptops that children, and old people (who have discovered porn btw) have access to at our rec center, keeping these things running is almost a full time job.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Can I have a guest OS open at start up?

Post by Perryg »

You can create a batch file using the VBoxManage startvm command and place a shortcut to the batch file in the startup folder.
See chapter 8. VBoxManage reference for the syntax

Or you can setup the laptops to boot to a Linux live CD and not have a problem with viruses or other problems.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Can I have a guest OS open at start up?

Post by Sasquatch »

In case of Windows Hosts, using the VBoxManage command will leave a command prompt running. If you use the startvm parameter with the main VirtualBox.exe program, it will still start the VM, but not a command prompt that needs to keep running.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
ptex
Posts: 2
Joined: 14. Oct 2009, 16:41
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: xp pro

Re: Can I have a guest OS open at start up?

Post by ptex »

Thanks I'll check out Ch. 8.

So ch 8 won't help me?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Can I have a guest OS open at start up?

Post by Sasquatch »

Chapter 8 will certainly help you. It contains all the information you need for the VBoxManage command utility. The program usually gives the prompt back after it's done, but when you start a VM with it on Windows, the prompt won't be returned until the VM is shut down. To avoid this, you can use VirtualBox.exe for it. When you run VirtualBox.exe without arguments, you will get the normal GUI with the list of VMs, option to change settings of the VM, start it, create a new VM, etc. The VirtualBox.exe program should not be used for other options that are in chapter 8, only the startvm parameter is useful.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
MarkCranness
Volunteer
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: Can I have a guest OS open at start up?

Post by MarkCranness »

ptex wrote:I have 13 laptops that children, and old people (who have discovered porn btw) have access to at our rec center, keeping these things running is almost a full time job.
You may want to consider Windows Steady State, in addition to, or instead of VirtualBox:
http://www.microsoft.com/windows/produc ... fault.mspx

If using Perryg's suggestion, on a Windows host, a command prompt won't be left running (at least not in VB 3.0.8), but a command prompt window will briefly popup while VB is starting the VM and then close.
If that is a problem, there are ways of hiding it (ask if you need to know how).
Edit: VirtualBox -startvm <VM Name> (=the solution Sasquatch was suggesting, and far better than the solution I had in mind. I tried VirtualBox startvm <VM Name> (no hyphen) which didn't work, leading me down a merry path.)
Post Reply