<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi all.<br>
    <br>
    I've been playing around with KVM for a bit now and have several
    virtual machines up and running.  Having passed what I considered
    "first look" stage, I'm ready to start using libvirt as a manager. 
    For reference, pre-libvirt, I have started this VM with:<br>
    <br>
    <i>kvm -net nic,model=virtio -net tap,ifname=tap5,script=no  -drive
      file=test1.img,if=virtio,boot=on -curses -no-reboot -m 1g -smp 2</i><br>
    <br>
    I have a test environment I like to play with, and created the
    initial domain XML using virt-install:<br>
    <br>
    <i>virt-install --name "Test" --ram 1024 --vcpus=2  --cpu host
      --description "Test VM" --import --file test1.img --os-type=linux
      --os-variant=virtio26  --network bridge=br0,model=virtio
      --graphics=none --autostart --prompt</i><br>
    <br>
    When I look in /var/log/libvirt/qemu/Test.log  I see the VM is
    started with the command (edited down to the relevant parts):<br>
    <br>
    <i>/usr/bin/qemu-kvm -S -m 1024 -smp 2 -name Test,process=qemu:Test
      -nographics -boot c -drive file=/kvms/test1.img,if=none,boot=on<br>
      <br>
    </i>This has two problems:<br>
    <br>
    1) The "-S" is keeping the system from booting<br>
    2)  the "if=none" needs to be "if=virtio"<br>
    <br>
    I've confirmed both by changing -nographics to -curses and watching
    what happens.  For #1, its a big fat nothing (no surprise since -S
    turns off the CPUs), for #2 grub loads and the kernel boots, but my
    /dev/vda3 isn't found so "init" can't start.<br>
    <br>
    I'm anticipating a 3rd problem:  I don't see where to specify that I
    want the VM to use "tap5" of my bridged network.<br>
    <br>
    Can some kind soul please let me know what I need to change in the
    domain XML file to fix these issues?<br>
    <br>
    Thanks,<br>
    <br>
    Kevin<br>
    <span id="sample-permalink"></span><br>
    ps.  I've post this to my blog at <span id="sample-permalink"><a class="moz-txt-link-freetext" href="http://www.kevinsthoughts.com/2011/08/">http://www.kevinsthoughts.com/2011/08/</a><span
        id="editable-post-name" title="Click to edit this part of the
        permalink">kvm-management-libvirt</span>/ if anyone would prefer
      to answer there.</span><br>
    <br>
  </body>
</html>