[one-users] Defining Disks in description file (root, fs, swap, mount..)

Ghazal Salehi ghazal.salehi at gmail.com
Sat May 29 23:32:44 PDT 2010


Hi

The error messages are something about taps and also mkfs command
which seemed not  defined. Please find the errors below which occurred
in different setting for disks:

Wed May 26 16:44:09 2010 [LCM][I]: New VM state is BOOT
Wed May 26 16:44:09 2010 [VMM][I]: Generating deployment file:
/srv/cloud/one/var/170/deployment.0
Wed May 26 16:44:34 2010 [VMM][I]: Command execution fail: 'cat >
/srv/cloud/one/var//170/images/deployment.0 && sudo /usr/sbin/xm
create /srv/cloud/one/var//170/images/deployment.0 && sudo
/usr/sbin/xm sched-cred -d one-170 -w 26'
Wed May 26 16:44:34 2010 [VMM][I]: STDERR follows.
Wed May 26 16:44:34 2010 [VMM][I]: Error: Device 770 (tap) could not
be connected.
Wed May 26 16:44:34 2010 [VMM][I]:
/srv/cloud/one/var/170/images/disk.1 does not exist
Wed May 26 16:44:34 2010 [VMM][I]: ExitCode: 1
Wed May 26 16:44:34 2010 [VMM][E]: Error deploying virtual machine
Wed May 26 16:44:34 2010 [DiM][I]: New VM state is FAILED
Wed May 26 16:44:36 2010 [TM][W]: Ignored: LOG - 170 tm_delete.sh:
Deleting /srv/cloud/one/var//170/images

---------------------------------------------------

Command execution fail:
/srv/cloud/one//lib/tm_commands/nfs/tm_mkimage.sh 64 ext2
192.168.37.141:/srv/cloud/one/var//169/images/disk.1
Wed May 26 16:32:45 2010 [TM][I]: STDERR follows.
Wed May 26 16:32:45 2010 [TM][I]: ERROR MESSAGE --8<------
Wed May 26 16:32:45 2010 [TM][I]:
/srv/cloud/one//lib/mads/tm_common.sh: line 99: mkfs: command not
found
Wed May 26 16:32:45 2010 [TM][I]: ERROR MESSAGE ------>8--
Wed May 26 16:32:45 2010 [TM][I]: ExitCode: 127
Wed May 26 16:32:45 2010 [TM][I]: tm_mkimage.sh: Executed "mkdir -p
/srv/cloud/one/var//169/images".
Wed May 26 16:32:45 2010 [TM][I]: tm_mkimage.sh: Executed "dd
if=/dev/zero of=/srv/cloud/one/var//169/images/disk.1 bs=1 count=1
seek=64M".
Wed May 26 16:32:45 2010 [TM][I]: tm_mkimage.sh: ERROR: Command "mkfs
-t ext2 -F /srv/cloud/one/var//169/images/disk.1" failed.
Wed May 26 16:32:45 2010 [TM][I]: tm_mkimage.sh: ERROR:
/srv/cloud/one//lib/mads/tm_common.sh: line 99: mkfs: command not
found
Wed May 26 16:32:45 2010 [TM][E]: Error excuting image transfer
script: /srv/cloud/one//lib/mads/tm_common.sh: line 99: mkfs: command
not found
Wed May 26 16:33:17 2010 [DiM][I]: New VM state is FAILED
Wed May 26 16:33:21 2010 [TM][W]: Ignored: LOG - 169 tm_delete.sh:
Deleting /srv/cloud/one/var//169/images

Cheers
Ghazal

On 5/29/10, Mehdi Sheikhalishahi <mehdi.alishahi at gmail.com> wrote:
> what are the error messages?
>
> On Sat, May 29, 2010 at 12:30 AM, Ghazal Salehi
> <ghazal.salehi at gmail.com>wrote:
>
>> Hi All
>>
>> I have deployment problem with my VMs.
>> I have tried two images ttylinux and centos.
>> I think there is something wrong with defining disks.
>>
>> 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)
>>
>> -------------------------------------------------
>> 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 = sd2]
>>
>> DISK = [ type = swap,
>>        size = 2048,
>>        target = sd3
>> ]
>>
>> NIC    = [ NETWORK = "net201" ]
>>
>> FEATURES=[ acpi="no" ]
>>
>> --------------------------------------------------
>> 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
>>
>>
>> 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.
>>
>> Thank you in advance for your help.
>>
>> Regards
>> Ghazal
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>
>
>
> --
> Regards,
> Mehdi
>



More information about the Users mailing list