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

[Xen-users] Adding a block device to a new Linux Guest


  • To: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Omer Khalid" <Omer.Khalid@xxxxxxx>
  • Date: Fri, 8 Aug 2008 19:47:31 +0200
  • Delivery-date: Fri, 08 Aug 2008 10:48:14 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :x-google-sender-auth; b=nTykYw+Je3hgKnQTsdCDGcWFRhkszhxL7YZ6+P/32h/dbUn8wBQ0K0Wbyd5BbzLtUM pyvKt15KzGZm+JUj8z/d7UgYcqvFW+Ymr4mq/efdPwFNDEtu3ZgQAmwjPEVMirDLKOr0 oA445NyyDeiW776Atw8r5meF6p+xcCR7gInoY=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>


Hi,

I am trying to add an additional block device (read-only) to my guest VM where I want to put some additional software necessary for my executing code in the VM. I am following the following steps:

1) add the additional disk entry to the xen configuration
    disk = ['phy:/dev/volumegroup/xen-root,xvda1,w','phy:/dev/volumegroup/xen-swap,xvda2,w', 'phy:/dev/volumegroup/software,xvdb1,r'  ]

2) In the guest OS image /etc/fstab file, I have added the following line to mount the additional block device when booted;
    /dev/xvdb1      /software               ext3            defaults                0       0

3) In guest OS root filesystem, i have created the "software" directory so that fstab could mount it to the additional block device at the boot time

4) Then I start the guest VM.

The problem is that the guest boots up and works fine but there is neither a block device /dev/xvdb1 available nor mounting it manually to /software works!

Any ideas? I have tried both "xvdb" and "xvdb1" in the xen configuration files but luck so far!

Thanks for your help in advance!

--
Omer

-------------------------------------------------------
CERN -- European Organization for Nuclear
Research, IT Department, CH-1211,
Geneva 23, Switzerland

Phone: +41 (0) 22 767 2224
Fax: +41 (0) 22 766 8683
E-mail : Omer.Khalid@xxxxxxx
Homepage: http://cern.ch/Omer.Khalid
_______________________________________________
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®.