Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

KVM guest - kernel panic when running from P9 share root

Here you can discuss every aspect of Debian. Note: not for support requests!
Post Reply
Message
Author
romankqsok
Posts: 22
Joined: 2019-01-06 15:04

KVM guest - kernel panic when running from P9 share root

#1 Post by romankqsok »

Hello,

I am trying to boot a Linux guest on the KVM host and guest root file system is outside of guest on the host and passed through into the guest via P9 share as described at:

https://serverfault.com/questions/67364 ... t-and-qemu

QEMU Arguments in AQEMU:

Code: Select all

/usr/bin/qemu-system-x86_64 \
    -monitor stdio \
    -k en-us \
    -machine accel=kvm \
    -m 1024 \
    -cdrom /download/sysresccd-5.2.0_zfs_0.7.9.iso \
    -virtfs local,id=shared_folder_dev_0,path=/mnt/ascii64,security_model=none,mount_tag=shared0 \
    -boot once=d,menu=off \
    -net nic,vlan=0,model=e1000 \
    -net user,vlan=0 \
    -kernel /boot/vmlinuz-4.9.0-9-amd64 \
    -initrd /boot/initrd.img-4.9.0-9-amd64 \
    -append root=root9p rw rootfstype=9p rootflags=trans=virtio vga=0x31b \
    -rtc base=utc \
    -name "Brave" \
    -fsdev local,id=root9p,path=/mnt/ascii64,security_model=mapped \
    -device virtio-9p-pci,fsdev=root9p,mount_tag=root9p
Screenshot:
https://ibin.co/4mbruKyIIoAl.jpg

I tried to change guest kernels, but it does not help.
Please suggest, what shall be tried for a fix?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: KVM guest - kernel panic when running from P9 share root

#2 Post by Head_on_a_Stick »

romankqsok wrote: -append root=root9p rw rootfstype=9p rootflags=trans=virtio vga=0x31b \
Try adding init=/lib/systemd/systemd to the end of that line.
deadbang

romankqsok
Posts: 22
Joined: 2019-01-06 15:04

Re: KVM guest - kernel panic when running from P9 share root

#3 Post by romankqsok »

It is a Devuan guest and host.

Shall I try to add some other init, starting just with a bash would already be good for me for a first try of working guest.

Can I specify just:

init=/bin/bash

?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: KVM guest - kernel panic when running from P9 share root

#4 Post by Head_on_a_Stick »

romankqsok wrote:It is a Devuan guest and host.
Then why are you posting here?

Go to dev1galaxy.org and open a thread there instead.
deadbang

romankqsok
Posts: 22
Joined: 2019-01-06 15:04

Re: KVM guest - kernel panic when running from P9 share root

#5 Post by romankqsok »

Head_on_a_Stick wrote: Then why are you posting here?
I thought it is not a distribution specific problem, may be I miss or have incorrect some kernel or QEMU arguments.

Post Reply