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] vm create test ="losetup /dev/loop0 /data/xen/domains/test/d

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] vm create test ="losetup /dev/loop0 /data/xen/domains/test/disk.img failed"
From: Christian Nitschmann <christian.nitschmann@xxxxxxxxxx>
Date: Wed, 18 Jun 2008 09:40:18 +0200
Delivery-date: Wed, 18 Jun 2008 00:41:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)
Dear mailing-list

after several attempts to start a xen linux-vm on a Fedora 8 XEN-System
(Quadcore Xeon-System with 8GB RAM and VT/PAE enabled), i now really
need your help.

I sucessfully created and installed a new debian etch-vm with the well
known debootstrap-script. I got 10 unused loop-devices which should be
more than enough for at least one xen-machine.

When i try to start the new debian-etch-machine with "*xm create
/etc/xen/test -c*" i always get the following error message:
-------------------------------
Using config file "./test".
Error: Device 2049 (vbd) could not be connected. losetup /dev/loop0
/data/xen/domains/test/disk.img failed
-------------------------------

*xen-hotplug.log:*
-------------------------------
Nothing to flush.
/data/xen/domains/test/disk.img: Permission denied
xenstore-read: couldn't read path backend/vbd/2/2049/node
-------------------------------

The entire directory is world-accessible and writable, so there should
be no permission-problems with accessing the disk-images (VBD). I am
using the root-account to start the xen-vm.

*The configuration-file for the "test"-vm looks like this:*
-------------------------------
# Configuration file for the Xen instance vm01.example.com, created on
# Mon Jun 2 17:06:01 2008.
# Kernel + memory size
kernel = '/boot/vmlinuz-2.6.21.7-3.fc8xen'
ramdisk = '/boot/initrd-2.6.21.7-3.fc8xen.img'
memory = '128'
# Disk device(s).
root = '/dev/sda1 ro'
disk = [ 'file:/data/xen/domains/test/disk.img,sda1,w',
'file:/data/xen/domains/test/swap.img,sda2,w' ]
# Hostname
name = 'test'
# Networking
dhcp = 'dhcp'
vif = [ '' ]
# Behaviour
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
---------------------------------

An attempt to mount the disk-images to an unused-loop-device with
losetup works without any problems.

----------------------------------
[root@dmxen xen]# losetup /dev/loop0 /data/xen/domains/test/disk.img
[root@dmxen xen]# losetup -a
/dev/loop0: [0902]:192479239 (/data/xen/domains/test/disk.img)
----------------------------------

System details:
_Kernel:_ Linux dmxen 2.6.21.7-3.fc8xen #1 SMP Thu Mar 20 14:57:53 EDT
2008 i686 i686 i386 GNU/Linux
Xen-Version: Xen 3.1.2


Any help or information would be very welcome.

Thanks in advance

Christian



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

<Prev in Thread] Current Thread [Next in Thread>