public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Erik Brakkee <erik@brakkee.org>
To: kvm <kvm@vger.kernel.org>
Subject: target dev name ignored?
Date: Mon, 27 Dec 2010 15:24:49 +0100	[thread overview]
Message-ID: <4D18A1B1.7080301@brakkee.org> (raw)

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


                 reply	other threads:[~2010-12-27 14:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D18A1B1.7080301@brakkee.org \
    --to=erik@brakkee.org \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox