<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Jaime,<div><br></div><div>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. </div><div><br></div><div>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:</div><div><br></div><div><div>...</div><div>DISK=[</div><div> BUS="virtio",</div><div> DRIVER="raw",</div><div> IMAGE="wms01_raw",</div><div> IMAGE_UNAME="oneadmin",</div><div> TARGET="sda" ]</div><div>DISK=[</div><div> BUS="virtio",</div><div> DRIVER="raw",</div><div> IMAGE="wms01_1_raw",</div><div> IMAGE_UNAME="oneadmin",</div><div> TARGET="sdb" ]</div><div>DISK=[</div><div> BUS="virtio",</div><div> IMAGE="SL6.3_iso",</div><div> IMAGE_UNAME="oneadmin",</div><div> TARGET="sdc" ]</div></div><div><br></div><div>Cheers,</div><div>Virginia.</div><div><br><div><div><div>El 11/12/2012, a las 11:01, Jaime Melis escribió:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hello Virginia,<div><br></div><div>We've been discussing about your problem, and apparently it has got nothing to do with what I replied, sorry about that!</div><div><br></div><div>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?</div>
<div><br></div><div>You could try changing one of the images to TYPE = DATABLOCK, with oneimage chtype.</div><div><br></div><div>cheers,</div><div>Jaime</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 10, 2012 at 9:58 PM, Jaime Melis <span dir="ltr"><<a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Virginia,<div><br></div><div>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...</div>
<div><br></div><div>cheers,<br>Jaime</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 10, 2012 at 5:33 PM, Virginia Martín-Rubio Pascual <span dir="ltr"><<a href="mailto:virginia.martinrubio@rediris.es" target="_blank">virginia.martinrubio@rediris.es</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I've migrated successfully some VMware virtual machines to KVM using my OpenNebula front-end, following these steps:<br>
<br>
- Adding the .vmdk file to the OpenNebula datastore as an OS image .<br>
- Creating the VM template following the .vmx file information.<br>
- Instantiating the template.<br>
<br>
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...<br>
<br>
Does anyone have already this problem? Any idea about a possible solution?<br>
<br>
Thanks in Advance,<br>
<br>
Best regards,<br>
Virginia Martín-Rubio.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</blockquote></div><br></div><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>Jaime Melis<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Cloud Computing<br><a href="http://www.OpenNebula.org/" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Jaime Melis<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Cloud Computing<br><a href="http://www.OpenNebula.org/" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a><br>
</div>
</blockquote></div><br></div></div></body></html>