[one-users] Unable to see on the fly disk in KVM VMs
Duverne, Cyrille
cyrille.duverne at euranova.eu
Sun Aug 26 14:51:19 PDT 2012
Indeed :)
Thanks a lot Ruben, that solved a lot of questions.
Kind regards
CyD
Dimanche 26/08/2012 à 23:38 Ruben S. Montero a écrit:
Hi
The final mapping of devices are made by libvirt, and depending on the
version, for example it will not left any gap in the bus. Note also
that the guest may present the device under different forms...
OpenNebula has some automatic target naming (check [1]) so I think
that it is better to just set DEV_PREFIX to choose a bus (vd in your
case) and that's it.
Cheers
Ruben
[1]
http://opennebula.org/documentation:rel3.6:template#disks_device_mapping
On Sun, Aug 26, 2012 at 9:19 PM, Duverne, Cyrille
wrote:
>
> Thanks a lot Ruben,
>
> Indeed, this was that simple, I tried so much different config that
I lost
> the basics.
>
> But, I configured this datablock to be mapped to vde and it's mapped
to vdc,
> why ?
>
> Thanks in advance.
> CyD
>
>
> Dimanche 26/08/2012 à 20:59 Ruben S. Montero a écrit:
>
> Hi
>
> 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
>
> mount -t ext3 /dev/vdc /mnt
>
> Cheers
>
> Ruben
>
> On Sun, Aug 26, 2012 at 11:12 AM, Duverne, Cyrille
> wrote:
>>
>>
>> Hello,
>>
>> Did anyone get the time to look at this ?
>>
>> Thanks in advance.
>> CyD
>>
>>
>>
>> Vendredi 24/08/2012 à 14:24 Duverne, Cyrille a écrit:
>>
>> Hello,
>>
>> I'm having quite an issue when creating VMs with an attached
datablock :
>>
>> I'm running OpenNebula 3.4 with KVM + Sunstone.
>>
>> Here below my VM template :
>>
>> CONTEXT=[
>> FILES=/nebuladata/scripts/init.sh,
>> HOSTNAME=\"VM-\"$VMID,
>> IP_PUBLIC="$NIC[IP, NETWORK=\"Big Network\"]",
>> TARGET=vdb ]
>> CPU=0.2
>> DISK=[
>> IMAGE=UbuntuContext,
>> TARGET=vda ]
>> DISK=[
>> FORMAT=ext3,
>> SIZE=40000,
>> TARGET=vde,
>> TYPE=fs ]
>> FEATURES=[
>> ACPI=yes ]
>> GRAPHICS=[
>> TYPE=VNC ]
>> MEMORY=512
>> NAME=ubuntu
>> NIC=[
>> NETWORK="Big Network" ]
>> OS=[
>> ARCH=x86_64,
>> BOOT=hd ]
>> TEMPLATE_ID=20
>>
>> Here below what happens in ONE when creating the VM :
>>
>> 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
>>
>> Here below a df -h result in the VM :
>>
>> Filesystem Size Used Avail Use% Mounted
on
>> /dev/mapper/ENX-root 2.3G 914M 1.3G 42% /
>> udev 237M 4.0K 237M 1%
/dev
>>
>>
>> tmpfs 99M 232K 99M 1%
/run
>> none 5.0M 0 5.0M
0% /run/lock
>> none 246M 0 246M
0% /run/shm
>> /dev/vda1 228M 25M 192M 12% /boot
>>
>>
>>
>> The result of a sudo fdisk -l :
>>
>> Disk /dev/vdb: 0 MB, 374784 bytes
>> 16 heads, 63 sectors/track, 0 cylinders, total 732 sectors
>> Units = sectors of 1 * 512 = 512 bytes
>> Sector size (logical/physical): 512 bytes / 512 bytes
>>
>>
>> I/O size (minimum/optimal): 512 bytes / 512 bytes
>> Disk identifier: 0x00000000
>>
>> Disk /dev/vdb doesn't contain a valid partition table
>>
>> Disk /dev/vdc: 41.9 GB, 41943040000 bytes
>> 16 heads, 63 sectors/track, 81269 cylinders, total 81920000 sectors
>>
>>
>> Units = sectors of 1 * 512 = 512 bytes
>> Sector size (logical/physical): 512 bytes / 512 bytes
>> I/O size (minimum/optimal): 512 bytes / 512 bytes
>> Disk identifier: 0x00000000
>>
>> Disk /dev/vdc doesn't contain a valid partition table
>>
>>
>>
>> Disk /dev/mapper/ENX-root: 2424 MB, 2424307712 bytes
>> 255 heads, 63 sectors/track, 294 cylinders, total 4734976 sectors
>> Units = sectors of 1 * 512 = 512 bytes
>> Sector size (logical/physical): 512 bytes / 512 bytes
>>
>>
>> I/O size (minimum/optimal): 512 bytes / 512 bytes
>> Disk identifier: 0x00000000
>>
>> -----------
>>
>> I tried to use it in a non-LVM VM, which was the same.
>> Tried to use hd or sd instead of vd and nothing worked...
>>
>>
>>
>> Please help, this is driving me crazy...
>>
>> Thanks in advance
>> CyD
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>
>
>
> --
> Ruben S.. Montero, PhD
> Project co-Lead and Chief Architect
> OpenNebula - The Open Source Solution for Data Center Virtualization
> www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
--
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120826/03104861/attachment-0002.htm>
More information about the Users
mailing list