search for: num_vcpus_allocated

Displaying 20 results from an estimated 28 matches for "num_vcpus_allocated".

2010 Sep 21
1
[PATCH] Check cpus capacity, not real cores.
...@ class TaskOmatic #puts "and not #{curr.is_disabled.nil?} and #{curr.is_disabled == 0}" #puts "and #{vm ? vm : 'nil'} or #{vm ? vm.active : 'nil'}) or #{vm ? vm.node : 'nil'} != #{node.object_id}" - if node and node.cores >= db_vm.num_vcpus_allocated \ + if node and node.cpus >= db_vm.num_vcpus_allocated \ and node.memory >= db_vm.memory_allocated \ and not curr.is_disabled.nil? and curr.is_disabled == 0 \ and ((!vm or vm.active == 'false') or vm.node != node.object_id) -- 1.7.2.3
2009 Jul 24
2
[PATCH server] add collapsable sections to vm form
...clear_row"></div> + <div class="form_heading clickable open">Resources</div> + <div class="vm_form_section"> <div style="float:left;width:150px;" > <%= text_field_with_label "CPUs:", "vm", "num_vcpus_allocated", {:style=>"width:100px; margin-bottom:2px;"}, {:style=>"padding-right: 50px;"} %> <div class="field_helptext">max to create: <%=create_resources[:cpus]%> </div> @@ -27,6 +31,11 @@ </div> <div style="clear...
2009 Jun 19
1
[PATCH server] add collapsable sections to vm form
...lt;%= link_to "", "#", :id => "vm_resources_section_link" %> + </div> + <div id="vm_resources_config"> <div style="float:left;width:150px;" > <%= text_field_with_label "CPUs:", "vm", "num_vcpus_allocated", {:style=>"width:100px; margin-bottom:2px;"}, {:style=>"padding-right: 50px;"} %> <div class="field_helptext">max to create: <%=create_resources[:cpus]%> </div> @@ -27,6 +35,13 @@ </div> <div style="clear...
2010 Sep 02
1
[PATCH 1/1] Introduce an option to always pxe-boot a vm.
...# upon reboot. + if db_vm.boot_device == "network_always" + boot_device = "network" + else + boot_device = db_vm.boot_device + end + xml = create_vm_xml(db_vm.description, db_vm.uuid, db_vm.memory_allocated, - db_vm.memory_used, db_vm.num_vcpus_allocated, db_vm.boot_device, + db_vm.memory_used, db_vm.num_vcpus_allocated, boot_device, db_vm.virtio, net_interfaces, storagedevs) @logger.debug("XML Domain definition: #{xml}") @@ -443,7 +451,8 @@ class TaskOmatic # This information is not available via...
2010 Feb 25
2
[PATCH] Enhance vms display
...41d 100644 --- a/src/app/controllers/pool_controller.rb +++ b/src/app/controllers/pool_controller.rb @@ -94,11 +94,11 @@ class PoolController < ApplicationController end def vms_json(args) - attr_list = [:id, :description, :uuid, + attr_list = [:id, :description, :num_vcpus_allocated, :memory_allocated_in_mb, - :state, :calc_uptime, :id] + :state, :contact, :os, :eol, :comment ] if (@pool.is_a? VmResourcePool) and @pool.get_hardware_pool.can_view(@user) - attr_list.insert(3, [:host, :hostname]) + attr_list.insert(2, [:host, :hostna...
2009 May 15
0
[PATCH server] Starting of new ovirt QMF API.
...ew("create_vm_def", :desc => "Define a new virtual machine definition.") + method.add_argument(Qmf::SchemaArgument.new("description", Qmf::TYPE_LSTR, :desc => "Description of new VM definition")) + method.add_argument(Qmf::SchemaArgument.new("num_vcpus_allocated", Qmf::TYPE_UINT32, :desc => "Number of virtual CPUs to allocate.")) + method.add_argument(Qmf::SchemaArgument.new("memory_allocated", Qmf::TYPE_UINT64, :desc => "Amount of memory to allocate.", :units => "KB")) + method.add_argument(Qmf::...
2009 Jul 24
1
permit many-to-many vms / networks relationship redux
redux patchset permitting a vm to be associated with multiple networks and vice-versa. updated patchset so as to be applicable against current oVirt server HEAD these patches may be applied in any order, they all need to be pushed together
2009 Jun 19
0
[PATCH server] add toggable sections to vm form
...quot;form_heading">Resources</div> - <div class="clear_row"></div> - <div class="clear_row"></div> - <div style="float:left;width:150px;" > - <%= text_field_with_label "CPUs:", "vm", "num_vcpus_allocated", {:style=>"width:100px; margin-bottom:2px;"}, {:style=>"padding-right: 50px;"} %> - <div class="field_helptext">max to create: <%=create_resources[:cpus]%> </div> - <div class="field_helptext">max to start: &l...
2009 Jul 09
2
permit many-to-many vms / networks relationship
This patchset contains changes to the ovirt server frontend, backend, and tests components, permitting vms to be associated with multiple networks and vice versa. Also included are two patches which are required for the frontend bits; a patch adding collapsable sections to the vm form, which in itself depends on the second patch that provides default values for the cpu and memory vm table fields
2009 Jun 30
0
[PATCH server] permit many-to-many vms / networks relationship
...ntrollers/pool_controller.rb index 74a958c..0d2e491 100644 --- a/src/app/controllers/pool_controller.rb +++ b/src/app/controllers/pool_controller.rb @@ -96,7 +96,7 @@ class PoolController < ApplicationController def vms_json(args) attr_list = [:id, :description, :uuid, :num_vcpus_allocated, :memory_allocated_in_mb, - :vnic_mac_addr, :state, :id] + :state, :id] if (@pool.is_a? VmResourcePool) and @pool.get_hardware_pool.can_view(@user) attr_list.insert(3, [:host, :hostname]) end diff --git a/src/app/controllers/vm_controller.rb b/src/ap...
2009 May 18
0
[PATCH server] fixed functional tests after recent controller refactoring and managed node controller fixes.
...e num_vms = Vm.count - post :create, :vm_resource_pool_name => 'foobar', - :hardware_pool_id => @default_pool.id, - :vm => { :uuid => 'f43b298c-1e65-46fa-965f-0f6fb9ffaa10', - :description => 'descript', - :num_vcpus_allocated => 4, - :memory_allocated => 262144, - :vnic_mac_addr => 'AA:BB:CC:DD:EE:FF', - :boot_device => 'network' } + post :create, :vm => { :uuid => 'f43b298c-1e65-46fa-965f-0f6fb9ffaa10', + :vm_resourc...
2009 Jul 15
0
[PATCH server] changed vm details pane vnc uri, removed 'Remote Desktop' virt-viewer-plugin link
...t.to_s - @vm.forward_vnc ? (url + "<br/>") : "" %> + ovirt-viewer@<span id="vnc_uri"/><br/> + <script type="text/javascript">$('#vnc_uri').html(get_server_from_url());</script> <%=h @vm.num_vcpus_allocated %><br/> <%=h @vm.num_vcpus_used %><br/> <%=h @vm.memory_allocated_in_mb %> MB<br/> -- 1.6.0.6
2009 Aug 21
0
Unable to assign cobbler image as boot device
...k8-R2", "storage_volume_ids"=>["9"], "vm_resource_pool_id"=>"5", "uuid"=>"d25a31bb-23a4-aa62-3113-1539a7f9dce9", "description"=>"Alfresco", "memory_allocated_in_mb"=>"1024", "num_vcpus_allocated"=>"1"}, "id"=>"8", "macs"=>["00:16:3e:10:ac:33", ""], "networks"=>["1", ""]} RuntimeError (HTTP-Error: 404 Not Found): /usr/lib/ruby/1.8/xmlrpc/client.rb:549:in `do_rpc' /usr/lib/ruby...
2010 Aug 25
2
[PATCH] Virtio support
...faces.push({ :mac => nic.mac, :interface => net_device }) + net_interfaces.push({ :mac => nic.mac, :interface => net_device, :virtio => nic.virtio }) } xml = create_vm_xml(db_vm.description, db_vm.uuid, db_vm.memory_allocated, db_vm.memory_used, db_vm.num_vcpus_allocated, db_vm.boot_device, - net_interfaces, storagedevs) + db_vm.virtio, net_interfaces, storagedevs) @logger.debug("XML Domain definition: #{xml}") -- 1.7.2.1
2009 May 28
0
[PATCH server] Use qpid for migration and add more debugging to taskomatic.
...lumes << image_volume if image_volume + + @logger.debug("Connecting volumes: #{volumes}") storagedevs = connect_storage_pools(node, volumes) # determine if vm has been assigned to physical or @@ -370,6 +387,8 @@ class TaskOmatic db_vm.memory_used, db_vm.num_vcpus_allocated, db_vm.boot_device, db_vm.vnic_mac_addr, net_device, storagedevs) + @logger.debug("XML Domain definition: #{xml}") + result = node.domainDefineXML(xml.to_s) raise "Error defining virtual machine: #{result.text}" unless result.status == 0 @@ -506,1...
2010 Sep 09
1
Provisioning Windows
How do I go about provisioning a windows VM? I've added the iso to cobbler using the following command. cobbler image add --name=W2k8Prov --file=nfs://192.168.50.190/ovirt/w2k8.iso The image then appears in the list of Operating Systems to choose when creating a VM. I select the image when I create the VM but then when I go to save I get the error: undefined method `keys' for
2009 Jul 06
0
[PATCH server] UI for accumulated uptime for VMs. (revised2)
...ntrollers/pool_controller.rb index 74a958c..44cb780 100644 --- a/src/app/controllers/pool_controller.rb +++ b/src/app/controllers/pool_controller.rb @@ -96,7 +96,7 @@ class PoolController < ApplicationController def vms_json(args) attr_list = [:id, :description, :uuid, :num_vcpus_allocated, :memory_allocated_in_mb, - :vnic_mac_addr, :state, :id] + :vnic_mac_addr, :state, :calc_uptime, :id] if (@pool.is_a? VmResourcePool) and @pool.get_hardware_pool.can_view(@user) attr_list.insert(3, [:host, :hostname]) end diff --git a/src/app/control...
2009 Jul 02
1
[PATCH server] UI for accumulated uptime for VMs. (revised)
...ntrollers/pool_controller.rb index 74a958c..44cb780 100644 --- a/src/app/controllers/pool_controller.rb +++ b/src/app/controllers/pool_controller.rb @@ -96,7 +96,7 @@ class PoolController < ApplicationController def vms_json(args) attr_list = [:id, :description, :uuid, :num_vcpus_allocated, :memory_allocated_in_mb, - :vnic_mac_addr, :state, :id] + :vnic_mac_addr, :state, :calc_uptime, :id] if (@pool.is_a? VmResourcePool) and @pool.get_hardware_pool.can_view(@user) attr_list.insert(3, [:host, :hostname]) end diff --git a/src/app/control...
2009 Jul 06
2
[PATCH server] UI for accumulated uptime for VMs. (revised3)
...ntrollers/pool_controller.rb index 74a958c..44cb780 100644 --- a/src/app/controllers/pool_controller.rb +++ b/src/app/controllers/pool_controller.rb @@ -96,7 +96,7 @@ class PoolController < ApplicationController def vms_json(args) attr_list = [:id, :description, :uuid, :num_vcpus_allocated, :memory_allocated_in_mb, - :vnic_mac_addr, :state, :id] + :vnic_mac_addr, :state, :calc_uptime, :id] if (@pool.is_a? VmResourcePool) and @pool.get_hardware_pool.can_view(@user) attr_list.insert(3, [:host, :hostname]) end diff --git a/src/app/control...
2009 Jun 29
0
[PATCH server] REVISED Vm state change auditing/accounting
...:order => 'created_at' do + def previous_state_with_type(state_type) + find(:first, :conditions=> { :to_state => state_type }, :order=> 'created_at DESC') + end + end + alias history vm_host_histories validates_presence_of :uuid, :description, :num_vcpus_allocated, @@ -138,6 +146,25 @@ class Vm < ActiveRecord::Base STATE_CREATE_FAILED = "create_failed" STATE_INVALID = "invalid" + ALL_STATES = [STATE_PENDING, + STATE_CREATING, + STATE_RUNNING, + STATE_UNREACHABLE, +...