joeknock90 / Single-GPU-Passthrough

1.49k stars 75 forks source link

Internet stops working after passing through gpu #87

Closed boofiboi closed 2 years ago

boofiboi commented 2 years ago

As per title, my internet stops working no matter if its on virtio or e1000e.

revert.sh start.sh my vm .xml dmesg

Any idea why? I use a RX 5500XT and a R5 1600. I have also checked that my network controller is not in the same iommu group.

With a USB wifi adapter passed through internet does work, but Is very slow as my router is behind 3 concrete walls

TR-RBM commented 2 years ago

Have you configured networking yet? I had the same issue and i had to add a new virtual network and assign it to the VM. You can add a new virtual network in virt-manager (Edit -> Connection Details -> Virtual Networks)

If you use virtio you may also need to install the virtio driver in your VM.

Here is an example NAT network which worked for me: You will need to change the physical network adapter to your adapter name (may be eth0 or something)

grafik

boofiboi commented 2 years ago

Creating the network adapter always gives me the error that the selected network is already in use, and I cant disable my main network because then the VM's network will die too so.

boofiboi commented 2 years ago

nvm it was the subnet, im just stupid.

But yeah, your solution worked perfectly.

Thanks a lot.