also set the cpu_model in the config accordingly to the cpu_mode

This commit is contained in:
Evgeni Golov
2016-10-23 16:55:27 +02:00
parent 517da85cee
commit 7ec7b8e35e

View File

@@ -502,7 +502,8 @@ module VagrantPlugins
@memory = 512 if @memory == UNSET_VALUE
@cpus = 1 if @cpus == UNSET_VALUE
@cpu_mode = 'host-model' if @cpu_mode == UNSET_VALUE
@cpu_model = 'qemu64' if @cpu_model == UNSET_VALUE
@cpu_model = 'qemu64' if (@cpu_model == UNSET_VALUE and @cpu_mode == 'custom')
@cpu_model = '' if (@cpu_mode != 'custom')
@cpu_fallback = 'allow' if @cpu_fallback == UNSET_VALUE
@cpu_features = [] if @cpu_features == UNSET_VALUE
@numa_nodes = @numa_nodes == UNSET_VALUE ? nil : _generate_numa()