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

Re: [Xen-users] vm create test ="losetup /dev/loop0 /data/xen/domains/te

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] vm create test ="losetup /dev/loop0 /data/xen/domains/test/disk.img failed"
From: Christian Nitschmann <christian.nitschmann@xxxxxxxxxx>
Date: Fri, 20 Jun 2008 08:59:04 +0200
Cc: maw48@xxxxxxxxxxxxxxxx, mark.williamson@xxxxxxxxxxxx
Delivery-date: Thu, 19 Jun 2008 23:59:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200806182200.18940.mark.williamson@xxxxxxxxxxxx>
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>
References: <4858BBE2.7020009@xxxxxxxxxx> <200806180554.54824.jim_burn@xxxxxxxxxxxxx> <200806182200.18940.mark.williamson@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)
Thank you for the fast answer.
It seems that SELinux was the culprit. After disabling it, there were no problems with starting a xen-domu with disk-images in my own directories.

Greetings from Germany

Chris


Mark Williamson schrieb:
I'll second the suggestion of SELinux; you either need to:

a) switch it off (not ideal since you'll lose the security benefits)
b) make sure the image is in the right place to satisfy it
c) educate SELinux about your preferred domain image path.

I'd also note that using tap:aio: instead of file: has been the preferred means of serving a block device from a file for a while now and might be worth trying.

Cheers,
Mark

On Wednesday June 18 2008 03:40:18 am Christian Nitschmann wrote:
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
Maybe selinux? If it is set to enforcing, your images have to be
in /var/lib/xen/images.

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




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

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