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] Block device not presented read-only in HVM domain

To: "Steve Dobbelstein" <steved@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Block device not presented read-only in HVM domain
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Thu, 26 Oct 2006 17:39:45 +0100
Delivery-date: Thu, 26 Oct 2006 09:40:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <OF5386C251.37D00F18-ON05257212.006951E8-05257212.006D32C3@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acb4b1uTAMTBpEkSRu2GuyGoeuNouwArXeHQ
Thread-topic: [Xen-devel] Block device not presented read-only in HVM domain
> /dev/vbd-backend/hvm1 is an LVM volume containing a disk image with a
> partition for the root filesystem for the hvm1 domain.
> /dev/vbd-backend/usr is an LVM volume containing a disk image with a
> partition for /usr which is shared read-only across multiple HVM
domains.
> /dev/vbd-disktest/dom1 is an LVM volume that is used as a scratch
disk.
> 
> The /etc/fstab in the HVM domain has the lines:
> 
> /dev/hda1            /                    ext3       acl,user_xattr
> 1 0
> /dev/hdb1            /usr                 ext3       acl,user_xattr
> 1 0
> 
> In the domain I can write to /usr, even though it is supposed to be
shared
> read-only!
> 
> x3850-hvm1:~ # ls -l /usr/bob
> /bin/ls: /usr/bob: No such file or directory
> x3850-hvm1:~ # touch /usr/bob
> x3850-hvm1:~ # ls -l /usr/bob
> -rw-r--r-- 1 root root 0 Oct 25 14:29 /usr/bob
> x3850-hvm1:~ #

You've not using PV drivers, right?
Someone needs to extend qemu-dm to accept and respect a 'read only' flag
associated with a device.

Ian




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

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