search for: diskdev

Displaying 2 results from an estimated 2 matches for "diskdev".

2010 Sep 01
1
[PATCH] Fix virtual disk name (virtio)
...s["devices"].add_element("emulator").add_text("/usr/bin/qemu-kvm") devs = ['hda', 'hdb', 'hdc', 'hdd'] + virtual_devs = ['vda', 'vdb', 'vdc', 'vdd'] which_device = 0 + which_virtual_device = 0 diskDevices.each do |disk| is_cdrom = (disk =~ /\.iso/) ? true : false @@ -78,17 +80,18 @@ def create_vm_xml(name, uuid, memAllocated, memUsed, vcpus, bootDevice, diskdev.add_element("readonly") diskdev.add_element("source", {"file" => disk}) dis...
2010 Aug 25
2
[PATCH] Virtio support
...diff --git a/src/task-omatic/task_vm.rb b/src/task-omatic/task_vm.rb index dd71747..cc2071f 100644 --- a/src/task-omatic/task_vm.rb +++ b/src/task-omatic/task_vm.rb @@ -35,7 +35,7 @@ end def create_vm_xml(name, uuid, memAllocated, memUsed, vcpus, bootDevice, - net_interfaces, diskDevices) + virtio, net_interfaces, diskDevices) doc = Document.new doc.add_element("domain", {"type" => "kvm"}) @@ -78,6 +78,10 @@ def create_vm_xml(name, uuid, memAllocated, memUsed, vcpus, bootDevice, diskdev.add_element("readonly&...