[one-users] Defining disks (fs,mount,swap..)

Javier Fontan jfontan at gmail.com
Mon May 31 04:04:16 PDT 2010


Hello,

What do you mean by "mnt" image? If you want to cerate an empty
filesystem you should use TYPE=fs. Types of disks are explained here:

http://opennebula.org/documentation:rel1.4:template



On Tue, May 25, 2010 at 3:08 PM, Ghazal Salehi <ghazal.salehi at gmail.com> wrote:
> Hi all
>
> I have problem with defining disks in VM description file. Attributes
> such as target, format, size...
>
> I have tried two differnt images, ttylinux and centos.
>
> This is the output of file ../ttylinux.img :
>
> /srv/ttylinux.img: x86 boot sector, LInux i386 boot LOader; partition
> 1: ID=0x83, starthead 1, startsector 63, 81585 sectors, extended
> partition table (last)\011
>
> ---------------------------------------------------------
> output of file ../centos.img :
> ---------------------------------------------------------
>
> /srv/cloud/one/1Gimage/euca-centos-5.3-x86_64/centos.orig.5-3.x86-64.img:
> Linux rev 1.0 ext3 filesystem data (large files)
>
> --------------------------------------------------
> fstab file from centos image
> ---------------------------------------------------
> /dev/sda1         /             ext3     defaults,errors=remount-ro 0 0
> /dev/sda2         /mnt          ext3     defaults                   0 0
> /dev/sda3         swap          swap     defaults                   0 0
> devpts           /dev/pts      devpts   gid=5,mode=620             0 0
> proc             /proc         proc     defaults                   0 0
>
> --------------------------------------------------
> fstab file from tylinux image
> ---------------------------------------------------
> /dev/hda1     /            ext2       defaults                      0 0
> tmpfs         /dev         tmpfs      noauto                        0 0
> devpts        /dev/pts     devpts     gid=5,mode=0620               0 0
> tmpfs         /dev/shm     tmpfs      rw,noexec,nosuid,size=24k     0 0
> proc          /proc        proc       noauto                        0 0
> sysfs         /sys         sysfs      noauto                        0 0
>
>
> -------------------------------------------------
> VM Description file:
> -------------------------------------------------
> NAME   = centos
> CPU    = 0.1
> MEMORY = 64
>
> OS     = [
> kernel="/srv/cloud/one/1Gimage/euca-centos-5.3-x86_64/xen-kernel/vmlinuz-2.6.27.21-0.1-xen"
> #initd   = "/srv/cloud/one/1Gimage/euca-centos-5.3-x86_64/xen-#kernel/initrd-2.6.27.21-0.1-xen"
> ,  root = "sda1"
> ]
>
> DISK   = [
>  source   = "/srv/cloud/one/1Gimage/euca-centos-5.3-x86_64/centos.orig.5-3.x86-64.img",
>  target   = "sda1",
>  readonly = "no" ]
>
> #DISK = [ type = mnt,
> #         size = 2048,
> #         taget = sda2]
>
> DISK = [ type = swap,
>        size = 2048,
>        taget = sda3
> ]
>
> NIC    = [ NETWORK = "net201" ]
>
> FEATURES=[ acpi="no" ]
>
>
> I have gained the fstab files by mounting the images in a temporary
> folder and then umount it again.
> I don't know how to define mnt partition of centos image in
> description file which is sd2 in fstab file.
> How should I find out the sie of these partitions?
>
> Thank you in advance for your help.
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org



More information about the Users mailing list