hyper-v安装虚拟机ubuntu 18.04 64bit后无法使能增强模式
in 生活杂记 with 1 comment
hyper-v安装虚拟机ubuntu 18.04 64bit后无法使能增强模式
in 生活杂记 with 1 comment

1.获取脚本来使能增强模式

$ sudo apt-get update

$ sudo apt install git

$ git clone https://github.com/jterry75/xrdp-init.git

$ cd xrdp-init/ubuntu/18.04/

2.使脚本具有可执行权限

chmod u+x install.sh

3.执行脚本

$sudo ./install.sh

4.关闭ubuntu虚拟机

shutdown now

5.在宿主机中以管理员权限启动powershell并输入以下命令来使能增强模式(参数-EnhancedSessionTransportType需要windows10 1803及更新的版本才支持,笔者的windows10为1703版本,因此无法启动增强功能)

Set-VM -VMName ubuntu -EnhancedSessionTransportType HvSocket (注意ubuntu是笔者安装虚拟机时设置的虚拟机名称,笔者的名称设置得可能不一致,请适当修改)

6.重新启动ubuntu虚拟机使能增强模式

Responses
  1. 我非常尊敬, 这里分享真实经验。你的内容 就是 最好的例子。请继续。 觀景山脊 好久没见过, 这么生动的旅行故事。谢谢。

    Reply