host <- samba share -> guest (qemu)
-smb DIR
When using the user mode network stack, activate a built-in SMB
server so that Windows OSes can access to the host files in dir
transparently.
要讓 QEMU 建立的系統存取實體分割區的資料夾或檔案, 要透過 samba 的方式, 在啟動 QEMU 時加上 -smb 宿主的分享DIR (ex : -smb $HOME/qemu_share), 之後進入系統後即可存取此共享資料夾
Guest OS 掛載 samba folder
* 宿主主機 IP 皆為 10.0.2.2
Windows :
Start -> Run -> \\10.0.2.2\qemu_share
Linux :
# mount //10.0.2.2/qemu_share /mnt/
Reference :
Howto share data between host and guest OS on Qemu with Samba - a great resource for How To's from Wikia
沒有留言:
張貼留言