# File lib/client/vm_api.rb, line 45 def add_volume(vm_id, opts={}) storage_domain_id = opts[:storage_domain] || storagedomains.first.id http_post("/vms/%s/disks" % vm_id, OVIRT::Volume.to_xml(storage_domain_id, opts)) end