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

Harder, Stefan stefan.harder at fokus.fraunhofer.de
Wed Aug 18 07:25:13 PDT 2010


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 7099 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20100818/2db02dee/attachment-0002.bin>


More information about the Users mailing list