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-users

[Xen-users] RE: blktap2 does not work

To: darkbasic4@xxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] RE: blktap2 does not work
From: eXeC001er <execooler@xxxxxxxxx>
Date: Wed, 23 Jun 2010 18:07:57 +0400
Cc:
Delivery-date: Wed, 23 Jun 2010 07:09:17 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=x6UDpQeJMW5kI30j+PsRQcWPZgRwrX3KZOU1UZChuGU=; b=YSGExAwQSU03mv9v3xOiSk00t3/N80d0NxNTlrmuV1FWqrudNbyfU80oH5MhdxI2wt K/6be0X92tTdtYk+JLDzlDy/jKANeSWNqH5ZJ5eZJqJz8jSY3rKqjyBSAFhycFZDpMch hmxDg1oCtvS3sLPfH1GAM4zlzOt+W/9T/veDc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=E9QsFtz2vlecZ0NtAt445RcLxC5rvohlRi8X13lU0gWTOz80eHCiEq7prX4tN//vKm /Vw8qg1wFEsimCqxnRiFi7ljWwi2JJJ2WOl8LgwVMOOy+sJ1dD/4TCuVE1oSwpVhgdmn hkG902YSxalAGelP5LkE5a0lzHQe8dsaYoVCA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Distro: debian unstable
Xen version: 4.0.0-2

This is the config:
#HVM
#still no qemu-dm in debian

#kernel = "/usr/lib/xen-4.0/boot/hvmloader"
#builder = 'hvm'
#memory = 2048
#name = "webserver"
#vif = ['bridge=eth0']
#disk = ['tap:tapdisk:aio:/srv/xen/webserver.img,xvda,w','phy:/dev/cdrom,xvdb:cdrom,r']
#device-model = '/usr/lib/xen-4.0/bin/qemu-dm'
#vnc = 1
#boot = 'd'


#PV

name = "webserver"
memory = 2048
bootloader = "/usr/lib/xen-4.0/bin/pygrub"
vif = ['bridge=eth0']
disk = [ "tap:tapdisk:aio:/srv/xen/webserver.img,xvda,w" ]
vnc = 1

When I run xm create /srv/xen/profiles/webserver.cfg I get:
Using config file "/srv/xen/profiles/webserver.cfg".
Error: [Errno 2] No such file or directory: 'aio:/srv/xen/webserver.img'

I created the image with dd:
# dd if=/dev/zero of=/srv/xen/webserver.img oflag=direct bs=1M seek=4095 count=1
# dd if=/dev/zero of=/srv/xen/webserver.img oflag=direct bs=1M count=4096

Darkbasic

blktap2 works in current xen-testing-4.x and xen-unstable, but you should be use tap2:tapdisk:aio:...... (I do not know why it is not displayed in the documentation, but the code works the way). 

My configuration: "Opensolaris + pygrub + VHD" work fine for me.

Thanks.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>