[one-users] Manually set UUID on a VM using OpenNebula

Carlos Jiménez cjimenez at eneotecnologia.com
Tue Oct 16 05:27:36 PDT 2012


Hello everybody,

I've manually converted a VMWare disk (of a Windows 7 VM) to a KVM disk. 
Then, using sunstone GUI I've registered the image, created the template 
and finally instantiated that template. However, the VM fails just 
before the login screen. I've found that it could be due to the UUID 
field that I'm not able to modify using Sunstone.

As a testing purpose I've created a VM using virt-manager and then 
manually changed the UUID (editing xml file of the VM) to use the UUID 
that initially was assigned by VMWare. Then, the VM works fine on that host.

Is there any way to change that UUID using OpenNebula/sunstone tools? In 
the moment of the image template definition I've tried adding a variable 
named UUID with the proper value, but it is not enough because it deals 
that value as a custom one, out of the VM section so it maintains the 
kvm assigned UUID.

This is the output of "onetemplate show 11 -x". Notice the UUID field at 
the end. I think it should appear in VMTEMPLATE section.

<VMTEMPLATE>
   <ID>11</ID>
   <UID>0</UID>
   <GID>0</GID>
   <UNAME>oneadmin</UNAME>
   <GNAME>oneadmin</GNAME>
   <NAME>Windows_7b</NAME>
   <PERMISSIONS>
     <OWNER_U>1</OWNER_U>
     <OWNER_M>1</OWNER_M>
     <OWNER_A>0</OWNER_A>
     <GROUP_U>0</GROUP_U>
     <GROUP_M>0</GROUP_M>
     <GROUP_A>0</GROUP_A>
     <OTHER_U>0</OTHER_U>
     <OTHER_M>0</OTHER_M>
     <OTHER_A>0</OTHER_A>
   </PERMISSIONS>
   <REGTIME>1349971090</REGTIME>
   <TEMPLATE>
     <GID><![CDATA[0]]></GID>
     <GNAME><![CDATA[oneadmin]]></GNAME>
     <ID><![CDATA[10]]></ID>
     <NAME><![CDATA[Windows_7b]]></NAME>
     <PERMISSIONS>
       <GROUP_A><![CDATA[0]]></GROUP_A>
       <GROUP_M><![CDATA[0]]></GROUP_M>
       <GROUP_U><![CDATA[0]]></GROUP_U>
       <OTHER_A><![CDATA[0]]></OTHER_A>
       <OTHER_M><![CDATA[0]]></OTHER_M>
       <OTHER_U><![CDATA[0]]></OTHER_U>
       <OWNER_A><![CDATA[0]]></OWNER_A>
       <OWNER_M><![CDATA[1]]></OWNER_M>
       <OWNER_U><![CDATA[1]]></OWNER_U>
     </PERMISSIONS>
     <REGTIME><![CDATA[1349970085]]></REGTIME>
     <TEMPLATE>
       <CPU><![CDATA[1]]></CPU>
       <DISK><![CDATA[
       ]]></DISK>
       <GRAPHICS><![CDATA[
       ]]></GRAPHICS>
       <MEMORY><![CDATA[1024]]></MEMORY>
       <NAME><![CDATA[Windows_7]]></NAME>
       <NIC><![CDATA[
       ]]></NIC>
       <OS><![CDATA[
       ]]></OS>
       <RAW><![CDATA[
       ]]></RAW>
       <TEMPLATE_ID><![CDATA[10]]></TEMPLATE_ID>
     </TEMPLATE>
     <TEMPLATE_ID><![CDATA[11]]></TEMPLATE_ID>
     <UID><![CDATA[0]]></UID>
     <UNAME><![CDATA[oneadmin]]></UNAME>
*<UUID><![CDATA[564d0a8b-f8de-ce9a-ecc2-cf7ebc0e4c83]]></UUID>*
   </TEMPLATE>
</VMTEMPLATE>


Advice will be very appreciated.


Carlos.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121016/14366240/attachment.htm>


More information about the Users mailing list