Cannot Edit Instance XML Configuration

asked 2018-04-23 04:49:48 -0500

Foosome gravatar image


I want to create raw device mapping to the instance, and find out the way is to add a configuration like this :

<disk type='block' device='disk'>
  <driver name='qemu' type='raw'/>
  <source dev='/dev/disk/by-id/ata-WDC_WD40EFRX-68WT0N0_WD-XXXXXXX'/>
  <target dev='vdb' bus='virtio'/>

I read in this thread that nova always generates the xml when the instance is restarted, and is generated by this file : /usr/lib/python2.7/site-packages/nova/virt/libvirt/ and /usr/lib/python2.7/site-packages/nova/virt/libvirt/

The problem is i still don't have enaugh python skill to add that to that python script. Can anyone help me to edit the python script?

and actually there's other solution i found but i still don't get it : BDD Driver (

Can someone explain how to use it?

edit retag flag offensive close merge delete