[one-users] Using Xen phy devices in VM templates

Ruben S. Montero rubensm at dacya.ucm.es
Fri Feb 19 01:20:03 PST 2010


Hi

That should be :
DISK = [
    type="block"
    clone="no"
    source="/dev/cciss/c0d0p4",
    target   = "xvdc",
    readonly = "no" ]

This should generate something like

'phy:$VM_DIR/var/$VMID/disk.3,xvdc,w'

Note also the clone="no" part. The Transfer Manager will try to setup
the disk in the VM home directory; if each cluster node has the same
scratch partition we can just link the device there. The script that
actually makes the link is tm_ln.sh in
$ONE_LOCATION/lib/tm_commands/nfs (or ssh if you are not using
NFS...), just in case you need to tune something...

Cheers

Ruben


On Thu, Feb 18, 2010 at 8:54 PM, Stefan Freitag <stefan.freitag at udo.edu> wrote:
> Dear all,
>
> at present I am using OpenNebula 1.4 to deploy virtual appliances
> to a Xen-based compute cluster. On each of the cluster nodes there
> exists a hard disk partition that should be used as scratch directory
> inside the virtual appliance (only 1 appliances is assigned to 1 server
> at a time, so there is no conflict).
>
>
> I created a template to describe the appliances and got stuck. Here is
> what I did so far concerning the hard disks used in the virtual
> appliance:
>
> 1) that is the image containing the OS, boot and root directory
> DISK = [
>    source   = "/mnt/gridconfig/images/workernode/wn_sl54_x86_64.img",
>    target   = "xvda",
>    readonly = "no" ]
>
> 2) a swap partition that is created on the fly by OpenNebula
> DISK = [
>    type = swap,
>    size = 1024,
>    target   = "xvdb",
>    readonly = "no" ]
>
>
> 3) I thought that this could work
> DISK = [
>    source="/dev/cciss/c0d0p4",
>    target   = "xvdc",
>    readonly = "no" ]
>
> but in the OpenNebula documentation one can read that without a
> specifying a type, "disk" is assumed and I need a Xen phy: device.
>
> The thing I need to express with OpenNebula needs to be translated  to
> something like
>
> disk = [ 'file:/vm/udo-wn099_root.img,xvda,w',
> 'file:/vm/udo-wn099_swap.img,xvdb,w', 'phy:/dev/cciss/c0d0p4,xvdc,w' ]
>
> in Xen-speak.
>
>
> What do I need to specify to make use of the phy: partition located at
> each of the cluster nodes?
>
>
> Kind regards,
> Stefan
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Dr. Ruben Santiago Montero
Associate Professor, Complutense University of Madrid

URL:    http://dsa-research.org/doku.php?id=people:ruben
Weblog: http://blog.dsa-research.org/?author=7



More information about the Users mailing list