-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kernel Fails to Execute init process #35
Comments
Most likely your kernel is missing some required configuration. Either use --installed-kernel or try virtme-configkernel. |
@nathanjsweet did you managed to get a kernel configured for using with virtme, as @amluto suggested? |
@amluto can we close this issue? |
Sure. |
Hi @nathanjsweet @amluto . I am hitting the same issue. What was the solution to this ? |
@h3llix did you run virtme-configkernel to make sure that all kernel options are in place? As virtme uses your /bin/sh from hostsystem maybe the 9p configs are not enabled? virtme-configkernel sets some 9P options builtin (=Y). |
Hey @marcosps! Yes all the k configs were present. I compiled static busybox and used it with virtme. It was working fine then. |
@h3llix did you change anything? For me, it works fine in openSUSE with static busybox. Are you using other fancy features? initrd? Please add more details about your problem so we can help you :) |
I'm running the following virtme-run command:
and the following qemu command is output:
/usr/bin/qemu-system-x86_64 -fsdev local,id=virtfs1,path=/,security_model=none,readonly -device virtio-9p-pci,fsdev=virtfs1,mount_tag=/dev/root -fsdev local,id=virtfs5,path=/usr/local/lib/python3.6/dist-packages/virtme/guest,security_model=none,readonly -device virtio-9p-pci,fsdev=virtfs5,mount_tag=virtme.guesttools -fsdev local,id=virtfs9,path=/tmp/tmp.3cv8xBF24y,security_model=none -device virtio-9p-pci,fsdev=virtfs9,mount_tag=virtme.initmount0 -machine accel=kvm:tcg -watchdog i6300esb -cpu host -parallel none -net none -m 2G -vga none -display none -serial none -chardev file,id=console,path=/proc/self/fd/2 -serial chardev:console -chardev stdio,id=stdio,signal=on,mux=off -device virtio-serial-pci -device virtserialport,name=virtme.scriptio,chardev=stdio -no-reboot -kernel /tmp/tmp.5xuUlk8erz/linux-5.0.13.bz -append 'virtme_initmount0=/run/output virtme_chdir=root/go/src/github.com/newtools/ebpf init=/bin/sh -- -c "mkdir -p /run/virtme/guesttools;/bin/mount -n -t 9p -o ro,version=9p2000.L,trans=virtio,access=any virtme.guesttools /run/virtme/guesttools;exec /run/virtme/guesttools/virtme-init"' -initrd /proc/self/fd/3
Looking through the boot console nothing seems to be out of the ordinary until I hit init spin up:
Any thoughts or recommendations?
The text was updated successfully, but these errors were encountered: