Skip to content

Commit 3a91c35

Browse files
committed
Fix possible CPU compatibility problem by set cpu_mode to host-model
1 parent b04d443 commit 3a91c35

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

vagrant-pxe-airgap-harvester/Vagrantfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
3939
libvirt__dhcp_enabled: false
4040

4141
pxe_server.vm.provider :libvirt do |libvirt|
42-
libvirt.cpu_mode = 'host-passthrough'
4342
libvirt.memory = '4096'
4443
libvirt.cpus = '2'
4544
end
@@ -68,7 +67,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
6867
libvirt__network_name: 'harvester',
6968
mac: @settings['rancher_config']['mac_address_harvester_network']
7069
rancher_box.vm.provider :libvirt do |libvirt|
71-
libvirt.cpu_mode = 'host-passthrough'
7270
libvirt.memory = @settings['rancher_config']['memory']
7371
libvirt.cpus = @settings['rancher_config']['cpu']
7472
# libvirt.channel :type => 'unix', :target_name => 'org.qemu.guest_agent.0', :target_type => 'virtio'
@@ -106,7 +104,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
106104
mac: @settings['harvester_network_config']['cluster'][node_number]['mac']
107105

108106
harvester_node.vm.provider :libvirt do |libvirt|
109-
libvirt.cpu_mode = 'host-passthrough'
110107
libvirt.memory = @settings['harvester_network_config']['cluster'][node_number].key?('memory') ? @settings['harvester_network_config']['cluster'][node_number]['memory'] : @settings['harvester_node_config']['memory']
111108
libvirt.cpus = @settings['harvester_network_config']['cluster'][node_number].key?('cpu') ? @settings['harvester_network_config']['cluster'][node_number]['cpu'] : @settings['harvester_node_config']['cpu']
112109
libvirt.storage :file,

vagrant-pxe-harvester/Vagrantfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
3838
libvirt__dhcp_enabled: false
3939

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

6463
harvester_node.vm.provider :libvirt do |libvirt|
65-
libvirt.cpu_mode = 'host-passthrough'
6664
libvirt.memory = @settings['harvester_network_config']['cluster'][node_number].key?('memory') ? @settings['harvester_network_config']['cluster'][node_number]['memory'] : @settings['harvester_node_config']['memory']
6765
libvirt.cpus = @settings['harvester_network_config']['cluster'][node_number].key?('cpu') ? @settings['harvester_network_config']['cluster'][node_number]['cpu'] : @settings['harvester_node_config']['cpu']
6866
libvirt.storage :file,
@@ -91,7 +89,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
9189
libvirt__dhcp_enabled: false
9290

9391
rancher.vm.provider :libvirt do |libvirt|
94-
libvirt.cpu_mode = 'host-passthrough'
9592
libvirt.cpus = @settings['rancher_config']['cpu']
9693
libvirt.memory = @settings['rancher_config']['memory']
9794
end

0 commit comments

Comments
 (0)