LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   qemu-kvm -cdrom slackware64-14.2-install-dvd.iso (https://www.linuxquestions.org/questions/slackware-14/qemu-kvm-cdrom-slackware64-14-2-install-dvd-iso-4175693154/)

dodoLQ 04-05-2021 05:28 AM

qemu-kvm -cdrom slackware64-14.2-install-dvd.iso
 
Hi, i've pbs with this simple cli and the boot process stopped with a kernel panic! KVM is enable on my host (core2duo E8500), modules (kvm kvm_intel) loaded and got that message in dmesg:
Code:

vcpu0, guest rIP: 0xffffffff8258069a disabled perfctr wrmsr: 0xc2 data 0xffff
Using qemu-5.2.0 on -current. Thanks!

allend 04-05-2021 08:25 PM

Do a web search and you will find that the message is considered harmless. You need to look again for information on the cause of the kernel panic.

slac 04-05-2021 08:54 PM

Reading your post it is not clear to me where the kernel panic is happening. Is it happening in your host or guest machine(using Qemu)?

In case the kernel panic is happening using Qemu (guest machine), paste the full command that you are using. Also this may be useful:

Sometimes if not enough ram is being used a kernel panic happens.

Add more ram using the -m switch, ie: -m 1G (to use 1GB of RAM for the virtual machine). If the -m switch is not included only 128MB are used by default.

dodoLQ 04-06-2021 12:52 PM

Hi slac, you're 100% right! Kernel panic is happening in guest machine (qemu), the -m 1G option solved my pb :) I'm not familiar in booting big iso with qemu but playing and installing old Slackware distros within qemu-2.8 :p Still installed slackware-pre-1.0-beta and slackware-1.01 on a disk image with (pre-created) floppy images and using the doinstall (installation program) ;)

kingbeowulf 04-16-2021 04:53 PM

@dodoLQ, here's what I use. Gives an idea of the whole host of useful options. I set up a BASE image, then a WIP copy-on-write image from that. if somethings goes wrong, I just need to create a clean WIP!
https://www.linuxgalaxy.org/files/ut...2_zenityfix.sh
Also, 1GB RAM is a bit thin for 14.2. I'd go 2G for CLI and 4GB to run a DE. But then, I have 32GB on the host....

Didier Spaier 04-16-2021 05:29 PM

To increase the usable RAM one may try swapinzram. Sorry I was too lazy to make a standard SlackBuild but just running package-swapinzram.sh should be enough.

Unfortunately this doesn't work during installation as we have to load the kernel and initrd first, and the initrd can be big.

dodoLQ 04-19-2021 12:49 PM

@kingbeowulf, speaking simple, what does your script do exactly?

kingbeowulf 04-23-2021 05:45 PM

@dodoLQ, my script uses Zenity to create a simple GUI, wrapping qemu command lines into a menu so that I don't have to type then out each time.

marav 04-23-2021 07:26 PM

- moved into a new thread -


All times are GMT -5. The time now is 07:38 AM.