From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Brakkee Subject: target dev name ignored? Date: Mon, 27 Dec 2010 15:24:49 +0100 Message-ID: <4D18A1B1.7080301@brakkee.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: kvm Return-path: Received: from cpsmtp-fia01.kpnxchange.com ([195.121.247.4]:2741 "EHLO cpsmtp-fia01.kpnxchange.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753823Ab0L0OYh (ORCPT ); Mon, 27 Dec 2010 09:24:37 -0500 Received: from [192.168.2.45] (pelican.lan [192.168.2.45]) by brakkee.org (Postfix) with ESMTP id B28C971162 for ; Mon, 27 Dec 2010 15:24:34 +0100 (CET) Sender: kvm-owner@vger.kernel.org List-ID: Hi, When I define a domain XML with a virtio disk then the target device setting is ignored. For instance, given this declaration the target device name is still 'vda' and not 'sda':
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