[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Attaching 9P VirtFS to PowerNV

From: Ryan Burns
Subject: Attaching 9P VirtFS to PowerNV
Date: Tue, 2 Mar 2021 18:55:38 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0

Hi all,

I'm trying to port NixOS to run on QEMU's PowerNV platform. The system
is able to load the kernel, initrd, and a virtio-blk-pci device without
issues, but fails trying to mount some folders which need to be shared
from the host via -virtfs. The stage 1 boot is failing at this line,
which should mount a read-only Nix store mounted from the host:

I noticed that unlike on other platforms, I needed to specify the PCIe
bus for the virtio-blk-pci device to appear as /dev/vda. So do I need to
do something similar for the 9P virtfs?

Here is the relevant snippet of my boot log:

/dev/vda: recovering journal
/dev/vda: clean, 231/32768 files, 10160/131072 blocks
mounting /dev/vda on /...
mounting store on /nix/.ro-store...
[    5.972587][  T170] 9pnet_virtio: no channels available for device store
[    5.972587][  T170] 9pnet_virtio: no channels available for device store
mount: mounting store on /mnt-root/nix/.ro-store failed: No such file or

And here is what my generated qemu command line invocation looks like:

-machine powernv \
    -name nixos \
    -m 2048 \
    -smp 1 \
    -device virtio-rng-pci \
    -net nic,netdev=user.0,model=virtio -netdev
user,id=user.0${QEMU_NET_OPTS:+,$QEMU_NET_OPTS} \
    -virtfs local,path=/nix/store,security_model=none,mount_tag=store \
    -virtfs local,path=$TMPDIR/xchg,security_model=none,mount_tag=xchg \
-device virtio-blk-pci,bus=pcie.0,drive=drive1 \
-append "$(cat
console=ttyAMA0,115200n8 $QEMU_KERNEL_PARAMS" -nographic \

reply via email to

[Prev in Thread] Current Thread [Next in Thread]