richiewu
V2EX  ›  问与答

Arch Linux 中虚拟机运行 Windows,分辨率和屏幕不适配

  •  
  •   richiewu · May 14 · 1397 views
    This topic created in 37 days ago, the information mentioned may be changed or developed.

    用的 kvm ,OpenGL 和 3D 加速都设置了

    <video>
      <model type="virtio" vram="524288" heads="1" primary="yes">
        <acceleration accel3d="yes"/>
      </model>
      <alias name="video0"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"/>
    </video>
    
    <graphics type="spice">
      <listen type="none"/>
      <image compression="off"/>
      <gl enable="yes" rendernode="/dev/dri/by-path/pci-0000:00:02.0-render"/>
    </graphics>
    

    virtio-win 也安装了,spice-guest-tools 也安装了 虚拟机里屏幕分辨率死活不能适配屏幕,折腾老半天了

    4 replies    2026-05-17 14:34:39 +08:00
    Oo0
        1
    Oo0  
       May 15
    用的是 qxl 吗 ,我是加一行这个-device qxl-vga,vgamem_mb=128,ram_size_mb=256,vram_size_mb=256
    nutting
        2
    nutting  
       May 15
    开 RPD 去连接
    nutting
        3
    nutting  
       May 15
    RDP
    richiewu
        4
    richiewu  
    OP
       May 17
    @Oo0 qxl 和另外一个都试过了,算了,不折腾了,换成跑别的虚拟机了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   876 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 19:32 · PVG 03:32 · LAX 12:32 · JFK 15:32
    ♥ Do have faith in what you're doing.