Displaying 5 results from an estimated 5 matches for "pxe_option_value".
2010 Sep 02
1
[PATCH 1/1] Introduce an option to always pxe-boot a vm.
...ontroller.rb
index 88e13ab..8e99b67 100644
--- a/src/app/controllers/vm_controller.rb
+++ b/src/app/controllers/vm_controller.rb
@@ -154,6 +154,7 @@ class VmController < ApplicationController
protected
def _setup_provisioning_options
@provisioning_options = [[Vm::PXE_OPTION_LABEL, Vm::PXE_OPTION_VALUE],
+ [Vm::PXE_ALWAYS_OPTION_LABEL, Vm::PXE_ALWAYS_OPTION_VALUE],
[Vm::HD_OPTION_LABEL, Vm::HD_OPTION_VALUE]]
begin
diff --git a/src/app/models/vm.rb b/src/app/models/vm.rb
index 88e0aef..885112e 100644
--- a/src/app/models/vm.rb
+++ b/...
2010 Sep 01
1
[PATCH 1/3] Adding the VM Pool migration for vms
...e_pool, @vm_pool)
+ render :json => { :object => "vm", :success => true,
+ :alert => "VM Pool changed for this Virtual Machine" }
+ end
+
protected
def _setup_provisioning_options
@provisioning_options = [[Vm::PXE_OPTION_LABEL, Vm::PXE_OPTION_VALUE],
diff --git a/src/app/views/vm/edit_vmpool.rhtml b/src/app/views/vm/edit_vmpool.rhtml
new file mode 100644
index 0000000..cfa29a7
--- /dev/null
+++ b/src/app/views/vm/edit_vmpool.rhtml
@@ -0,0 +1,36 @@
+<%- content_for :title do -%>
+ Change VM Pool
+<%- end -%>
+<%- content_for :d...
2009 Aug 04
3
[PATCH server] require at least one vm network if pxe booting
...if(nics[i].selected){
+ return;
+ }
+ }
+
+ // only set value if we have a network to set it to and we've
+ // selected a provision type requiring a net
+ if(nics.length > 0 &&
+ (e.target.value == "<%= Vm::PXE_OPTION_VALUE %>" ||
+ e.target.value.indexOf("<%= Vm::PROFILE_PREFIX %>@<%= Vm::COBBLER_PREFIX %>") == 0)){
+ $('#vm_network_config_select_0').val(nics[0].network_id).trigger('change');
+ }
+ }).trigger('change'); // mak...
2010 Aug 25
0
[PATCH] Adding the VM Pool migration for vms
...e_pool, @vm_pool)
+ render :json => { :object => "vm", :success => true,
+ :alert => "VM Pool changed for this Virtual Machine" }
+ end
+
protected
def _setup_provisioning_options
@provisioning_options = [[Vm::PXE_OPTION_LABEL, Vm::PXE_OPTION_VALUE],
diff --git a/src/app/views/vm/edit_vmpool.rhtml b/src/app/views/vm/edit_vmpool.rhtml
new file mode 100644
index 0000000..a3d3839
--- /dev/null
+++ b/src/app/views/vm/edit_vmpool.rhtml
@@ -0,0 +1,39 @@
+<%- content_for :title do -%>
+ Change VM Pool
+<%- end -%>
+<%- content_for :d...
2010 Aug 25
2
[PATCH] Virtio support
...ms[:id])
+ @vm = Vm.find(params[:id])
+ render :layout => 'popup'
+ end
+
+ def update_vmpool
+ svc_modify(params[:id])
+ @vm = Vm.find(params[:id])
+ # TODO
+ end
+
protected
def _setup_provisioning_options
@provisioning_options = [[Vm::PXE_OPTION_LABEL, Vm::PXE_OPTION_VALUE],
@@ -176,7 +188,8 @@ class VmController < ApplicationController
@vm.nics.each { |nic|
nnic = Nic.new(:mac => nic.mac,
:vm_id => @vm.id,
- :network => nic.network)
+ :network => nic.network,
+...