Red Hat Bugzilla – Bug 444413
Cannot use attach disk if subdriver option is wrong in blktap
Last modified: 2010-10-22 20:31:55 EDT
Description of problem:
I do the following setting in the disk item of the definition file.
--- /etc/xen/guest_domain ---
name = "guest_domain"
disk = [ "phy:/dev/sda5,xvda,w", "tap:ZZZ:/root/file.img,hda,w" ]
vif = [ "mac=00:16:3e:5b:f1:0d,bridge=xenbr0,script=vif-bridge" ]
Though a definition of disk is wrong,
I can start a domain by a "xm create (virsh start)" command
and disk of the wrong definition is connected on a guest domain.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. make a image file.
# dd if=/dev/zero of=/root/file.img count=1000 bs=5000000
2. add the following setting to the disk item of the definition file.
3. start a guest domain with the definition file which increased a change with
xm create /etc/xen/guest_domain
(virsh start guest_domain)
Though a definition is wrong,
VM boots but cannot use tap:ZZZ disk.
"xm create (virsh start)" output an error.
changeset 15815: 2f13d0f2b07c
xend: Add blktap disk type check
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
Since the patch is upstream, its easy enough to add this
Created attachment 311470 [details]
Backport of upstream changeset to RHEL5
Created attachment 311471 [details]
Backport of upstream changeset to RHEL5 v2
Built into xen-3.0.3-67.el5
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.