[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] How to boot a VM using read-only disks


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Eric Tessler <maiden1134@xxxxxxxxx>
  • Date: Mon, 3 Oct 2005 15:16:26 -0700 (PDT)
  • Delivery-date: Mon, 03 Oct 2005 22:14:05 +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=MYYKQAASJcLrYtOmyIJELEmxy9FOz6YPEiDLBGumhzr81WMN+ksxSeqkFug/UPviWz5bEVJeYksvj5RipbeAJjMFxBQyFMES+dmJvO2ZBj5LEhqpIvsvZHn+flNg695QH0N9TxBjX/SqchuwqNR/+KXb8YNP/8ayYP8WOviUSBk= ;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.