[virt-tools-list] qestion about --os-variant of virt-install

Jianlin Liu jialiu at redhat.com
Fri Jan 15 11:08:02 UTC 2010


I have a qestion about --os-variant option of virt-install,need your help.

I know that virtio support will be enabled via virt-install --os-variant [rhel5.4 | virtio26].

But I am not sure whether the virtio support will be saved into my guest config file.

Just like that:
    <disk type='file' device='disk'>
      <source file='/var/lib/libvirt/images/demo1.img'/>
      <target dev='vda' bus='virtio'/>    ----> block device virtio support is enabled

    <interface type='bridge'>
      <mac address='00:16:36:14:b2:ad'/>
      <source bridge='virbr0'/>
      <target dev='vnet0'/>
      <model type='virtio'/>               ----> NIC device virtio support is enabled

I notice that the above virtio line is not saved into my guest xml config file if run command - "virt-install -n xx -r 512  --os-variant  virtio26 -f /var/lib/libvirt/images/xx.img --import".

Does it is expected behavior or it is a bug.

Looking forward to your reply.


Johnny Liu

More information about the virt-tools-list mailing list