How to customize the sysinfo tag from the xml generated by glance for libvrt

asked 2015-03-24 14:29:17 -0500

anonymous user

Anonymous

updated 2015-03-25 06:12:17 -0500

SGPJ gravatar image

I need to be able to customize the XML file generated by libvrt when I create an instance based on a custom image.

By default, the following entry is created:

```

<sysinfo type=smbios>
   <system>
      <entry name="manufacturer">OpenStack Foundation</entry>
      <entry name="product">OpenStack Nova</entry>
      <entry name="version">2013.1</entry>
      <entry name="serial">0bd50aa7-214c-fe5b-662c-0025902d7f96</entry>
      <entry name="uuid">648d9178-3099-466e-861e-0476b3e0aa24</entry>
    </system>  
   </sysinfo>

```

And i would need to customize the product entry with something custom.

I know I can change that through virsh but it will revert after a reboot of the VM. But I would like to be able to customize it when i create the image.

Thanks

edit retag flag offensive close merge delete