Server Fault is a question and answer site for system and network administrators. 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

This question already has an answer here:

I have some VMs that I need to be started when the host system is started. How do I set them to autostart?

share|improve this question

marked as duplicate by dyasny, Khaled, voretaq7 Feb 12 '13 at 16:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 8 down vote accepted

Open the VM display, click View->Details

enter image description here

Select Boot Options, and tick Start virtual machine on host boot up

enter image description here

share|improve this answer

install virsh then

virsh autostart your_vm_name 
share|improve this answer
if VM stuck at grub, virt-viewer your_vm_name, and boot up. After that, change /etc/default/grub, make sure that GRUB_TIMEOUT=0. then update-grub – HVNSweeting Jan 25 '13 at 6:56

Or you can place the VM xml in /etc/libvirt/qemu/autostart/

share|improve this answer

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