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] Adding a block device to a new Linux Guest

To: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] Adding a block device to a new Linux Guest
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:x-google-sender-auth; bh=QBdC7UWIm+hHPZmK+9wFgaqCI/pH+9vfa2FlfTGH7FU=; b=cghHufSDtvQ/lFNkHr8B9AVidEl4s2M2Jdyssl5xLhYPBIUeQMDywPPQ/eQr1YLwAP JYPEjut3rKs8IRsm8MLHQ/1PKN95uO3JcilbU0Zoze87e27ekaWbi9v6K/i1yFKj3P3G McByth1cWEvpIMZKb9aEM7CcMLRgcX9swlVXE=
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=
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

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
<Prev in Thread] Current Thread [Next in Thread>