Skip to content

Commit

Permalink
Change cpu_mode to default value (currently host-model) for reliability.
Browse files Browse the repository at this point in the history
  • Loading branch information
albinsun committed May 8, 2024
1 parent b04d443 commit 44815b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions vagrant-pxe-airgap-harvester/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
libvirt__dhcp_enabled: false

pxe_server.vm.provider :libvirt do |libvirt|
libvirt.cpu_mode = 'host-passthrough'
libvirt.memory = '4096'
libvirt.cpus = '2'
end
Expand Down Expand Up @@ -68,7 +67,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
libvirt__network_name: 'harvester',
mac: @settings['rancher_config']['mac_address_harvester_network']
rancher_box.vm.provider :libvirt do |libvirt|
libvirt.cpu_mode = 'host-passthrough'
libvirt.memory = @settings['rancher_config']['memory']
libvirt.cpus = @settings['rancher_config']['cpu']
# libvirt.channel :type => 'unix', :target_name => 'org.qemu.guest_agent.0', :target_type => 'virtio'
Expand Down Expand Up @@ -106,7 +104,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
mac: @settings['harvester_network_config']['cluster'][node_number]['mac']

harvester_node.vm.provider :libvirt do |libvirt|
libvirt.cpu_mode = 'host-passthrough'
libvirt.memory = @settings['harvester_network_config']['cluster'][node_number].key?('memory') ? @settings['harvester_network_config']['cluster'][node_number]['memory'] : @settings['harvester_node_config']['memory']
libvirt.cpus = @settings['harvester_network_config']['cluster'][node_number].key?('cpu') ? @settings['harvester_network_config']['cluster'][node_number]['cpu'] : @settings['harvester_node_config']['cpu']
libvirt.storage :file,
Expand Down
4 changes: 1 addition & 3 deletions vagrant-pxe-harvester/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
libvirt__dhcp_enabled: false

pxe_server.vm.provider :libvirt do |libvirt|
libvirt.cpu_mode = 'host-passthrough'
libvirt.memory = '1024'
libvirt.cpus = '1'
end
Expand All @@ -62,7 +61,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
mac: @settings['harvester_network_config']['cluster'][node_number]['mac']

harvester_node.vm.provider :libvirt do |libvirt|
libvirt.cpu_mode = 'host-passthrough'
libvirt.memory = @settings['harvester_network_config']['cluster'][node_number].key?('memory') ? @settings['harvester_network_config']['cluster'][node_number]['memory'] : @settings['harvester_node_config']['memory']
libvirt.cpus = @settings['harvester_network_config']['cluster'][node_number].key?('cpu') ? @settings['harvester_network_config']['cluster'][node_number]['cpu'] : @settings['harvester_node_config']['cpu']
libvirt.storage :file,
Expand Down Expand Up @@ -91,7 +89,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
libvirt__dhcp_enabled: false

rancher.vm.provider :libvirt do |libvirt|
libvirt.cpu_mode = 'host-passthrough'

libvirt.cpus = @settings['rancher_config']['cpu']
libvirt.memory = @settings['rancher_config']['memory']
end
Expand Down

0 comments on commit 44815b9

Please sign in to comment.