<html><head><style>.em-message p{margin:0px}</style></head><body><div class="em-message"><font face="arial">Indeed :)<br><br>Thanks a lot Ruben, that solved a lot of questions.<br><br>Kind regards<br>CyD<br><br>Dimanche 26/08/2012 à 23:38 Ruben S. Montero a écrit:<br><blockquote style="border:0;border-left: 2px solid #22437f; padding:0px; margin:0px; padding-left:5px; margin-left: 5px; ">Hi<br>
<br>
The final mapping of devices are made by libvirt, and depending on the<br>
version, for example it will not left any gap in the bus. Note also<br>
that the guest may present the device under different forms...<br>
<br>
OpenNebula has some automatic target naming (check [1]) so I think<br>
that it is better to just set DEV_PREFIX to choose a bus (vd in your<br>
case) and that's it.<br>
<br>
Cheers<br>
<br>
Ruben<br>
<br>
[1] <a href="http://opennebula.org/documentation:rel3.6:template#disks_device_mapping" target="_blank" class="normal-link">http://opennebula.org/documentation:rel3.6:template#disks_device_mapping</a><br>
<br>
On Sun, Aug 26, 2012 at 9:19 PM, Duverne, Cyrille<br>
<cyrille.duverne@euranova.eu> wrote:<br>
><br>
> Thanks a lot Ruben,<br>
><br>
> Indeed, this was that simple, I tried so much different config that I lost<br>
> the basics.<br>
><br>
> But, I configured this datablock to be mapped to vde and it's mapped to vdc,<br>
> why ?<br>
><br>
> Thanks in advance.<br>
> CyD<br>
><br>
><br>
> Dimanche 26/08/2012 à 20:59 Ruben S. Montero a écrit:<br>
><br>
> Hi<br>
><br>
> It is normal not to see a partition table, note that the disk is made of a<br>
> raw file, and then is given ext3 format. The devices are shown in your VM,<br>
> so just mount them<br>
><br>
> mount -t ext3 /dev/vdc /mnt<br>
><br>
> Cheers<br>
><br>
> Ruben<br>
><br>
> On Sun, Aug 26, 2012 at 11:12 AM, Duverne, Cyrille<br>
> <cyrille.duverne@euranova.eu> wrote:<br>
>><br>
>><br>
>> Hello,<br>
>><br>
>> Did anyone get the time to look at this ?<br>
>><br>
>> Thanks in advance.<br>
>> CyD<br>
>><br>
>><br>
>><br>
>> Vendredi 24/08/2012 à 14:24 Duverne, Cyrille a écrit:<br>
>><br>
>> 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>
>> Fri Aug 24 14:07:05 2012 [DiM][I]: New VM state is ACTIVE.<br>
>> Fri Aug 24 14:07:05 2012 [LCM][I]: New VM state is PROLOG.<br>
>> Fri Aug 24 14:07:39 2012 [TM][D]: tm_clone.sh:<br>
>> inferno:/var/lib/one/images/b1240e874bec231c993568433c5a314a<br>
>> orthanc.local:/var/lib/one//121/images/disk.0<br>
>> Fri Aug 24 14:07:39 2012 [TM][D]: tm_clone.sh: DST:<br>
>> /var/lib/one//121/images/disk.0<br>
>> Fri Aug 24 14:07:39 2012 [TM][I]: tm_clone.sh: Creating directory<br>
>> /var/lib/one//121/images<br>
>> Fri Aug 24 14:07:39 2012 [TM][I]: tm_clone.sh: Executed "mkdir -p<br>
>> /var/lib/one//121/images".<br>
>> Fri Aug 24 14:07:39 2012 [TM][I]: tm_clone.sh: Executed "chmod a+w<br>
>> /var/lib/one//121/images".<br>
>> Fri Aug 24 14:07:39 2012 [TM][I]: tm_clone.sh: Cloning<br>
>> /var/lib/one/images/b1240e874bec231c993568433c5a314a<br>
>> Fri Aug 24 14:07:39 2012 [TM][I]: tm_clone.sh: Executed "cp -r<br>
>> /var/lib/one/images/b1240e874bec231c993568433c5a314a<br>
>> /var/lib/one//121/images/disk.0".<br>
>> Fri Aug 24 14:07:39 2012 [TM][I]: tm_clone.sh: Executed "chmod a+rw<br>
>> /var/lib/one//121/images/disk.0".<br>
>> Fri Aug 24 14:07:39 2012 [TM][I]: ExitCode: 0<br>
>> Fri Aug 24 14:07:57 2012 [TM][I]: tm_mkimage.sh: Executed "mkdir -p<br>
>> /var/lib/one//121/images".<br>
>> Fri Aug 24 14:07:57 2012 [TM][I]: tm_mkimage.sh: Executed "dd if=/dev/zero<br>
>> of=/var/lib/one//121/images/disk.1 bs=1 count=1 seek=40000M".<br>
>> Fri Aug 24 14:07:57 2012 [TM][I]: tm_mkimage.sh: Executed "mkfs -t ext3 -F<br>
>> /var/lib/one//121/images/disk.1".<br>
>> Fri Aug 24 14:07:57 2012 [TM][I]: tm_mkimage.sh: Executed "chmod a+rw<br>
>> /var/lib/one//121/images/disk.1".<br>
>> Fri Aug 24 14:07:57 2012 [TM][I]: ExitCode: 0<br>
>> Fri Aug 24 14:07:58 2012 [TM][I]: tm_context.sh: Executed "mkdir -p<br>
>> /var/lib/one//121/images/isofiles".<br>
>> Fri Aug 24 14:07:58 2012 [TM][I]: tm_context.sh: Executed "cp -R<br>
>> /var/lib/one/121/context.sh /var/lib/one//121/images/isofiles".<br>
>> Fri Aug 24 14:07:58 2012 [TM][I]: tm_context.sh: Executed "cp -R<br>
>> /nebuladata/scripts/init.sh /var/lib/one//121/images/isofiles".<br>
>> Fri Aug 24 14:07:58 2012 [TM][I]: tm_context.sh: Executed "genisoimage -o<br>
>> /var/lib/one//121/images/disk.2 -J -R /var/lib/one//121/images/isofiles".<br>
>> Fri Aug 24 14:07:58 2012 [TM][I]: tm_context.sh: Executed "rm -rf<br>
>> /var/lib/one//121/images/isofiles".<br>
>> Fri Aug 24 14:07:58 2012 [TM][I]: ExitCode: 0<br>
>> Fri Aug 24 14:07:58 2012 [LCM][I]: New VM state is BOOT<br>
>> Fri Aug 24 14:07:58 2012 [VMM][I]: Generating deployment file:<br>
>> /var/lib/one/121/deployment.0<br>
>> Fri Aug 24 14:07:58 2012 [VMM][I]: ExitCode: 0<br>
>> Fri Aug 24 14:07:58 2012 [VMM][I]: Successfully execute network driver<br>
>> operation: pre.<br>
>> Fri Aug 24 14:08:00 2012 [VMM][I]: ExitCode: 0<br>
>> Fri Aug 24 14:08:00 2012 [VMM][I]: Successfully execute virtualization<br>
>> driver operation: deploy.<br>
>> Fri Aug 24 14:08:00 2012 [VMM][I]: ExitCode: 0<br>
>> Fri Aug 24 14:08:00 2012 [VMM][I]: Successfully execute network driver<br>
>> operation: post.<br>
>> 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>
>><br>
>><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>
>><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>
>><br>
>><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>
>><br>
>><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>
>><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>
>><br>
>><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>
>><br>
>><br>
>> Please help, this is driving me crazy...<br>
>><br>
>> Thanks in advance<br>
>> CyD<br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Users mailing list<br>
>> <a class="normal-link" 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" class="normal-link">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Ruben S. Montero, PhD<br>
> Project co-Lead and Chief Architect<br>
> OpenNebula - The Open Source Solution for Data Center Virtualization<br>
> www.OpenNebula.org | <a class="normal-link" href="mailto:rsmontero@opennebula.org">rsmontero@opennebula.org</a> | @OpenNebula<br>
<br>
<br>
<br>
-- <br>
Ruben S. Montero, PhD<br>
Project co-Lead and Chief Architect<br>
OpenNebula - The Open Source Solution for Data Center Virtualization<br>
www.OpenNebula.org | <a class="normal-link" href="mailto:rsmontero@opennebula.org">rsmontero@opennebula.org</a> | @OpenNebula</blockquote></font></div></body></html>