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] Re: How to boot a VM using read-only disks

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: How to boot a VM using read-only disks
From: Eric Tessler <maiden1134@xxxxxxxxx>
Date: Tue, 11 Oct 2005 12:56:14 -0700 (PDT)
Delivery-date: Tue, 11 Oct 2005 19:53:45 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=J3WC9szo5uQVD2uI3Ee9rmjMbaNLPoRLpZ6cKzBf//Qmc/X3xTDTrVl7rzDDojEwuy2sCxFdDJI2cB5CwvqXb9/4xulZOH56DGGUsmzlNLBeF+oV6LVvYXLwLE8EI5TfLO+yCbehXm0cO6QX2m85PO5XsJhCzj07vGVRlYRv6TQ= ;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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
Why not just mount it read only from an init script?
Regards,
Ted
(response)
 
That won't work for me, the disk is outside of the VM - I want to be able to configure the disk through the VM configuration file. What I want is multiple VMs to use the same secondary disk as read-only, with each of them having their own boot disk (I don't want to mount the secondary disks through init scripts in the VM as they do not have access to domain-0).
 
Has anyone here ever tried this or is this some sort of XEN bug???
 
Any help would be greatly appreciated.
 
Thanks,
Eric

Eric Tessler <maiden1134@xxxxxxxxx> wrote:
I want to boot a VM that contains 2 disks: the main boot disk and a secondary disk.  However, I want the secondary disk to be read-only.  In my XEN VM configuration file, if I specify the secondary disk as read-only (using the "r" option) the VM fails to boot.  It looks like during boot the OS is trying to write to the secondary disk.  If I configure the secondary disk to be read-write in the XEN VM config file, the VM boots without any problems (the secondary disk is indeed read-only, however I also want to be able to boot it in that way, I don't want the OS writing to it).  Note that in my VM boot disk image (file backed), the fstab is updated correctly -with both disks specified and the secondary disk as read-only.
 
Here is how my disks are specified in the XEN VM config file for clarifiction:
 
disk=[ 'phy:/dev/loop0,/dev/hda1,w',
          'phy:/dev/loop1,/dev/hda2,r' ]
 
(both file backed disks are bound to loop devices)
 
Has anyone tried this before and got it working???
 
Eric
 


Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.


Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>