From d853f40aefc6298aa892f8861fb246825202044c Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 28 Aug 2015 11:10:44 +0200 Subject: [PATCH] fix: start kvm with os type other this check is necessary, because we do not set ostype in qemu config when type is other Seem that x2apic is now enabled by default when kvm is used since this commit http://git.qemu.org/?p=qemu.git;a=commit;h=ef02ef5f4536dba090b12360a6c862ef0e57e3bc So we just need to disable it for solaris --- PVE/QemuServer.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 71150077..be53a1e1 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -2877,9 +2877,8 @@ sub config_to_command { push @$cpuFlags , '+lahf_lm' if $cpu eq 'kvm64'; - push @$cpuFlags , '+x2apic' if !$nokvm && $conf->{ostype} ne 'solaris'; - - push @$cpuFlags , '-x2apic' if $conf->{ostype} eq 'solaris'; + push @$cpuFlags , '-x2apic' + if $conf->{ostype} && $conf->{ostype} eq 'solaris'; push @$cpuFlags, '+sep' if $cpu eq 'kvm64' || $cpu eq 'kvm32';