From 0cbff4827a1ea115cea0d8830b29e442f8e2b0be Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Mon, 28 Mar 2011 15:18:17 +0200 Subject: [PATCH] Bug #510: Added virtio disk BUS options to KVM wizard in VM plugin --- src/sunstone/public/js/plugins/vms-tab.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/sunstone/public/js/plugins/vms-tab.js b/src/sunstone/public/js/plugins/vms-tab.js index 550c5686fa..fa20623b4f 100644 --- a/src/sunstone/public/js/plugins/vms-tab.js +++ b/src/sunstone/public/js/plugins/vms-tab.js @@ -1026,9 +1026,14 @@ function setupCreateVMDialog(){ $('select#boot_method option').removeAttr("selected"); $('select#boot_method option#no_boot').html("Driver default"); - $('select#boot_method option').removeAttr("selected"); + $('select#boot_method option').removeAttr("selected"); $('.kernel, .bootloader', $('div#os_boot_opts')).hide(); + $('div#disks select#BUS').append( + ''); + + + $('input#TYPE', section_raw).val("kvm"); $(section_inputs).show(); @@ -1056,6 +1061,7 @@ function setupCreateVMDialog(){ $('select#boot_method option#no_boot').html("Please choose"); $('.kernel, .bootloader', $('div#os_boot_opts')).hide(); + $('div#disks select#BUS option#virtio').remove(); $('input#TYPE', section_raw).val("xen"); $(section_inputs).hide(); //not present for xen