Cannot Edit Instance XML Configuration
Hello,
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'/> </disk>
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/config.py and /usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py
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 https://stackoverflow.com/questions/37879529/is-there-anyway-for-openstack-to-attach-a-physical-disk-directly (https://stackoverflow.com/questions/3...)
Can someone explain how to use it?