Hi Jaime,

Yes, this time you're totally right  :) I have two TYPE=OS images, both of them 
have been created from vmdk files, and I want to create a new KVM virtual 
machine from these two images. 

I'm using OpenNebula 3.4 and it doesn't allow to configure two TYPE=OS images 
in the same template, so I created a VM template with one OS type image and one 
DATABLOCK type image, but I had some problems with the virtual machine boot 
("kernel panic- not syncing: Attempted to kill init!")... So I've added another 
image (TYPE=CDROM with the boot.iso of the operating system) to the template to 
be able to boot the virtual machine and rescue the old installed system. This 
works for me but the partition names are different than the original virtual 
machine. I've tried to specify them in the TARGET attributes but it doesn't 
work:

...
DISK=[
  BUS="virtio",
  DRIVER="raw",
  IMAGE="wms01_raw",
  IMAGE_UNAME="oneadmin",
  TARGET="sda" ]
DISK=[
  BUS="virtio",
  DRIVER="raw",
  IMAGE="wms01_1_raw",
  IMAGE_UNAME="oneadmin",
  TARGET="sdb" ]
DISK=[
  BUS="virtio",
  IMAGE="SL6.3_iso",
  IMAGE_UNAME="oneadmin",
  TARGET="sdc" ]

Cheers,
Virginia.

El 11/12/2012, a las 11:01, Jaime Melis escribió:

> Hello Virginia,
> 
> We've been discussing about your problem, and apparently it has got nothing 
> to do with what I replied, sorry about that!
> 
> So, the problem is -if I understood it correctly this time- that you have two 
> TYPE = OS images, and earlier versions of OpenNebula don't allow that. What 
> OpenNebula version are you using?
> 
> You could try changing one of the images to TYPE = DATABLOCK, with oneimage 
> chtype.
> 
> cheers,
> Jaime
> 
> 
> On Mon, Dec 10, 2012 at 9:58 PM, Jaime Melis <[email protected]> wrote:
> Hello Virginia,
> 
> I've never migrated a VMware VM to KVM in the way you have just described, 
> but I was wondering, have you tried converting the images to another format 
> (RAW for instance) with "qemu-img convert"? Maybe it will detect that it's 
> the same disk and merge both vmdks into a single file...
> 
> cheers,
> Jaime
> 
> 
> On Mon, Dec 10, 2012 at 5:33 PM, Virginia Martín-Rubio Pascual 
> <[email protected]> wrote:
> Hi,
> 
> I've migrated successfully some VMware virtual machines to KVM using my 
> OpenNebula front-end, following these steps:
> 
> - Adding the .vmdk file to the OpenNebula datastore as an OS image .
> - Creating the VM template following the .vmx file information.
> - Instantiating the template.
> 
> But I've found a problem with a virtual machine with two .vmdk files (two 
> different partitions configured with LVM) because OpenNebula only lets me add 
> one OS image in the same virtual machine template...
> 
> Does anyone have already this problem? Any idea about a possible solution?
> 
> Thanks in Advance,
> 
> Best regards,
> Virginia Martín-Rubio.
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> 
> 
> 
> -- 
> Jaime Melis
> Project Engineer
> OpenNebula - The Open Source Toolkit for Cloud Computing
> www.OpenNebula.org | [email protected]
> 
> 
> 
> -- 
> Jaime Melis
> Project Engineer
> OpenNebula - The Open Source Toolkit for Cloud Computing
> www.OpenNebula.org | [email protected]

_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to