Hello, I'm currently running a Proxmox server with a 5600G, and I recently successfully passed through the integrated graphics to a VM. I used the following configuration and used the vbios_5825U.bin file from the https://github.com/isc30/ryzen-7000-series-proxmox project.
I successfully output the VM screen through the motherboard's HDMI port, but the display settings only show resolutions up to 1920x1080, and 3840x2160 is not displayed.
To resolve this, I tried to create and apply a custom resolution using xrandr, but failed. The process was as follows:
I'm using a Samsung U32J592 monitor, and when tested on the host OS, 3840x2160 resolution was output normally. I also tried using video options in grub to directly specify resolution and refresh rate, but failed to output the display.
I'm wondering if anyone has experienced the same symptoms. I've tried all methods I could find through searching, but without success.
Additionally, I seem to be experiencing the AMD reset bug. When first booting the VM, the screen was normally output through the motherboard's HDMI port, but upon VM reboot, screen output fails. I've been resolving this by re-recognizing PCI devices using the following script, but I'm wondering if there are other methods:
Would you like me to provide any specific troubleshooting advice for these issues?
Code:
bios: ovmf
boot: order=virtio0;ide2
cores: 12
cpu: host
efidisk0: local-zfs:vm-108-disk-0,efitype=4m,size=1M
hostpci0: 0000:08:00.0,pcie=1,romfile=vbios_7xxx.bin
ide2: local:iso/ubuntu-24.04-live-server-amd64.iso,media=cdrom,size=2690412K
machine: q35
memory: 12288
meta: creation-qemu=9.0.2,ctime=1733314268
name: uaysk-dev
net0: virtio=BC:24:11:A8:6C:2D,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsihw: virtio-scsi-single
smbios1: uuid=e714162d-9d9a-40f6-a834-002f340c1ec2
sockets: 1
usb0: host=5-2.3
usb1: host=5-2.4
usb2: host=5-2.2
vga: none
virtio0: local-zfs:vm-108-disk-1,discard=on,iothread=1,size=256G
vmgenid: 9155566b-828f-49fe-9310-5cf8abe09fb3
I successfully output the VM screen through the motherboard's HDMI port, but the display settings only show resolutions up to 1920x1080, and 3840x2160 is not displayed.
To resolve this, I tried to create and apply a custom resolution using xrandr, but failed. The process was as follows:
Code:
uaysk@uaysk-dev:~$ cvt 3840 2160 60
# 3840x2160 59.98 Hz (CVT 8.29M9) hsync: 134.18 kHz; pclk: 712.75 MHz
Modeline "3840x2160_60.00" 712.75 3840 4160 4576 5312 2160 2163 2168 2237 -hsync +vsync
uaysk@uaysk-dev:~$ xrandr --newmode "3840x2160_60.00" 712.75 3840 4160 4576 5312 2160 2163 2168 2237 -hsync +vsync
uaysk@uaysk-dev:~$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
HDMI-A-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 697mm x 392mm
1920x1080 60.00* 50.00 59.94 30.00 24.00 29.97 23.98
1680x1050 59.88
1600x900 60.00
1280x1024 75.02 60.02
1440x900 59.90
1280x800 59.91
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x480 60.00 59.94
640x480 75.00 72.81 66.67 60.00 59.94
720x400 70.08
DisplayPort-1 disconnected (normal left inverted right x axis y axis)
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
3840x2160_60.00 (0x569) 712.750MHz -HSync +VSync
h: width 3840 start 4160 end 4576 total 5312 skew 0 clock 134.18KHz
v: height 2160 start 2163 end 2168 total 2237 clock 59.98Hz
uaysk@uaysk-dev:~$ xrandr --addmode DisplayPort-0 3840x2160_60.00
uaysk@uaysk-dev:~$ xrandr -s 3840x2160
Failed to change the screen configuration!
uaysk@uaysk-dev:~$ xrandr --output DisplayPort-0 --mode 3840x2160_60.00
xrandr: Configure crtc 0 failed
uaysk@uaysk-dev:~$ xrandr -s 3840x2160_60.00
Failed to change the screen configuration!
uaysk@uaysk-dev:~$ xrandr --output DisplayPort-0 --mode "3840x2160_60.00"
xrandr: Configure crtc 0 failed
uaysk@uaysk-dev:~$ xrandr --listmonitors
Monitors: 1
0: +*DisplayPort-0 1920/697x1080/392+0+0 DisplayPort-0
uaysk@uaysk-dev:~$ xrandr --output DisplayPort-0 --mode "1600x900"
uaysk@uaysk-dev:~$ xrandr --output DisplayPort-0 --mode "3840x2160"
xrandr: cannot find mode 3840x2160
uaysk@uaysk-dev:~$ xrandr --output DisplayPort-0 --mode "3840x2160_60.00"
xrandr: Configure crtc 0 failed
uaysk@uaysk-dev:~$ xrandr --output DisplayPort-0 --mode "1920x1080"
I'm using a Samsung U32J592 monitor, and when tested on the host OS, 3840x2160 resolution was output normally. I also tried using video options in grub to directly specify resolution and refresh rate, but failed to output the display.
I'm wondering if anyone has experienced the same symptoms. I've tried all methods I could find through searching, but without success.
Additionally, I seem to be experiencing the AMD reset bug. When first booting the VM, the screen was normally output through the motherboard's HDMI port, but upon VM reboot, screen output fails. I've been resolving this by re-recognizing PCI devices using the following script, but I'm wondering if there are other methods:
Code:
echo "disconnecting amd graphics"
echo "1" | tee -a /sys/bus/pci/devices/0000\:08\:00.0/remove
echo "disconnecting amd sound counterpart"
echo "1" | tee -a /sys/bus/pci/devices/0000\:08\:00.1/remove
echo "entered suspended state press power button to continue"
echo -n mem > /sys/power/state
echo "reconnecting amd gpu and sound counterpart"
echo "1" | tee -a /sys/bus/pci/rescan
echo "AMD graphics card sucessfully reset"
Would you like me to provide any specific troubleshooting advice for these issues?