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] forcing disk in read only also if mounted

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] forcing disk in read only also if mounted
From: "Christopher G. Stach II" <cgs@xxxxxxxxx>
Date: Mon, 15 Jan 2007 16:09:49 -0200
Delivery-date: Mon, 15 Jan 2007 10:09:38 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200701151725.49516.daniele@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: <200701151239.50260.daniele@xxxxxxxxxxxx> <5bb00b3f0701150736l3e914fa8pe18d6d9f59c4090@xxxxxxxxxxxxxx> <200701151725.49516.daniele@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.9 (X11/20061219)
Daniele Palumbo wrote:
> On Monday 15 January 2007 16:36, Henning Sprang wrote:
>>> i want a volume, in read only, that does not need to know anything about
>>> xen. i tried "r!" in config file, but it is not a valid flag (BTW, IMHO
>>> it should be, like w!).
>> I don't understand what the problem is:
>> "r" (without exclamation mark!) should work in disk parameters for vm
>> config. It works at least for cdroms, did not try much for normal
>> filesystems.
>>
>> So, you can configure something like
>> 'phy:/dev/vm-filesystems/common-kernel-modules-partition,hda1,r' for
>> all systems, and mount hda1 to /lib/modules.
>>
>> Please show us your disk config and the error it produces.
> 
> disk = [ ...,
> 'phy:/dev/Xen2Volume/domU-kernel-needed,/dev/sdb1,r' ]
> 
> when /usr/src/domU-kernel-needed/ mounted in rw,
> ---
> xen2 ~ # xm create -c gentoo-x86.xm
> Using config file "/etc/xen/gentoo-x86.xm".
> Error: Device 2065 (vbd) could not be connected.
> Device /dev/Xen2Volume/domU-kernel-needed is mounted read-write in the 
> privileged domain,
> and so cannot be mounted read-only by a guest.
> xen2 ~ #         
> ---
> 
> bye
> d.

So what would you expect a guest to do when it has blocks cached, the
host updates some, but the guest never expects them to be updated?

-- 
Christopher G. Stach II


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