-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Description
If I boot with unshare -r vng --verbose --run ~/kbuild/scratch/arch/x86/boot/bzImage --user root --root ./image, I see this:
root@virtme-ng:/# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
root@virtme-ng:/# ls -R /sys/bus/virtio/drivers/virtio_net/
/sys/bus/virtio/drivers/virtio_net/:
bind uevent unbind
My Kconfig comes from vng --kconfig, it has VIRTIO_NET enabled:
❯❯ grep VIRTIO_NET ~/kbuild/scratch/.config
CONFIG_VIRTIO_NET=y
I'm booting a minimal rootfs generated by mkosi using this config, you can download it from here.
When I add --net user to my vng command the boot gets stuck:
❯❯ unshare -r vng --verbose --run ~/kbuild/scratch/arch/x86/boot/bzImage --user root --root ~/src/limmat-kerunshare -r vng --verbose --run ~/kbuild/scratch/arch/x86/boot/bzImage --user root --root ~/src/limmat-kernel/mkosi-rootfs/image/ --net user
...
[ 1.029623] mount (99) used greatest stack depth: 13208 bytes left
[ 1.052375] mkdir (100) used greatest stack depth: 12936 bytes left
mount: /etc/fstab: mount point does not exist.
dmesg(1) may have more information after failed mount system call.
cp: cannot stat '/etc/hosts': No such file or directory
[ 1.630627] tsc: Refined TSC clocksource calibration: 2112.006 MHz
[ 1.630802] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x1e717e40680, max_idle_ns: 440795297614 ns
[ 1.631275] clocksource: Switched to clocksource tsc
mount: /etc/hosts: mount point does not exist.
dmesg(1) may have more information after failed mount system call.
[ 1.675288] virtme-init: basic initialization done
[ 1.696850] virtme-init: starting udevd
[ 1.698624] virtme-init: running systemd-tmpfiles
Starting systemd-udevd version 252.36-1~deb12u1
[ 1.784525] virtme-init: triggering udev coldplug
/usr/lib/tmpfiles.d/journal-nocow.conf:26: Failed to resolve specifier: uninitialized /etc/ detected, skipping.
All rules containing unresolvable specifiers will be skipped.
[ 1.916709] virtme-init: waiting for udev to settle
[ 2.754394] virtme-init: udev is done
[ 2.917244] virtme-init: Setting hostname to virtme-ng...
[ 2.993944] ip (219) used greatest stack depth: 12360 bytes left
udhcpc: started, v1.35.0
udhcpc: broadcasting discover
udhcpc: sendto: Network is down
udhcpc: read error: Network is down, reopening socket
udhcpc: read error: Network is down, reopening socket
[etc]
Running virtme-ng from 1e7b05c.
Metadata
Metadata
Assignees
Labels
No labels