VirtualBox VM on login

This is for discussing general topics about how to use VirtualBox.
Post Reply
bigfredlab
Posts: 2
Joined: 7. Feb 2011, 22:40
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: WindowsXP

VirtualBox VM on login

Post by bigfredlab »

I would like to run a Windows XP virtualbox VM on Ubuntu 10.4 LTS.

However, I would like to set it up to that the VM loads on successful Ubuntu Login automatically so that the user thinks they have logged into a Windows account.

Is this possible and how would one accomplish this?
Kwijibo
Posts: 21
Joined: 1. Feb 2011, 22:06
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows 1.01, 2.03, 3.1, 95, my own OS, ReactOS, and basically anything else I can get my hands on.

Re: VirtualBox VM on login

Post by Kwijibo »

I don't know too much about ubuntu but maybe you could try making a shortcut to the vm in the startup list (if ubuntu has one)
supremedalek
Posts: 32
Joined: 17. Oct 2008, 17:10
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows, Linux

Re: VirtualBox VM on login

Post by supremedalek »

Just to make sure I am not answering you question, do you want the vm to start/pause when the host (ubuntu) boots/shutdown respectively?

If so, I would write a startup script (in /etc/init.d) to start the vm using vboxheadless.
bigfredlab
Posts: 2
Joined: 7. Feb 2011, 22:40
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: WindowsXP

Re: VirtualBox VM on login

Post by bigfredlab »

I believe so yes.

Here is what I would like to do:

On power up, load unbuntu to the profile login screen
On successful login, load up a VM (Windows XP) and maximize to fill the screen.
When the user logs out, it will pause/save the VM and log out of ubuntu.
When the user shuts down, it will pause/save the VM, log out of ubuntu and power down.

Would this be accomplished via vbox headless?

Is there a better way?
HubTou
Posts: 93
Joined: 24. Nov 2009, 11:01
Primary OS: FreeBSD
VBox Version: OSE other
Guest OSses: FreeBSD, OpenSolaris, and several Linuxes

Re: VirtualBox VM on login

Post by HubTou »

Hello,
bigfredlab wrote:I would like to run a Windows XP virtualbox VM on Ubuntu 10.4 LTS.
However, I would like to set it up to that the VM loads on successful Ubuntu Login automatically so that the user thinks they have logged into a Windows account
If you want to load your VM on successful Ubuntu login (not boot), I think you would have to do something like:
- write a shell script starting X11 with VBoxSDL as Window Manager (see http://www.virtualbox.org/manual/ch09.html#vboxsdl )
- use VBoxSDL --startvm "VM name" --fullscreen --nofstoggle (to start the VM in full screen mode and disable toggling out of it)
- use the script as a login shell (disable ssh/telnet/ftp access for this account)
- when you exit the VM, it should revert automatically to the login prompt

Extended testing would be required in order to be sure that the user cannot escape to the underlying OS...

Best regards,

Hubert
Post Reply