[pve-devel] qemu start hanging on dell r710

Alexandre DERUMIER aderumier at odiso.com
Tue Sep 29 14:04:53 CEST 2015


>>rollbacking to kernel 4.1 seem to work too. 

seem that KVM_CAP_X86_SMM has been introduce in kernel 4.2.

https://lkml.org/lkml/2015/5/8/235


I'll try to revert this, and test.


----- Mail original -----
De: "aderumier" <aderumier at odiso.com>
À: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Mardi 29 Septembre 2015 13:46:06
Objet: Re: [pve-devel] qemu start hanging on dell r710

rollbacking to kernel 4.1 seem to work too. 


so it's only with kvm + kernel 4.2 + qemu 2.4 machine type 

looking at the machine config code, 
it could come from KVM_CAP_X86_SMM extension 

on 2.3 machinetype, the value is forced and on 2.4 they are some kind of test. 


static void pc_compat_2_3(MachineState *machine) 
{ 
PCMachineState *pcms = PC_MACHINE(machine); 
savevm_skip_section_footers(); 
if (kvm_enabled()) { 
pcms->smm = ON_OFF_AUTO_OFF; >> comment this, and it's hanging too 
} 
global_state_set_optional(); 
savevm_skip_configuration(); 
} 




bool pc_machine_is_smm_enabled(PCMachineState *pcms) 
{ 
bool smm_available = false; 

if (pcms->smm == ON_OFF_AUTO_OFF) { 
return false; 
} 

if (tcg_enabled() || qtest_enabled()) { 
smm_available = true; 
} else if (kvm_enabled()) { 
smm_available = kvm_has_smm(); >> maybe it's hanging here 
} 

if (smm_available) { 
return true; 
} 

if (pcms->smm == ON_OFF_AUTO_ON) { 
error_report("System Management Mode not supported by this hypervisor."); 
exit(1); 
} 
return false; 
} 



bool kvm_has_smm(void) 
{ 
return kvm_check_extension(kvm_state, KVM_CAP_X86_SMM); 
} 


I'll send a mail to qemu && kvm mailing list 

----- Mail original ----- 
De: "aderumier" <aderumier at odiso.com> 
À: "pve-devel" <pve-devel at pve.proxmox.com> 
Envoyé: Mardi 29 Septembre 2015 12:46:54 
Objet: Re: [pve-devel] qemu start hanging on dell r710 

disabling kvm also fix the problem. 


hanging: 
/usr/bin/kvm -id 100 -chardev socket,id=qmp,path=/var/run/qemu-server/100.qmp,server,nowait -mon chardev=qmp,mode=control -vnc unix:/var/run/qemu-server/100.vnc,x509,password -pidfile /var/run/qemu-server/100.pid -name test -cpu kvm64 -m 4096 -machine pc-i440fx-2.4 


working: 
/usr/bin/kvm -id 100 -chardev socket,id=qmp,path=/var/run/qemu-server/100.qmp,server,nowait -mon chardev=qmp,mode=control -vnc unix:/var/run/qemu-server/100.vnc,x509,password -pidfile /var/run/qemu-server/100.pid -name test -cpu kvm64 -m 4096 -machine accel=tcg,type=pc-i440fx-2.4 


working: 
/usr/bin/kvm -id 100 -chardev socket,id=qmp,path=/var/run/qemu-server/100.qmp,server,nowait -mon chardev=qmp,mode=control -vnc unix:/var/run/qemu-server/100.vnc,x509,password -pidfile /var/run/qemu-server/100.pid -name test -cpu kvm64 -m 4096 -machine pc-i440fx-2.3 



----- Mail original ----- 
De: "aderumier" <aderumier at odiso.com> 
À: "pve-devel" <pve-devel at pve.proxmox.com> 
Envoyé: Mardi 29 Septembre 2015 12:35:46 
Objet: Re: [pve-devel] qemu start hanging on dell r710 

Can someone tell me how to debug with qemu dbg package ? 


----- Mail original ----- 
De: "aderumier" <aderumier at odiso.com> 
À: "pve-devel" <pve-devel at pve.proxmox.com> 
Envoyé: Mardi 29 Septembre 2015 12:20:02 
Objet: Re: [pve-devel] qemu start hanging on dell r710 

Ok, It seem to be a qemu bug. 

setting 

machine: pc-i440fx-2.3 

is working for me 

I'm seeing a similar bug report here: 
https://lacyc3.eu/qemu-guest-has-not-initialized-the-display 



----- Mail original ----- 
De: "aderumier" <aderumier at odiso.com> 
À: "pve-devel" <pve-devel at pve.proxmox.com> 
Envoyé: Mardi 29 Septembre 2015 11:50:33 
Objet: [pve-devel] qemu start hanging on dell r710 

Hi, 

users reported qemu problem since beta2 with some hardware 

http://forum.proxmox.com/threads/23548-PVE-4-0-Beta2-qemu-acpi 


I'm finally able to reproduce it with a clean beta2 install on dell r710. 

the qemu process start, but freeze and vnc is not working. 


reverting to pve-qemu-kvm 2.3-6 is working, pve-qemu-kvm 2.3-8 (qemu 2.4rc) is already hanging. 


(I can't reproduce this bug on dell r730 and old dell poweredge 2950) 

I don't known yet if it's a qemu 2.4 bug, or proxmox patch bug. 

I'll try to build a clean qemu 2.4 without patches to see if it's help. 




_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



More information about the pve-devel mailing list