Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have Debian/Windows/Ubuntu guests running on the box. For unknown reason recently all
Ubuntu guests can't start. Other guests are working. Always hanging on
Code:
kernel_thread_helper+0x7/0x10
Just tried installing a new Ubuntu 10.04 guest without success. The guest started to
boot but hanging on the screen finally.
Are you using an AMD cpu by any chance, and attempting to run an x86_64 Linux distro? (I had to look at your previous posts to get this info, considering your initial post lacked some crucial information )
If so, this is a guest kernel bug. You need to use -cpu core2duo on KVM. -cpu qemu64,phenom,host, and kvm64 all cause kernel panics when KVM is ran on an AMD host.
Quote:
KVM: allow bit 10 to be cleared in MSR_IA32_MC4_CTL
There is a quirk for AMD K8 CPUs in many Linux kernels (see
arch/x86/kernel/cpu/mcheck/mce.c:__mcheck_cpu_apply_quirks()) that
clears bit 10 in that MCE related MSR. KVM can only cope with all
zeros or all ones, so it will inject a #GP into the guest, which
will let it panic.
So lets add a quirk to the quirk and ignore this single cleared bit.
This fixes -cpu kvm64 on all machines and -cpu host on K8 machines
with some guest Linux kernels.
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
If this is not the issue, you could most likely be using an ancient version of KVM. Check to make sure you are using both a recent kvm module, and qemu-kvm.
Last edited by disturbed1; 05-25-2010 at 11:37 PM.
Are you using an AMD cpu by any chance, and attempting to run an x86_64 Linux distro? (I had to look at your previous posts to get this info, considering your initial post lacked some crucial information )
If so, this is a guest kernel bug. You need to use -cpu core2duo on KVM. -cpu qemu64,phenom,host, and kvm64 all cause kernel panics when KVM is ran on an AMD host.
If this is not the issue, you could most likely be using an ancient version of KVM. Check to make sure you are using both a recent kvm module, and qemu-kvm.
Hi disturbed1,
Thanks for your advice.
I'm running phenom X2 cpu here.
$ sudo kvm | head -1
Code:
QEMU PC emulator version 0.9.1 (kvm-72), Copyright (c) 2003-2008 Fabrice Bellard
$ apt-cache show qemu-kvm | grep Version
Code:
Version: 0.12.4+dfsg-1~bpo50+1
Before upgrade qemu/kvm what I can't resolve is why Windows and Debian guests can start? But Ubuntu guests have problem.
Before upgrade qemu/kvm what I can't resolve is why Windows and Debian guests can start? But Ubuntu guests have problem.
B.R.
satimis
Windows does not use a Linux Kernel. Perhaps the Debian guest(s) are using kernels that don't include the quoted bug I listed above. It would help immensely if the first post included - your version of KVM, which OS works, which OS does not work.
There is a large difference between stating Ubuntu does not work, and Ubuntu 10.04 LTS x86_64 does not work. As well as Windows works, and Windows 7 64bit Home Premium works. Not to mention your commands for launching KVM. I'm still unclear if these Ubuntu VMs used to work, but no longer do. Or if, you only have issues installing an un-named version of Ubuntu.
Your KVM is OLD to put it nicely
That version was released in 2008.
Windows does not use a Linux Kernel. Perhaps the Debian guest(s) are using kernels that don't include the quoted bug I listed above. It would help immensely if the first post included - your version of KVM, which OS works, which OS does not work.
There is a large difference between stating Ubuntu does not work, and Ubuntu 10.04 LTS x86_64 does not work. As well as Windows works, and Windows 7 64bit Home Premium works. Not to mention your commands for launching KVM. I'm still unclear if these Ubuntu VMs used to work, but no longer do. Or if, you only have issues installing an un-named version of Ubuntu.
Your KVM is OLD to put it nicely
That version was released in 2008.
Hi disturbed1
I found my problem was caused by running the new kernel of the host (Debian 5.0 32 bit), causing all Ubuntu guests unable to boot. The kernel has been upgraded recently.
I booted the old kernal
$ uname -a
Code:
Linux vm0.debian50 2.6.26-1-686 #1 SMP Fri Mar 13 18:08:45 UTC 2009 i686 GNU/Linux
All Ubuntu guests revived (all 32 bit).
The new kernel is;
Code:
Debian GNU/Linux, kernel 2.6.26-2-686
Ubuntu 10.04 (32 bit) can be installed without problem.
Anything can I try before upgrade qemu/KVM ? Thanks
Edit:
Something I can't explain. Just rebooted to the new kernel. This time all Ubuntu guests worked including the newly installed Ubuntu 10.04 desktop. Debian and Windows guest also worked.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.