Results 1 to 2 of 2

Thread: KVM and virtIO

  1. #1
    Join Date
    May 2006
    Location
    Germany
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    KVM and virtIO

    Hi,

    I managed to set my KVM guest to use virtio_blk and virtio_net. But what I could not figure out was on how to setup virtio_balloon.

    How do I need to configure my XML file that the guest is loading this module automatically and using it?

    Code:
    <domain type='kvm'>
      <name>guest3</name>
      <uuid>94d00e35-5bc6-3240-e7c6-950ee5350e99</uuid>
      <memory>1048576</memory>
      <currentMemory>1048576</currentMemory>
      <vcpu>4</vcpu>
      <os>
        <type>hvm</type>
        <boot dev='hd'/>
      </os>
      <clock offset='utc'/>
      <on_poweroff>destroy</on_poweroff>
      <on_reboot>restart</on_reboot>
      <on_crash>destroy</on_crash>
      <devices>
        <emulator>/usr/bin/kvm</emulator>
        <disk type='file' device='disk'>
          <source file='/dev/vg01/lv_guest3-disk'/>
          <target dev='vda' bus='virtio'/>
        </disk>
        <interface type='bridge'>
          <mac address='00:16:3e:74:29:98'/>
          <source bridge='br0'/>
          <model type='virtio'/>
        </interface>
        <input type='mouse' bus='ps2'/>
        <graphics type='vnc' port='-1' listen='127.0.0.1'/>
      </devices>
    </domain>
    Thanks for your help in advance.

    Regards
    Christian

  2. #2
    Join Date
    Nov 2004
    Location
    Melbourne, Australia
    Beans
    16

    Re: KVM and virtIO

    You'll find the background to the issue here:
    http://www.mail-archive.com/libvir-l.../msg05743.html

    List of KVM 64 supported NIC models here:
    http://www.mail-archive.com/libvir-l.../msg05746.html

    A workaround using a script here:
    http://www.mail-archive.com/libvir-l.../msg05782.html

    If you use the script approach, will be interested to hear how you get on.

    cheers ... david

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •