hyper-v 中虚拟机实现和物理机的复制粘贴
windows 自帶了hyper-v,可以安裝一些虛機(jī)進(jìn)行試驗(yàn),但有時(shí)不能復(fù)制,粘貼,下面對(duì)windows和linux虛機(jī)如何實(shí)現(xiàn)同宿主機(jī)的復(fù)制粘貼分表介紹
對(duì)windows主機(jī),如果要實(shí)現(xiàn)這一功能,必須在菜單欄打開增強(qiáng)會(huì)話這一模式。
對(duì)在hyper-v中運(yùn)行ubuntu虛擬機(jī),不能復(fù)制粘貼,可以用Windows與XRDP合作開發(fā)的工具 ——?linux-vm-tools來(lái)實(shí)現(xiàn)這一功能。
操作 Ubuntu 虛擬機(jī)
在 Ubuntu 打開終端(Terminal),準(zhǔn)備執(zhí)行命令
$ sudo apt-get update
$ sudo apt install git
$ git clone?https://github.com/Microsoft/linux-vm-tools.git?~/linux-vm-tools
$ cd ~/linux-vm-tools/ubuntu/16.04/
#Make the scripts executable and run them...
$ sudo chmod +x install.sh
$ sudo chmod +x config-user.sh
$ sudo ./install.sh
Install.sh 需要運(yùn)行二次,還有一次是重啟后運(yùn)行
$ sudo ./config-user.sh
在winodws 宿主機(jī) 運(yùn)行 powershell 命令:
Set-VM -VMName <your_vm_name>? -EnhancedSessionTransportType HvSocket
更多文章,關(guān)注“業(yè)祥運(yùn)維室(sajyx2012)”
總結(jié)
以上是生活随笔為你收集整理的hyper-v 中虚拟机实现和物理机的复制粘贴的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: PPT中这8个隐藏技巧-掌握了马上让你幸
- 下一篇: [Mac] selenium打开Chro