0

What are the best practices to start qemu hosts automatically at boot time under Debian Wheezy? I do not use any abstraction layer like libvirt and start my virtual machines manually with for example:

qemu -enable-kvm -hda /root/1.raw -device e1000,mac=de:ad:be:ef:69:01,netdev=net0 -netdev tap,id=net0,ifname=tap1 -display vnc=:1 -k sv -daemonize

A custom init script?

3
  • 1
    I would be inclined to say that these days using an abstraction layer such as libvirt would be best practice. You don't have to use the GUI. Really. Commented Mar 25, 2015 at 13:28
  • Why is that so? To me KISS approach seems to be better. At least up to few-dozen virtual machines.
    – Martin
    Commented Mar 26, 2015 at 12:49
  • I'd completely agree. Running virsh autostart {machine} once would have been a really simple approach to answering your question. Commented Mar 26, 2015 at 12:54

1 Answer 1

2

An init script would be the way to go. Use of modprobe to ensure your kvm modules are loaded into the kernel may be unnecessary since they may already be loaded but if you run into problems you can always add it to your script.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .