knazarov / homebrew-qemu-virgl

A homebrew tap for qemu with support for 3d accelerated guests
414 stars 67 forks source link

Windows Host - No Network #90

Open mikev1963 opened 2 years ago

mikev1963 commented 2 years ago

I am trying to run a Windows 10 desktop but there is not network. Here is my configuration:

qemu-system-x86_64 \ -machine accel=hvf \ -cpu Haswell-v4 -smp 2 -m 4G \ -device intel-hda -device hda-output \ -device qemu-xhci \ -device virtio-vga-gl \ -device usb-kbd \ -device virtio-mouse-pci \ -display cocoa,gl=es \ -netdev vmnet-bridged,id=net0,ifname=en0 \ -device virtio-net,netdev=net0 \ -drive "file=virtio-win-0.1.215.iso,index=1,media=cdrom" \ -drive "if=virtio,format=raw,file=hdd.raw,if=ide,discard=on"

Once Windows starts I do not have any ethernet interfaces.

Any help would be appreciated.

DUOLabs333 commented 2 years ago

Try -device virtio-net,netdev=net0,mac=52:54:00:c9:18:27. Also, that would be a Windows guest, not host.

hamzaahmedzia1 commented 2 years ago

No network with Bliss OS either. -net nic,model=virtio-net-pci -net user,hostfwd=tcp::4444-:5555

DUOLabs333 commented 2 years ago

Weird, I got it working before, so I know it's possible.