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: "Henning Sprang" <henning_sprang@xxxxxx>
Subject: Re: [Xen-users] forcing disk in read only also if mounted
From: Daniele Palumbo <daniele@xxxxxxxxxxxx>
Date: Mon, 15 Jan 2007 17:25:49 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 15 Jan 2007 08:24:46 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <5bb00b3f0701150736l3e914fa8pe18d6d9f59c4090@xxxxxxxxxxxxxx>
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.4
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.

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