本文共 1123 字,大约阅读时间需要 3 分钟。
root@kvm:~# mkdir /tmp/sharedroot@kvm:~# touch /tmp/shared/file
root@kvm:~# virsh edit kvm1 ...... ...Domain kvm1 XML configuration edited....
root@kvm:~# virsh start kvm1Domain kvm1 started
root@kvm:~# virsh console kvm1Connected to domain kvm1Escape character is ^]Debian GNU/Linux 8 debian ttyS0debian login: rootPassword:...
root@debian:~# lsmod | grep 9p9pnet_virtio 17006 09pnet 61632 1 9pnet_virtiovirtio_ring 17513 3 virtio_pci,virtio_balloon,9pnet_virtiovirtio 13058 3 virtio_pci,virtio_balloon,9pnet_virtio
root@debian:~# mount -t 9p -o trans=virtio tmp_shared /mnt
root@debian:~# mount | grep tmp_sharedtmp_shared on /mnt type 9p (rw,relatime,sync,dirsync,trans=virtio)
root@debian:~# ls -la /mnt/total 8drwxr-xr-x 2 root root 4096 Mar 23 11:25 .drwxr-xr-x 22 root root 4096 Mar 22 16:28 ..-rw-r--r-- 1 root root 0 Mar 23 11:25 file
转载于:https://blog.51cto.com/aishangwei/2124526