Hi<div><br></div><div>It is normal not to see a partition table, note that the disk is made of a raw file, and then is given ext3 format. The devices are shown in your VM, so just mount them</div><div><br></div><div>mount -t ext3 /dev/vdc /mnt</div>
<div><br></div><div>Cheers</div><div><br></div><div>Ruben<br><br><div class="gmail_quote">On Sun, Aug 26, 2012 at 11:12 AM, Duverne, Cyrille <span dir="ltr"><<a href="mailto:cyrille.duverne@euranova.eu" target="_blank">cyrille.duverne@euranova.eu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><font face="arial"><br><div>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:<div><div class="h5"><br><blockquote style="border:0;border-left:2px solid #22437f;padding:0px;margin:0px;padding-left:5px;margin-left:5px"><div>
<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></div></div></font></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula<br>
</div>