[one-users] Defining disks (fs,mount,swap..)
Ghazal Salehi
ghazal.salehi at gmail.com
Tue May 25 06:08:35 PDT 2010
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.
More information about the Users
mailing list