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] newbie question re block-attach on ubuntu 11.10

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] newbie question re block-attach on ubuntu 11.10
From: Dan Kegel <dank@xxxxxxxxx>
Date: Thu, 17 Nov 2011 22:24:27 -0800
Delivery-date: Thu, 17 Nov 2011 22:26:01 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=rSrhg5ijBtwZjbDNPjfbO9xVmV2tzZm1jlI0tR5oU7g=; b=QYaE9fiP7WR+t0h7jIVh4c4tj2Cd+YBI+dugi2WyG3mNe9/FgnO+W5a5pDsmyaXREy IW6jLa43dbxQ9WNc/HwNX9rT8SI9NniwmT6/DOP9f3RcVXbPGG4pfIjiu3MTgzU8AV+8 wfl1sbHz2SOH38M8RePckjfrBR5XycgbdHZBQ=
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
I'm a complete newbie at Xen, just getting started.

I was happy to see that Ubuntu 11.10 includes Xen again,
http://zulcss.wordpress.com/2011/09/04/xen-4-1-1-on-ubuntu/
So I installed ubuntu 11.10's precompiled Xen,
and started playing around with it.
I'm not even trying to start another VM at the moment,
just playing around with mounting block devices,
and had trouble with block-attach:

$ dd if=/dev/zero of=foo.img bs=1024k seek=64 count=0
0+0 records in
0+0 records out
0 bytes (0 B) copied, 1.6493e-05 s, 0.0 kB/s
$ sudo xm block-attach 0 file://home/dank/lvmstuff/foo.img /dev/xvda1 w 0
$ sudo xm block-list 0
Vdev BE handle state evt-ch ring-ref BE-path
51713 0 0 1 -1 -1 /local/domain/0/backend/vbd/0/51713
$ sudo mkfs.ntfs /dev/xvda1
Failed to access '/dev/xvda1': No such file or directory
The device doesn't exist; did you specify it correctly?

Was I supposed to create /dev/xvda1 myself? I thought Xen
did that.

Thanks,
Dan

p.s.
The little example script I'm trying to get working is
http://kegel.com/linux/xen/demo-xen.sh

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] newbie question re block-attach on ubuntu 11.10, Dan Kegel <=