WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Problem with blktap2

To: "Zhang, Yang" <yang.zhang@xxxxxxxxx>
Subject: Re: [Xen-devel] Problem with blktap2
From: Jun Koi <junkoi2004@xxxxxxxxx>
Date: Fri, 19 Jun 2009 13:21:27 +0900
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 18 Jun 2009 21:22:10 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=+EnueiB+coG6D3xvG6VMvunfYZm/XLIKN/+v3QiQw8Q=; b=iOHoeL50lxcieJvU1+n7dPbVj3IdHBm8pwiBRR5CqnRdTfLAZg7WIL7iVgkrzWVjkm 3e706FYRlSqaPtd/QhPJzGhehmeu0RO3/Jo7vNY/eB84OS9nqVQQtcHsCPyVX+6xuRZ4 SbB3QjfUtZ7VNnQgxMbJyTd2LES2DRHzanu4g=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=HcFTRTpIPzK6Ty/fMlHWfy5ZCUVOuXre6MEanXcHbPoE9G+Jn/kz1ZMqko40+3rB2T Uo+XSyeTRbeFREsMs0OIKuTIxpLRvTDKOPyXHTJ0xg7wakpa+UpHdwgy7iP2HhKiYnkY IrOSB/CTN4TGjlx2OaYvAQdXV4N+epdL+MH24=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <10C63FAD690C13458F0B32BCED571F14026DBC8D32@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <fdaac4d50906181938x12e3be02g2fa16d4e570d0a6a@xxxxxxxxxxxxxx> <10C63FAD690C13458F0B32BCED571F14026DBC8CB3@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <fdaac4d50906182003p4f7e7063n80b6eca780a626c@xxxxxxxxxxxxxx> <10C63FAD690C13458F0B32BCED571F14026DBC8CE7@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <fdaac4d50906182035p5de5fa78oe9aa75ed972d22d5@xxxxxxxxxxxxxx> <10C63FAD690C13458F0B32BCED571F14026DBC8D32@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
2009/6/19 Zhang, Yang <yang.zhang@xxxxxxxxx>:
> Sorry, qemu's issue also has been fixed by c/s 
> 5e592af4bc5649ef0066c77db445c3be26b4c7bb.
>

I got the latest code, but the problem still stands.

Now the error is a bit different:

"Error: Device 0 (vif) could not be connected. Hotplug scripts not working."


And below is the qemu log file. Do you have any suggestion?

Thanks,
J


domid: 3
qemu: the number of cpus is 1
config qemu network with xen bridge for  tap3.0 xenbr0
Strip off blktap sub-type prefix to
qcow2:/home/xen/img.qcow2.ubuntu904 (drv 'tapdisk')
qemu: type (image format) 'tapdisk' unknown for vbd
'/local/domain/0/backend/tap/3/768/type' or image
'qcow2:/home/xen/img.qcow2.ubuntu904'
Watching /local/domain/0/device-model/3/logdirty/next-active
Watching /local/domain/0/device-model/3/command
qemu_map_cache_init nr_buckets = 4000 size 327680
shared page at pfn feffd
buffered io page at pfn feffb
Guest uuid = 716ebba7-593a-f4c9-3353-32ed070a4d7f
Time offset set 0
populating video RAM at ff000000
mapping video RAM from ff000000
Register xen platform.
Done register platform.
xs_read(/vm/716ebba7-593a-f4c9-3353-32ed070a4d7f/log-throttling): read error
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state.
xs_read(/local/domain/0/device-model/3/xen_extended_power_mgmt): read error
xs_read(): vncpasswd get error.
/vm/716ebba7-593a-f4c9-3353-32ed070a4d7f/vncpasswd.
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0




















> -----Original Message-----
> From: Jun Koi [mailto:junkoi2004@xxxxxxxxx]
> Sent: 2009年6月19日 11:35
> To: Zhang, Yang
> Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-devel] Problem with blktap2
>
> 2009/6/19 Zhang, Yang <yang.zhang@xxxxxxxxx>:
>> i'm not sure that since the blktap2 changes the config. I always uses the 
>> config "tap:tapdisk:qcow2:/root/xxx". This always fine to qcow2
>>
>
> I changed my disk configuration to:
>
> disk = ['tap:tapdisk:qcow2:/home/xen/img.qcow2.ubuntu904,hda,w']
>
> But then when creating the VM, it hang up for a minute or so, and
> finally reported error like:
>
> "Error: Device 768 (tap) could not be connected. Hotplug scripts not working."
>
> You suggested to kill "tapdisk", but I dont see any process like
> "tapdisk" running in my box (only blktapctrl). Is that a problem??
>
> Then qemu log reports error like below. I am especially concerning
> about the error "type tapdisk unknown...", so I am not sure that the
> above disk configuration (..tapdisk...) is correct. Do you have any
> idea?
>
> Thanks,
> J
>
>
> cat /var/log/xen/qemu-dm-ubuntu904.log
> domid: 2
> qemu: the number of cpus is 1
> config qemu network with xen bridge for  tap2.0 xenbr0
> Strip off blktap sub-type prefix to
> qcow2:/home/xen/img.qcow2.ubuntu904 (drv 'tapdisk')
> qemu: type (image format) 'tapdisk' unknown for vbd
> '/local/domain/0/backend/tap/2/768/type' or image
> 'qcow2:/home/xen/img.qcow2.ubuntu904'
> Watching /local/domain/0/device-model/2/logdirty/next-active
> Watching /local/domain/0/device-model/2/command
> qemu_map_cache_init nr_buckets = 4000 size 327680
> shared page at pfn feffd
> buffered io page at pfn feffb
> Guest uuid = 7b6c05c7-1686-699b-dfdd-ef25da4d2039
> Time offset set 0
> populating video RAM at ff000000
> mapping video RAM from ff000000
> Register xen platform.
> Done register platform.
> xs_read(/vm/7b6c05c7-1686-699b-dfdd-ef25da4d2039/log-throttling): read error
> platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw 
> state.
> xs_read(/local/domain/0/device-model/2/xen_extended_power_mgmt): read error
> xs_read(): vncpasswd get error.
> /vm/7b6c05c7-1686-699b-dfdd-ef25da4d2039/vncpasswd.
> I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
>
>
>
>
>
>
>
>> -----Original Message-----
>> From: Jun Koi [mailto:junkoi2004@xxxxxxxxx]
>> Sent: 2009年6月19日 11:04
>> To: Zhang, Yang
>> Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
>> Subject: Re: [Xen-devel] Problem with blktap2
>>
>> 2009/6/19 Zhang, Yang <yang.zhang@xxxxxxxxx>:
>>>  I meet this issue before. You can reboot and have a try.
>>>  If still exist, stop xend and kill process blktapctrl and tapdisk, run 
>>> make install again to see this issue whether still exist.
>>>
>>
>> hmm. then the problem will vanish for goods? i will try now, and let
>> you know the result.
>>
>> Could you confirm that
>>
>> disk = ['tap:aio:qcow:/home/xen/img.qcow2.ubuntu904,hda,w']
>>
>> is a right configuration?
>>
>> Thanks a lot,
>> J
>>
>>
>>
>>
>>> -----Original Message-----
>>> From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx 
>>> [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Jun Koi
>>> Sent: 2009年6月19日 10:38
>>> To: xen-devel@xxxxxxxxxxxxxxxxxxx
>>> Subject: [Xen-devel] Problem with blktap2
>>>
>>> Hi,
>>>
>>> I am trying to use the unstable tree (changeset: 19738) to run some old 
>>> images.
>>>
>>> My old configuration file has:
>>>
>>> disk = ['tap:qcow2:/home/xen/img.qcow2.ubuntu904,hda,w']
>>>
>>> I got the error like:
>>>
>>> ----
>>> Using config file "./ubuntu904.cfg".
>>> Error: need more than 3 values to unpack
>>>
>>> I guess that I should modify the disk configuration for new blktap2,
>>> so I changed it to :
>>>
>>> disk = ['tap:aio:qcow:/home/xen/img.qcow2.ubuntu904,hda,w']
>>> ----
>>>
>>> but then i still got the error like below:
>>>
>>> ----
>>> Using config file "./ubuntu904.cfg".
>>> Error: Failed to create device.
>>>    stdout: vbd open failed: -1
>>>    stderr:
>>> Check that target "/home/xen/img.qcow2.ubuntu904" exists and that
>>> blktap2 driver installed in dom0.
>>> ----
>>>
>>> I can confirm that I have blktap2 installed, as in
>>> /boot/config-2.6.18.8-xen I have:
>>>
>>> CONFIG_XEN_BLKDEV_TAP=y
>>> CONFIG_XEN_BLKDEV_TAP2=y
>>>
>>> So how can I fix the problem now?
>>>
>>> Thanks,
>>> J
>>>
>>> _______________________________________________
>>> Xen-devel mailing list
>>> Xen-devel@xxxxxxxxxxxxxxxxxxx
>>> http://lists.xensource.com/xen-devel
>>>
>>
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel