KVM: kernel panic when booting slackware installation media
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.
KVM: kernel panic when booting slackware installation media
Greetings,
I'm trying to install slackware 14.1 guest on a host with the same OS and I'm having a problem that the guest crashes when I boot into the installation media.
Boot command:
Code:
user@host:~/qemu$ qemu-kvm -monitor stdio -m 2064 -localtime -cdrom slackware64-14.1-install-dvd.iso -hda test_slack.qcow -boot d -net nic -net user -enable-kvm -cpu host
This all I could see from the kernel panic message, I wasn't able to scroll up using shift+page_up keys:
The problem seems to be triggered by "-cpu host" arguemnt. When I remove it the machine installs and runs fine. However, I need this arguemnt in order to tune the performance and utilize all CPU capabilities. This shows the different between the host/guest when removing the arguemnt:
Side question:
What advantages of using TightVNC/TigerVNC over using the qemu viewer? I prefer a viewer with a scrutinized source code, dynamic screen resolution and good quality when viewing HD videos.
First of all, not ALL the CPU features are supported by KVM, so if you have specific flags you need in the guest, add them to the command line explicitly.
Second, no VNC viewer will support playing HD videos, and will not provide sound passthrough anyway. You need to either use spice or SDL
Thank you for clarification. I understand that the argument "-cpu host" works only if the flags are supported by the kvm, and that it is not possible to get audio from guest VMs. It seems that VBox is more usable from this aspect. This is interesting because I have seen some good kvm graphics performance on youtube, one of them was playing games on a guest vm with audio. Perhaps it was heavily customized which is something I'm trying to avoid.
Should I just research each flag then specify it if it's applicable, or there is a better way on how to optimize the performance of the VMs?
Thank you for clarification. I understand that the argument "-cpu host" works only if the flags are supported by the kvm, and that it is not possible to get audio from guest VMs.
Two not quite valid points, which are also unrelated.
1. Not absolutely all CPU features are supported by absolutely all versions of KVM, you likely are using some mismatching set of hardware/software. If you want a setup to work out of the box, why not use a proper virtualization management library, like libvirt, which will scan the host, and start guests with proper CPU flags set.
2. I didn't say sound wasn't supported, I said VNC display didn't support sound, there is a huge difference. I also said that other console types, like Spice or SDL did support sound and decent at least 2D kind of graphics.
Quote:
It seems that VBox is more usable from this aspect. This is interesting because I have seen some good kvm graphics performance on youtube, one of them was playing games on a guest vm with audio. Perhaps it was heavily customized which is something I'm trying to avoid.
vbox is a desktop oriented solution, KVM is a pure hypervisor, enterprise oriented. vbox is probably easier for a newbie to run and use on a single desktop, but it's absolutely useless when you;re running hundreds of servers with thousands of VMs. And again, if you simply run libvirt with virt-manager, life will be so much easier with KVM, you will forget about vbox
Quote:
Should I just research each flag then specify it if it's applicable, or there is a better way on how to optimize the performance of the VMs?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.