具有RemoteFX视频适配器的Ubuntu VM中的Hyper-v屏幕分辨率 [英] Hyper-v screen resolution in Ubuntu VM with RemoteFX video adapter

查看:216
本文介绍了具有RemoteFX视频适配器的Ubuntu VM中的Hyper-v屏幕分辨率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是在Windows 10安装中第一次使用Hyper-V,在我的Ubuntu 18.04桌面VM中屏幕分辨率方面存在一些问题.

I am using Hyper-V for the first time on a Windows 10 installation where I am having some issues with screen resolution in my Ubuntu 18.04 desktop VM.

指南提出了以下操作,以便为基于linux的VM配置屏幕重新解决方案:

Guides propose these actions in order to configuration screen resulution for linux based VMs:

编辑grub:

sudo nano /etc/default/grub

添加视频= hyperv_fb:1920x1080:

Add video=hyperv_fb:1920x1080:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"

更新grub:

sudo update-grub

然后重新启动.

在您要使用 RemoteFX 3D视频适配器(将屏幕分辨率突然更改为800x600)之前,该方法效果很好.在VM中移动窗口和浏览Web似乎很好,并且在Hyper-v Manager中物理GPU"下的状态为当前有1个虚拟机正在使用此GPU".

That works just fine until you want to use RemoteFX 3D Video Adapter which suddenly changes the screen resolution down to 800x600. Moving windows and browsing the web in the VM seems fine and in Hyper-v Manager under "Physical GPUs" it says "1 virtual machine are currently using this GPU".

我已经看到建议,在其中安装 linux-image-extra-virtual 软件包将提供HyperV显示驱动程序,但似乎没有任何改变.也许我在这里缺少什么?

I have seen suggestion where installing linux-image-extra-virtual package will provide a HyperV display driver but that seems to change nothing. Maybe I am missing something here?

因此,我正在寻找有关如何在Ubuntu VM中使用RemoteFX并具有可用分辨率的信息.有建议吗?

So I am looking for input for how I can be able to use RemoteFX and have a usable resolution in my Ubuntu VM. Suggestions?

推荐答案

我遇到了一个相同的问题,并通过执行以下操作解决了该问题:

I was having an identical problem and solved it by doing the following:

  1. 在Hyper-V中为我的Ubuntu 16.04 VM添加了RemoteFX 3D视频适配器(在没有RemoteFX的情况下,VM的性能不可用).
  2. 启动Ubuntu VM并运行:

  1. Added RemoteFX 3D Video Adapter to my Ubuntu 16.04 VM in Hyper-V (performance of the VM without RemoteFX was unusable).
  2. Powered up Ubuntu VM and ran:

sudo hwinfo --framebuffer

这将返回所有可用屏幕尺寸的列表.我选择了最适合我的显示器的一种尺寸(1600x1024).

This returned a list of all the available screen sizes. I chose one of the sizes (1600x1024) which best suited my display.

  1. 编辑了/etc/default/grub文件并添加了以下行:

  1. Edited the /etc/default/grub file and added the lines:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1600x1024"

GRUB_GFXMODE=1600x1024

保存了grub文件,然后通过运行以下命令更新设置:

Saved the grub file and then updated the settings by running:

sudo update-grub

重新启动Ubuntu VM,它开始工作了!我的屏幕尺寸更大,图形性能也更好. 我的问题是我已经更改了grub文件,其屏幕尺寸(1366x768)在hwinfo命令的列表输出中不可用. 我假设使用RemoteFX时,grub文件中使用的值必须与hwinfo中显示的可用屏幕尺寸之一匹配. 当这些值不匹配时,VM显示的显示大小是最小的默认大小,对我来说是800x600,太小了.

Restarted the Ubuntu VM and it worked! I had a bigger screen size and the graphic performance was a lot better. My problem was that I had changed the grub file with a screen size (1366x768) that was not available in the list output from the hwinfo command. I'm assuming that when RemoteFX is used, the values used in the grub file MUST match one of the available screen sizes shown in hwinfo. When these values didn't match up, the display size shown by the VM was the smallest default size which for me was 800x600, far too small.

这篇关于具有RemoteFX视频适配器的Ubuntu VM中的Hyper-v屏幕分辨率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆