Closed zentros closed 3 years ago
Best way to see what's going on is to SSH into your machine while it's running and run each part manually
virsh start {vmname}
Let me know what happens there.
Hi zentros.
I also have an rtx card and I needed to do one extra command in the script for it to work.
Add sudo nvidia-persistenced
before modprobe -r nvidia_drm
.
Without sudo nvidia-persistenced
, the nvidia-related processes won't shutdown.
I would also recommend setting your wait to 10 seconds instead of 5. Also, do what joeknock said above.
Good luck
Best way to see what's going on is to SSH into your machine while it's running and run each part manually
1. SSH in 2. Run the start script, make sure it completes sucessfully. If not, let me know where 3. If it runs successfully, run the vm with `virsh start {vmname}`
Let me know what happens there.
don't have any device to ssh in
Best way to see what's going on is to SSH into your machine while it's running and run each part manually
1. SSH in 2. Run the start script, make sure it completes sucessfully. If not, let me know where 3. If it runs successfully, run the vm with `virsh start {vmname}`
Let me know what happens there.
don't have any device to ssh in
Hi zentros.
I also have an rtx card and I needed to do one extra command in the script for it to work. Add
sudo nvidia-persistenced
beforemodprobe -r nvidia_drm
.Without
sudo nvidia-persistenced
, the nvidia-related processes won't shutdown.I would also recommend setting your wait to 10 seconds instead of 5. Also, do what joeknock said above.
Good luck
I added sudo nvidia-persistenced
still the same issue
Best way to see what's going on is to SSH into your machine while it's running and run each part manually
- SSH in
- Run the start script, make sure it completes sucessfully. If not, let me know where
- If it runs successfully, run the vm with
virsh start {vmname}
Let me know what happens there.
Used my brother's phone to ssh in : http://imgur.com/gallery/3MPs3X2
it seems like the drivers for Nvidia gpu aren't installed. you should try doing that first also, it's better if you remove all of the spice devices, or else nvidia could spit out error 43
Yeah definitely remove all of the spice devices connected to the VM, I sort of assumed that had been done already.
The only video device on the VM should be the passed through GPU.
The start script looks like it runs just fine so that's good.
I think i found the problem. Nvidia drivers weren't configured properly. I already removed the spice devices. I'll test the vm tomorrow as it's really late right now
Yeah definitely remove all of the spice devices connected to the VM, I sort of assumed that had been done already.
The only video device on the VM should be the passed through GPU.
The start script looks like it runs just fine so that's good.
configured the nvidia drivers. Ssh'd in and this is what i get : http://imgur.com/gallery/nEzABvC
Yeah definitely remove all of the spice devices connected to the VM, I sort of assumed that had been done already. The only video device on the VM should be the passed through GPU. The start script looks like it runs just fine so that's good.
configured the nvidia drivers. Ssh'd in and this is what i get : http://imgur.com/gallery/nEzABvC
i managed to make it work, still a black screen tho. no errors while running the script. I also removed spice
Take out that nvidia-persistenced and try. I don't even know why it's there. Where did you read that it was required?
Yeah definitely remove all of the spice devices connected to the VM, I sort of assumed that had been done already. The only video device on the VM should be the passed through GPU. The start script looks like it runs just fine so that's good.
configured the nvidia drivers. Ssh'd in and this is what i get : http://imgur.com/gallery/nEzABvC
i managed to make it work, still a black screen tho. no errors while running the script. I also removed spice
what does starting the vm via sudo virsh start win10
tell you?
Something is using the nvidia driver. The script is NOT completing. If you don't take out that sudo nvidia-persistenced command in the start script, the nvidia driver will not be able to unbind from the video card and it will continue to not work.
Something is using the nvidia driver. The script is NOT completing. If you don't take out that sudo nvidia-persistenced command in the start script, the nvidia driver will not be able to unbind from the video card and it will continue to not work.
removed the nvidia-persistenced but now almost all the nvida modules give an error : FATAL ERROR : Module nvidia still in use
Try running the script twice. Bear with me here, just curious about something.
Try running the script twice. Bear with me here, just curious about something.
managed to fix it. everything works perfectly now. The problem was nvidia-settings. It started in the background as soon as i started my pc up. Thanks for all the help
Nvidia-settings? I know this issue is long old but I might actually need a fix, where?
Specs :
My start script : ` GNU nano 5.6 /etc/libvirt/hooks/qemu.d/win10/prepare/begin/start.sh
set -x
source "/etc/libvirt/hooks/kvm.conf"
systemctl stop ssdm.service
echo 0 > /sys/class/vtconsole/vtcon0/bind echo 0 > /sys/class/vtconsole/vtcon1/bind
echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind
sleep 5
modprobe -r nvidia_drm modprobe -r nvidia_modeset modprobe -r drm_kms_helper modprobe -r nvidia modprobe -r i2c_nvidia_gpu modprobe -r drm modprobe -r nvidia_uvm
virsh nodedev-detach pci_0000_01_00_0 virsh nodedev-detach pci_0000_01_00_1 virsh nodedev-detach pci_0000_01_00_2 virsh nodedev-detach pci_0000_01_00_3
modprobe vfio modprobe vfio_pci modprobe vfio_iommu_type1 `
My stop script : `set -x
source "/etc/libvirt/hooks/kvm.conf"
modprobe -r vfio_pci modprobe -r vfio_iommu_type1 modprobe -r vfio
virsh nodedev-reattach pci_0000_01_00_0 virsh nodedev-reattach pci_0000_01_00_1 virsh nodedev-reattach pci_0000_01_00_2 virsh nodedev-reattach pci_0000_01_00_3
echo 1 > /sys/class/vtconsole/vtcon0/bind echo 1 > /sys/class/vtconsole/vtcon1/bind
nvidia-xconfig --query-gpu-info > /dev/null 2>&1
echo "efi-framebuffer.0" > /sys/bus/platform/drivers/efi-framebuffer/bind
modprobe nvidia_drm modprobe nvidia_modeset modprobe drm_kms_helper modprobe nvidia modprobe drm modprobe nvidia_umv
systemctl start sddm.service `
My libvirt settings : `
`
### HELP ME PLEASE