<html><head><style>.em-message p{margin:0px}</style></head><body><div class="em-message"><font face="arial"><br><div id="EmailSignature">Hello,<br><br>Did anyone get the time to look at this ?<br><br>Thanks in advance.<br>CyD<br></div><br><br><br>Vendredi 24/08/2012 à 14:24 Duverne, Cyrille a écrit:<br><blockquote style="border:0;border-left: 2px solid #22437f; padding:0px; margin:0px; padding-left:5px; margin-left: 5px; "><div class="em-message"><font face="arial">Hello,<br><br>I'm having quite an issue when creating VMs with an attached datablock :<br><br>I'm running OpenNebula 3.4 with KVM + Sunstone.<br><br>Here below my VM template :<br><br>CONTEXT=[<br> FILES=/nebuladata/scripts/init.sh,<br> HOSTNAME=\"VM-\"$VMID,<br> IP_PUBLIC="$NIC[IP, NETWORK=\"Big Network\"]",<br> TARGET=vdb ]<br>CPU=0.2<br>DISK=[<br> IMAGE=UbuntuContext,<br> TARGET=vda ]<br>DISK=[<br> FORMAT=ext3,<br> SIZE=40000,<br> TARGET=vde,<br> TYPE=fs ]<br>FEATURES=[<br> ACPI=yes ]<br>GRAPHICS=[<br> TYPE=VNC ]<br>MEMORY=512<br>NAME=ubuntu<br>NIC=[<br> NETWORK="Big Network" ]<br>OS=[<br> ARCH=x86_64,<br> BOOT=hd ]<br>TEMPLATE_ID=20<br><br>Here below what happens in ONE when creating the VM :<br><br></font><pre>Fri Aug 24 14:07:05 2012 [DiM][I]: New VM state is ACTIVE.
Fri Aug 24 14:07:05 2012 [LCM][I]: New VM state is PROLOG.
Fri Aug 24 14:07:39 2012 [TM][D]: tm_clone.sh: inferno:/var/lib/one/images/b1240e874bec231c993568433c5a314a orthanc.local:/var/lib/one//121/images/disk.0
Fri Aug 24 14:07:39 2012 [TM][D]: tm_clone.sh: DST: /var/lib/one//121/images/disk.0
Fri Aug 24 14:07:39 2012 [TM][I]: tm_clone.sh: Creating directory /var/lib/one//121/images
Fri Aug 24 14:07:39 2012 [TM][I]: tm_clone.sh: Executed "mkdir -p /var/lib/one//121/images".
Fri Aug 24 14:07:39 2012 [TM][I]: tm_clone.sh: Executed "chmod a+w /var/lib/one//121/images".
Fri Aug 24 14:07:39 2012 [TM][I]: tm_clone.sh: Cloning /var/lib/one/images/b1240e874bec231c993568433c5a314a
Fri Aug 24 14:07:39 2012 [TM][I]: tm_clone.sh: Executed "cp -r /var/lib/one/images/b1240e874bec231c993568433c5a314a /var/lib/one//121/images/disk.0".
Fri Aug 24 14:07:39 2012 [TM][I]: tm_clone.sh: Executed "chmod a+rw /var/lib/one//121/images/disk.0".
Fri Aug 24 14:07:39 2012 [TM][I]: ExitCode: 0
Fri Aug 24 14:07:57 2012 [TM][I]: tm_mkimage.sh: Executed "mkdir -p /var/lib/one//121/images".
Fri Aug 24 14:07:57 2012 [TM][I]: tm_mkimage.sh: Executed "dd if=/dev/zero of=/var/lib/one//121/images/disk.1 bs=1 count=1 seek=40000M".
Fri Aug 24 14:07:57 2012 [TM][I]: tm_mkimage.sh: Executed "mkfs -t ext3 -F /var/lib/one//121/images/disk.1".
Fri Aug 24 14:07:57 2012 [TM][I]: tm_mkimage.sh: Executed "chmod a+rw /var/lib/one//121/images/disk.1".
Fri Aug 24 14:07:57 2012 [TM][I]: ExitCode: 0
Fri Aug 24 14:07:58 2012 [TM][I]: tm_context.sh: Executed "mkdir -p /var/lib/one//121/images/isofiles".
Fri Aug 24 14:07:58 2012 [TM][I]: tm_context.sh: Executed "cp -R /var/lib/one/121/context.sh /var/lib/one//121/images/isofiles".
Fri Aug 24 14:07:58 2012 [TM][I]: tm_context.sh: Executed "cp -R /nebuladata/scripts/init.sh /var/lib/one//121/images/isofiles".
Fri Aug 24 14:07:58 2012 [TM][I]: tm_context.sh: Executed "genisoimage -o /var/lib/one//121/images/disk.2 -J -R /var/lib/one//121/images/isofiles".
Fri Aug 24 14:07:58 2012 [TM][I]: tm_context.sh: Executed "rm -rf /var/lib/one//121/images/isofiles".
Fri Aug 24 14:07:58 2012 [TM][I]: ExitCode: 0
Fri Aug 24 14:07:58 2012 [LCM][I]: New VM state is BOOT
Fri Aug 24 14:07:58 2012 [VMM][I]: Generating deployment file: /var/lib/one/121/deployment.0
Fri Aug 24 14:07:58 2012 [VMM][I]: ExitCode: 0
Fri Aug 24 14:07:58 2012 [VMM][I]: Successfully execute network driver operation: pre.
Fri Aug 24 14:08:00 2012 [VMM][I]: ExitCode: 0
Fri Aug 24 14:08:00 2012 [VMM][I]: Successfully execute virtualization driver operation: deploy.
Fri Aug 24 14:08:00 2012 [VMM][I]: ExitCode: 0
Fri Aug 24 14:08:00 2012 [VMM][I]: Successfully execute network driver operation: post.
Fri Aug 24 14:08:01 2012 [LCM][I]: New VM state is RUNNING<br><br>Here below a df -h result in the VM :<br><br>Filesystem Size Used Avail Use% Mounted on<br>/dev/mapper/ENX-root 2.3G 914M 1.3G 42% /<br>udev 237M 4.0K 237M 1% /dev<br>tmpfs 99M 232K 99M 1% /run<br>none 5.0M 0 5.0M 0% /run/lock<br>none 246M 0 246M 0% /run/shm<br>/dev/vda1 228M 25M 192M 12% /boot<br><br>The result of a sudo fdisk -l :<br><br>Disk /dev/vdb: 0 MB, 374784 bytes<br>16 heads, 63 sectors/track, 0 cylinders, total 732 sectors<br>Units = sectors of 1 * 512 = 512 bytes<br>Sector size (logical/physical): 512 bytes / 512 bytes<br>I/O size (minimum/optimal): 512 bytes / 512 bytes<br>Disk identifier: 0x00000000<br><br>Disk /dev/vdb doesn't contain a valid partition table<br><br>Disk /dev/vdc: 41.9 GB, 41943040000 bytes<br>16 heads, 63 sectors/track, 81269 cylinders, total 81920000 sectors<br>Units = sectors of 1 * 512 = 512 bytes<br>Sector size (logical/physical): 512 bytes / 512 bytes<br>I/O size (minimum/optimal): 512 bytes / 512 bytes<br>Disk identifier: 0x00000000<br><br>Disk /dev/vdc doesn't contain a valid partition table<br><br>Disk /dev/mapper/ENX-root: 2424 MB, 2424307712 bytes<br>255 heads, 63 sectors/track, 294 cylinders, total 4734976 sectors<br>Units = sectors of 1 * 512 = 512 bytes<br>Sector size (logical/physical): 512 bytes / 512 bytes<br>I/O size (minimum/optimal): 512 bytes / 512 bytes<br>Disk identifier: 0x00000000<br><br>-----------<br><br>I tried to use it in a non-LVM VM, which was the same.<br>Tried to use hd or sd instead of vd and nothing worked...<br><br>Please help, this is driving me crazy...<br><br>Thanks in advance<br>CyD<br></pre><br></div></blockquote></font></div></body></html>