Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Linux host with a Windows XP guest machine. I need that Windows XP machine starts after the user does login on Linux. So, how do I start my VirtualBox machine on login?

share|improve this question

migrated from Nov 11 '11 at 18:29

This question came from our site for professional and enthusiast programmers.

up vote 1 down vote accepted

Add this to your startup applications (assuming you've got something with the Gnome desktop environment, you didn't say wich distro you're using): virtualbox --startvm <name>, replacing <name> by the name of the virtual machine you'd like to start.

share|improve this answer
using the headless option might be useful too, depending on how he accesses the VM – Journeyman Geek Nov 12 '11 at 7:58

Sounds like you need a linux logon script. Maybe in bash. Here is a post of a guy doing it in slackware with virtual box.

Virtual Box Forums

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.