From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Fehlig Subject: Re: libvirt and virt-manager default blktap driver name for file images, tap vs tap2? Date: Thu, 06 Jun 2013 12:58:41 -0600 Message-ID: <51B0DBE1.8070402@suse.com> References: <20130606100023.GW11427@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20130606100023.GW11427@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: =?ISO-8859-1?Q?Pasi_K=E4rkk=E4inen?= Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Pasi K=E4rkk=E4inen wrote: > Hello, > > Does anyone know where/how to set the default libvirt blktap "driver name= " for disk image files? > > If I have "blktap" module loaded in dom0 kernel, and I do this: > > virt-install -d -n blktaptest01 -r 2048 --vcpus=3D2 --disk /var/lib/libvi= rt/images/blktaptest01.img,size=3D8 --vnc -p -l "http://ftp.funet.fi/pub/mi= rrors/centos.org/6.4/os/x86_64" > = Does it work if you specify the driver name in the diskopts? E.g. --disk /var/lib/libvirt/images/blktaptest01.img,size=3D8,driver_name=3Dta= p2 Regards, Jim > which results in this generated libvirt xml config for the VM: > > > > > > > > .. which doesn't seem to work for me with Xen 4.2.2 using xm/xend, and li= bvirt 0.10.x. > > The problem is there's no tapdisk process started in dom0, and the block = device cannot be = > initialized or accessed inside the VM. I have the same problem with virt-= manager, = > using the "new VM" wizard with disk image files. > > The correct "driver name" for libvirt is "tap2", which works for me, = > so I need to manually edit the libvirt xml config to make the VM boot/wor= k. > > This matches xm/xend behaviour with text config files for VMs. = > I need to use tap2 there aswell on the disk =3D [] line. > > Where should I choose/set/patch the default libvirt driver name? Is that = in libvirt sources, > or in virt-install/virt-manager ? I tried reading the libvirt "xen" drive= r source, = > but I couldn't find any "default" setting there.. = > > Thanks, > > -- Pasi > > > =