Windows 10 won't boot after shutdown

howtobanana

Member
Jan 25, 2021
5
0
6
30
Hi, I'm new to Proxmox and therefore not really experienced. I had many issues settings up a working Windows environment with GPU passthrough.
But finally I made it.

My system:
CPU: 16 x Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
GPU: AMD Radeon VII
Kernel Version: Linux 5.4.73-1-pve #1 SMP PVE 5.4.73-1
PVE Manager Version: pve-manager/6.3-2/22f57405


Problem 1:
After every reboot Windows get stuck on the shut down screen. I can't even kill the "task" in proxmox by shutting it down. Only a complete Proxmox reboot and afterwards restarting Windows again let me boot into the OS.

This is the error output in Proxmox:

Code:
1 -name win10pro -no-shutdown -chardev 'socket,id=qmp,path=/var/run/qemu-server/101.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -chardev 'socket,id=qmp-event,path=/var/run/qmeventd.sock,reconnect=5' -mon 'chardev=qmp-event,mode=control' -pidfile /var/run/qemu-server/101.pid -daemonize -smbios 'type=1,uuid=dcafd7eb-840b-446c-a220-6a4bef0ad214' -drive 'if=pflash,unit=0,format=raw,readonly,file=/usr/share/pve-edk2-firmware//OVMF_CODE.fd' -drive 'if=pflash,unit=1,format=raw,id=drive-efidisk0,size=131072,file=/dev/pve/vm-101-disk-1' -smp '8,sockets=1,cores=8,maxcpus=8' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' -vga none -nographic -no-hpet -cpu 'kvm64,enforce,hv_ipi,hv_relaxed,hv_reset,hv_runtime,hv_spinlocks=0x1fff,hv_stimer,hv_synic,hv_time,hv_vapic,hv_vendor_id=proxmox,hv_vpindex,kvm=off,+kvm_pv_eoi,+kvm_pv_unhalt,+lahf_lm,+sep' -m 16384 -object 'memory-backend-ram,id=ram-node0,size=16384M' -numa 'node,nodeid=0,cpus=0-7,memdev=ram-node0' -readconfig /usr/share/qemu-server/pve-q35-4.0.cfg -device 'vmgenid,guid=371ef0b1-f007-453a-b18d-7d40bea27ccc' -device 'nec-usb-xhci,id=xhci,bus=pci.1,addr=0x1b' -device 'usb-tablet,id=tablet,bus=ehci.0,port=1' -device 'vfio-pci,host=0000:03:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,multifunction=on' -device 'vfio-pci,host=0000:03:00.1,id=hostpci0.1,bus=ich9-pcie-port-1,addr=0x0.1' -device 'usb-host,bus=xhci.0,hostbus=1,hostport=6.4,id=usb0' -device 'usb-host,bus=xhci.0,hostbus=1,hostport=6.3.2,id=usb1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:43b4121bbc60' -device 'virtio-scsi-pci,id=scsihw0,bus=pci.0,addr=0x5' -drive 'file=/dev/pve/vm-101-disk-0,if=none,id=drive-scsi0,cache=writeback,format=raw,aio=threads,detect-zeroes=on' -device 'scsi-hd,bus=scsihw0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0,id=scsi0,bootindex=100' -drive 'file=/dev/disk/by-id/ata-ST2000DX002-2DV164_Z4ZCSG09,if=none,id=drive-scsi1,format=raw,cache=none,aio=native,detect-zeroes=on' -device 'scsi-hd,bus=scsihw0.0,channel=0,scsi-id=0,lun=1,drive=drive-scsi1,id=scsi1' -netdev 'type=tap,id=net0,ifname=tap101i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown' -device 'e1000,mac=FA:9A:B7:FA:57:65,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=101' -rtc 'driftfix=slew,base=localtime' -machine 'type=q35+pve0' -global 'kvm-pit.lost_tick_policy=discard'' failed: got timeout


Problem 2:
After every restart my AMD GPU driver installation is completely gone. I can install AMD Adrenalin but at the end of the installation it says installation is complete and if I won't to launch the application or restart the system. Launching the application gives me the error that not GPU is recognized and rebooting brings me to the error mentioned before.

Hopefully somebody could help me with those things.
 
I can't even kill the "task" in proxmox by shutting it down.
Do you do this in the GUI? What happens if you kill the KVM process?

After every restart my AMD GPU driver installation is completely gone.
AMD driver in the Windows VM?
 
Do you do this in the GUI? What happens if you kill the KVM process?


AMD driver in the Windows VM?

Thanks for the reply!

I tried to shut down the VM in Windows but it always gets stuck on the shutdown screen. Then I stop/shutdown the VM in Proxmox.
After a while I get the message that it is a timeout fail and so it could not shutdown the the VM. At this point the VM is still running. Only a complete Proxmox reboot helps to close the task.
I also tried to shut down the VM (Win) in Proxmox but it gives me the same error.

In terms of the driver installment. Yes i tried to install the AMD GPU driver in Windows. Is this not the right way to do it?
 
When you type
Code:
ps -aux | grep kvm
you should see a pretty long entry for each of your virtual machines. The output should look like this
Code:
root       12236 (...) /usr/bin/kvm -id 100 (...)
-id is the VM ID. The second number (in this eample 12236) is the process ID. You can then try to do one of the following commands
Code:
kill 12236
kill -s 9 12236
to force stop the VM. This should at least avoid restarting your Proxmox VE host. This is what I meant by "kill" the process.

What seems really strange to me is that your AMD driver magically disappears. Also, is there some message in Windows when your VM gets stuck? Do you have qemu-guest agent installed?
 
I can't see the VM IDs in the shell. It looks like this:
Code:
root@pve:~# ps -aux | grep kvm
root        49  0.0  0.0      0     0 ?        I    17:55   0:00 [kworker/6:0-kvm-irqfd-cleanup]
root       167  0.0  0.0      0     0 ?        I    17:55   0:00 [kworker/8:1-kvm-irqfd-cleanup]
root       194  0.0  0.0      0     0 ?        I    17:55   0:00 [kworker/14:1-kvm-irqfd-cleanup]
root       202  0.0  0.0      0     0 ?        I    17:55   0:00 [kworker/7:2-kvm-irqfd-cleanup]
root      3153  0.0  0.0      0     0 ?        I    18:04   0:00 [kworker/15:2-kvm-irqfd-cleanup]
root      3547  0.0  0.0   6072   892 pts/0    S+   18:06   0:00 grep kvm

When I shut doen Windows (in Windows itself), I see the shutdown sign and the it turns black. But Proxmox gives me this two Errors.

Description stop all VMs:
Code:
()
Stopping VM 101 (timeout = 180 seconds)
TASK OK

VM-101 (Win) Shutdown:
Code:
()
TASK ERROR: VM quit/powerdown failed
(this Error lasts forever)

In Windows device-manager I see the GPU with the error code 43 (which should mean that there are no drivers installed yet)
After installing them the Radeon software asks me if I want to open it or if I want to reboot my system. Opening the software gives me the massage that no drivers are installed. A reboot brings me to the starting point.

And yes, qemu-guest agent is installed.


I figured out that I can't shut down any VMs in Proxmox. I previously had only the Windows VM but unfortunately my second test VM also hast shutdown issues.
But this only happens when I add the PCI (GPU) passtrough in the hardware tab.

This is the shutdown error from my second VM:
Code:
trying to acquire lock...
TASK ERROR: can't lock file '/var/lock/qemu-server/lock-200.conf' - got timeout
 
Last edited:
When you type
Code:
ps -aux | grep kvm
you should see a pretty long entry for each of your virtual machines. The output should look like this
Code:
root       12236 (...) /usr/bin/kvm -id 100 (...)
-id is the VM ID. The second number (in this eample 12236) is the process ID. You can then try to do one of the following commands
Code:
kill 12236
kill -s 9 12236
to force stop the VM. This should at least avoid restarting your Proxmox VE host. This is what I meant by "kill" the process.

What seems really strange to me is that your AMD driver magically disappears. Also, is there some message in Windows when your VM gets stuck? Do you have qemu-guest agent installed?
Was my recent post informative enough?
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!