qemu命令行:ssh
-net user,hostfwd=tcp::5555-:22
鏈接vm:tcp
ssh -p 5555 root@localhost
qemu命令行:命令行
-serial unix:/tmp/test.sock,server,nowait
連接vm:unix
sudo nc -U /tmp/test.sock