I have try to run an alpine Linux in an emulated environment this way:
$ wget https://dl-cdn.alpinelinux.org/alpine/v3.16/releases/x86/alpine-netboot-3.16.1-x86.tar.gz
I have untar the archive and run:
qemu-system-i386 -m 256 -kernel boot/vmlinuz-lts -initrd boot/initramfs-lts -append "console=ttyS0 ip=dhcp alpine_repo=http://dl-cdn.alpinelinux.org/alpine/edge/main/" -virtfs local,path=/xxxx/mylocalfolder,mount_tag=mytag1,security_model=passthrough
I want to share a folder between the host machine and the emulated computer (see virtfs option). Here is what i've type in the qemu virtual machine:
mount -t 9p -o trans=virtio mytag1 /mnt
I get this error:
mount: mounting mytag1 on /mnt failed: No such device
I do not understand why. Any idea ?
Thanks a lot