如何以全屏模式连接到Linux CentOS 7虚拟机?

3
我正在使用Windows 8.1上的Hyper-V连接到CentOS 7虚拟机,但全屏模式不起作用。我需要修复这个问题。其他虚拟机,包括CentOS 6和Windows Server都没有问题。以下是我使用Hyper-V Manager连接该VM时所做的一些观察。
  1. CentOS 7, while booting, displays this warning "fast TSC calibration failed". I read that this is not a problem but I'm not sure. Everything else is working in the VM except not being able to work in the full screen mode of my laptop which has a pretty high resolution graphics card.

  2. Applications -> System Tools -> Settings -> Displays shows only one default option "Built-in Display" with grayed out Resolution of "1152 x 864 (4:3)". This is where I was expecting to see other resolutions to choose from!

  3. When I run the following bash command

    lspci -nn | grep VGA
    

我理解了

    00:80.0 VGA compatible controller [0300]: Microsoft Corporation Hyper-V Virtual VGA [1414:5353]

非常感谢您的帮助。

2个回答

3
尝试以下操作:
$sudo grubby --update-kernel=ALL --args="video=hyperv_fb:2560x1440"
$sudo reboot

此外,请记住,Hyperv Viewer在分辨率方面的表现有限。我的建议是安装xrdp并使用远程桌面,这样可以获得更好的全屏分辨率。注意保重。

在Windows 8.1 Hyper-V上使用Centos 7,这种方法改变了Hyper-V连接的分辨率。太棒了。谢谢。 - user844705
1
这个解决方案对我没有用。然而,我在Windows 10 Pro上的Hyper-V虚拟机中运行CentOS 7(而不是Windows 8.1),所以也许是Win10版本的Hyper-V阻止了它的工作?(尽管我怀疑) - SirGeekALot

0

我在 Windows 10 主机上的虚拟机(CentOS 7.6)上安装了以下软件包后,此问题已得到解决。希望这也能帮助其他人。

yum install dkms gcc make kernel-devel bzip2 binutils patch libgomp glibc-headers glibc-devel kernel-headers

稍后重新启动并尝试安装Virtualbox客户端附加组件。

注意保重。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接