From a80de72193e4a3fc379628b56035748436e2bcca Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 26 Oct 2013 14:45:30 +0100 Subject: [PATCH] builder: Document how to boot VMs directly in qemu or KVM. (cherry picked from commit 8b34855684fb660823a2801a4a5e8be32a6cc40f) --- builder/virt-builder.pod | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/builder/virt-builder.pod b/builder/virt-builder.pod index 13d342d..770d359 100644 --- a/builder/virt-builder.pod +++ b/builder/virt-builder.pod @@ -841,6 +841,21 @@ XXX =end comment +=head3 Booting directly using qemu or KVM + +The qemu command line is not very stable or easy to use, hence libvirt +should be used if possible. However a command line similar to the +following could be used to boot the virtual machine: + + qemu-system-x86_64 \ + -machine accel=kvm:tcg \ + -cpu host \ + -m 2048 \ + -drive file=disk.img,format=raw,if=virtio + +As with libvirt, it is very important that the correct format is +chosen. It will be C unless the I<--format> option was used. + =head2 DEBUGGING BUILDS If virt-builder fails with an error, then enable debugging (I<-v>) and -- 1.8.3.1