Skip to content

how to enable vhost-9p? #8

@zgen0623

Description

@zgen0623

hi,

I tried the following command to apply vhost 9p, but it does not work.
Is there any guild how to enable vhost-9p?

thanks.
gen.

/home/gen/golang/goproject/src/github.com/kata-containers/qemu/bin/x86_64-softmmu/qemu-system-x86_64
-enable-kvm
-smp sockets=1,cores=2
-m 1G
-object memory-backend-file,id=mem,size=1G,mem-path=/dev/hugepages,share=on
-numa node,memdev=mem
-mem-prealloc
-serial mon:stdio
-kernel ./bzImage
-append 'console=ttyS0 root=/dev/vda rw'
-drive "file=./rootfs.ext4,format=raw,if=virtio"
-fsdev local,id=sharefs,path=/home/gen/opensource/qemu-kvm/rootfs/share_dir,security_model=none
-device vhost-9p-pci,fsdev=sharefs,mount_tag=9pfs
--nographic \

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions