public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* target dev name ignored?
@ 2010-12-27 14:24 Erik Brakkee
  0 siblings, 0 replies; only message in thread
From: Erik Brakkee @ 2010-12-27 14:24 UTC (permalink / raw)
  To: kvm

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-12-27 14:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-27 14:24 target dev name ignored? Erik Brakkee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox