
On Sun, Jan 12, 2014 at 6:09 PM, Teto <mattator@gmail.com> wrote:
Hi, Thanks to your advice, I was able to make it work using nokogiri. I am now trying to attach new devices (shared folders) via my custom function: ===== def attach_device(uuid , device) puts "CAlled with uuid #{uuid}"
client.lookup_domain_by_uuid(uuid).update_device(device.to_s, 0) end ===== "device.to_s" returns a correct xml for <filesystem>. I then have the following error:
CAlled with uuid 8cc185ef-4bf1-4b78-9caa-cd14c70cd1b3 /home/teto/fog/lib/fog/libvirt/requests/compute/attach_device.rb:38:in `update_device': Call to virDomainUpdateDeviceFlags failed: >Operation not supported: persistent update of device 'filesystem' is not supported (Libvirt::Error)
Does that mean I need to undefine my domain and then recreate it if I want to keep the update persistent ?
Sorry, I don't really know about that. Hopefully someone else will be able to answer. Chris