[one-users] Contextualization and Ubuntu hda/sda confusion

Javier Fontan jfontan at gmail.com
Thu Aug 19 04:47:16 PDT 2010


Hello,

We also had these problems with libvirt/kvm. Even if we specify the
target device as the user wants it takes that as a hint and not always
sets the bus as expected (hd*/sd*). We will try to find a way to force
it to use the target specified but right now you have to check
libvirt/kvm bias in bus selection.

Bye

On Wed, Aug 18, 2010 at 4:25 PM, Harder, Stefan
<stefan.harder at fokus.fraunhofer.de> wrote:
> Hi,
>
> I started to play around a little bit with contextualization. Therefore I
> prepared an Ubuntu10.04 KVM image with the mounting entries in the
> /etc/rc.local. I added the CONTEXT section in the template file with an
> init.sh file to put into the iso. When I create the VM in OpenNebula (1.4)
> no image is mounted or even attached, but no errors are listed in the
> oned.log. What is also strange: in my template I set "hda" as target in the
> DISK section but in the started vm sda is used. Is this Ubuntu specific? Can
> this be a reason for the not working contextualization? Or did I miss
> something else? Is the a systematical way to sort things out?
>
> Reagards,
>
> Stefan
>
> Here some additional files/logs:
>
> ----rc.local inside VM
> mount -t iso9660 /dev/hdc /mnt
> if [ -f /mnt/context.sh ]
>  . /mnt/init.sh
> fi
> umount /mnt
>
>
> ----one template
> NAME   = ubuntu10-04
> CPU    = 1.0
> VCPU   = 3.0
> MEMORY = 768
>
> DISK   = [
>  source   = "/srv/cloud/temp/stefan/ubuntu10-04.img",
>  target   = "hda",
>  readonly = "no" ]
>
> FEATURES=[ acpi="no" ]
>
> NIC    = [ NETWORK = "network" ]
>
> GRAPHICS = [
>  type   = "vnc",
>  listen = "0.0.0.0",
>  port   = "5910",
>  keymap = "de"]
>
>
> CONTEXT = [
>    hostname    = "$NAME",
>    ip_public   = "???.???.???.???",
>    files       = "/srv/cloud/temp/stefan/ubuntu10-04_context/init.sh",
>    target      = "hdc"
> #   username    = "oneadmin"
> ]
>
>
> ---oned.log
> Wed Aug 18 15:38:13 2010 [ReM][D]: VirtualMachineAllocate invoked
> Wed Aug 18 15:38:13 2010 [DiM][D]: Allocating a new VM
> Wed Aug 18 15:38:23 2010 [ReM][D]: VirtualMachineDeploy invoked
> Wed Aug 18 15:38:23 2010 [DiM][D]: Deploying VM 79
> Wed Aug 18 15:38:44 2010 [TM][D]: Message received: LOG - 79 tm_clone.sh:
> brandy:/srv/cloud/temp/stefan/ubuntu10-04.img
> brandy:/srv/cloud/one/var//79/images/disk.0
>
> Wed Aug 18 15:38:45 2010 [TM][D]: Message received: LOG - 79 tm_clone.sh:
> DST: /srv/cloud/one/var//79/images/disk.0
>
> Wed Aug 18 15:38:45 2010 [TM][D]: Message received: LOG - 79 tm_clone.sh:
> Creating directory /srv/cloud/one/var//79/images
>
> Wed Aug 18 15:38:45 2010 [TM][D]: Message received: LOG - 79 tm_clone.sh:
> Executed "mkdir -p /srv/cloud/one/var//79/images".
>
> Wed Aug 18 15:38:45 2010 [TM][D]: Message received: LOG - 79 tm_clone.sh:
> Executed "chmod a+w /srv/cloud/one/var//79/images".
>
> Wed Aug 18 15:38:45 2010 [TM][D]: Message received: LOG - 79 tm_clone.sh:
> Cloning /srv/cloud/temp/stefan/ubuntu10-04.img
>
> Wed Aug 18 15:38:45 2010 [TM][D]: Message received: LOG - 79 tm_clone.sh:
> Executed "cp /srv/cloud/temp/stefan/ubuntu10-04.img
> /srv/cloud/one/var//79/images/disk.0".
>
> Wed Aug 18 15:38:45 2010 [TM][D]: Message received: LOG - 79 tm_clone.sh:
> Executed "chmod a+w /srv/cloud/one/var//79/images/disk.0".
>
> Wed Aug 18 15:38:45 2010 [TM][D]: Message received: LOG - 79 tm_context.sh:
> Executed "mkdir -p /srv/cloud/one/var//79/images/isofiles".
>
> Wed Aug 18 15:38:45 2010 [TM][D]: Message received: LOG - 79 tm_context.sh:
> Executed "cp -R /srv/cloud/one/var/79/context.sh
> /srv/cloud/one/var//79/images/isofiles".
>
> Wed Aug 18 15:38:45 2010 [TM][D]: Message received: LOG - 79 tm_context.sh:
> Executed "cp -R /srv/cloud/temp/stefan/ubuntu10-04_context/init.sh
> /srv/cloud/one/var//79/images/isofiles".
>
> Wed Aug 18 15:38:45 2010 [TM][D]: Message received: LOG - 79 tm_context.sh:
> Executed "mkisofs -o /srv/cloud/one/var//79/images/disk.1 -J -R
> /srv/cloud/one/var//79/images/isofiles".
>
> Wed Aug 18 15:38:45 2010 [TM][D]: Message received: LOG - 79 tm_context.sh:
> Executed "rm -rf /srv/cloud/one/var//79/images/isofiles".
>
> Wed Aug 18 15:38:45 2010 [TM][D]: Message received: TRANSFER SUCCESS 79 -
>
> Wed Aug 18 15:38:56 2010 [InM][I]: Monitoring host vodka (2)
> Wed Aug 18 15:38:57 2010 [VMM][D]: Message received: DEPLOY SUCCESS 79
> one-79
>
> Wed Aug 18 15:39:01 2010 [InM][D]: Host 2 successfully monitored.
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>



-- 
Javier Fontan, Grid & Virtualization Technology Engineer/Researcher
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org



More information about the Users mailing list