diff options
author | Andreas Fankhauser hiddenalpha.ch | 2024-09-28 17:57:03 +0200 |
---|---|---|
committer | Andreas Fankhauser hiddenalpha.ch | 2024-09-28 17:57:03 +0200 |
commit | 05ea7803703f0aa6224ee452470ca42f5621b7f3 (patch) | |
tree | 9aada2a8d2b76f2c3ae69e6d1115360baf9b8f83 | |
parent | f1cbafcfc08349366b6e8e26349e0c9596e318bb (diff) | |
download | UnspecifiedGarbage-05ea7803703f0aa6224ee452470ca42f5621b7f3.zip UnspecifiedGarbage-05ea7803703f0aa6224ee452470ca42f5621b7f3.tar.gz |
qemu docker VM: Note how to host share mount works.
-rw-r--r-- | doc/note/qemu/docker-microVM.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/note/qemu/docker-microVM.txt b/doc/note/qemu/docker-microVM.txt index 378dac7..98712c0 100644 --- a/doc/note/qemu/docker-microVM.txt +++ b/doc/note/qemu/docker-microVM.txt @@ -113,6 +113,7 @@ qemu-system-x86_64 \ KERNEL="${WORKDIR:?}/linux-*/arch/x86_64/boot/bzImage" HOST_SHARE_DIR="/path/to/host/share" QEMU_IMAGE="dockerimage.qcow2" +# mount share from guest: mount -t 9p myMountTag /mnt/share -otrans=virtio,version=9p2000.L,msize=52428800 qemu-system-x86_64 \ -M microvm,x-option-roms=off,isa-serial=off,rtc=off -no-acpi -no-reboot \ -accel kvm -cpu host -nodefaults -no-user-config -nographic \ @@ -126,7 +127,7 @@ qemu-system-x86_64 \ -netdev user,id=mynet0,hostfwd=tcp:127.0.0.1:8080-10.0.2.15:80 \ -device virtio-net-device,netdev=mynet0 \ -fsdev local,path=${HOST_SHARE_DIR:?},security_model=none,id=www,readonly=on \ - -device virtio-9p-device,fsdev=www,mount_tag=www \ + -device virtio-9p-device,fsdev=www,mount_tag=myMountTag \ -device virtio-rng-device ; |