Hi,
When I define a domain XML with a virtio disk then the target device
setting is ignored.
For instance, given this <disk> declaration the target device name is
still 'vda' and not 'sda':
<disk type='block' device='disk'>
<driver name='qemu' type='raw'/>
<source dev='/dev/system/linux32'/>
<target dev='sda' bus='virtio'/>
<alias name='virtio-disk0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</disk>
I ran into this while experimenting. In practice I will only run into
this problem when trying to mount the boot sector (which is the only
file system which is not an LVM) so this is not a major issue. For this
reason I usually do not mount /boot and also disable kernel updates.
But... it would be nice if it worked. Use case is switching between
virtio and scsi setups. Right now I have to either have separate boot
entries in grub for virtio and scsi or I have to edit the root kernel
parameter in grub during boot.
Cheers
Erik
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html