UTM
UTM copied to clipboard
No internet connection in virtualised MacOS VM
Describe the issue
Since 1.4.2024 my MacOS VM, which has had no such issue in the last 4 months that I've been using it, has lost internet connectivity. The host's connection is functioning as expected. I tried spinning up a brand new MacOS VM and it experienced the same issue.
I also tried switching from Bridged network mode to Shared Network, this did not help either.
Configuration
- UTM Version: Version 4.3.5 (87)
- macOS Version: macOS 14.0
- Mac Chip (Intel, M1, ...): M1
Crash log
n/a
Debug log
No debug log export option for MacOS VM. No output on std when launching /Applications/UTM.app/Contents/MacOS/UTM
through terminal.
Upload VM
config.plist.zip
Hi everyone,
with the macOS version of UTM, I experience exact same phenomenon as @totalolage described. Neither spun-up own images nor any of the images in the image gallery have working interworking post implementation.
I am on 4.4.5 & also experiencing similar issues w/ the VM not receiving an IP/network access
I also had this today.
Both windows 11 and Debian now dont have networking, and I have no idea how to fix it. Has made UTM useless to me..
@wildapedev Same here ! I think it was because of the new version 4.4.5, because I did not have this issue before that version auto updated.
Using Ubuntu 22.04 VM on MBP M1Pro, using static IPs on VM (Host-Only and NAT interfaces) and on 4.4.5 it happens frequently. When happens, no ping to host interfaces and VM becomes completely isolated from network. Downgraded to 4.3.5, happened one time so far, seems more stable(?). On 4.4.5 (and also one time on 4.3.5) i used below as a workaround to avoid rebooting the VM:
nmcli networking off nmcli networking on
@ebubekirkoca thanks for adding your use case.
In windows 11, I tried resetting the network stack as show here: https://www.intel.com/content/www/us/en/support/articles/000058982/wireless/intel-killer-wi-fi-products.html
In the search box on the taskbar click Start, type command prompt, right-click the command prompt result and then select Run as administrator and confirm.
At the command prompt (decline restarting your machine until you have entered the final command):
Type ipconfig /release and press Enter.
Type ipconfig /flushdns and press Enter.
Type ipconfig /renew and press Enter. (This will stall for a moment.)
Type netsh int ip reset and press Enter. (Don’t restart yet.)
Type netsh winsock reset and press Enter.
Now restart your machine using Start > Power > Restart once more and test to see if the issue is resolved.
But after a restart, networking is still not working.
I'm experiencing similar issues with version 4.4.5 and both macOS and Fedora Linux virtualization. Are there any workarounds or fixes?
Same here:
- Mac book - M2 Pro
- MacOD 14.2.1
- Windows 11 latest
ps. Fixed using Emulated Network
Same here:
- Mac book - M2 Pro
- MacOD 14.2.1
- Windows 11 latest
ps. Fixed using Emulated Network
Could you explain what you mean by emulated networking ? Would like to fix my own ones :)
@gedw99 select your VM -> edit -> Network -> Network mode -> Emaulated VLAN
just had this issue started today for me too, tried to downgrade to 4.3.5, but then the macOS vms i use had this "Unavailable" label on them, tried to upgrade to 4.5.0, but this internet issue still happens,
in Activity-Monitor of the guest, only mDNSResponder receives packets, everything else always at 0, and this "Emaulated VLAN" option doesn't seem to be available to macOS guests.... also tried to reset my modem which always changes my IP, but no help either.
any help please?
finally managed to get the internet back into the guests, what i did was add another network device of a "Bridged (Advanced)" type, idk what it means or anything, but it was the only other option other then the default one available to me....
@gedw99 select your VM -> edit -> Network -> Network mode -> Emaulated VLAN
Worked perfectly .
for anyone else here, in windows you don’t have to change anything . It just works
Facing same issue UTM Version: 4.4.5 (94) macOS Version: Sonoma 14.4.1 Mac Chip : M3
All of a sudden my internet in VM stopped working, I have installed Mac OS Sonoma in UTM and inside UTM VM network is showing as ethernet connected but no internet on VM. Any help on this would be greatly appreciated.
Please find attached screenshot.
Facing same issue UTM Version: 4.4.5 (94) macOS Version: Sonoma 14.4.1 Mac Chip : M3
All of a sudden my internet in VM stopped working, I have installed Mac OS Sonoma in UTM and inside UTM VM network is showing as ethernet connected but no internet on VM. Any help on this would be greatly appreciated. Please find attached screenshot.
Changing the network from shared to bridged worked for me.
changing to bridged also worked for me. I could not use the emulated.. but I also could not use "auto" for bridged. I had to explicitly set the eth interface
The issue happens on the version of Arch found in the gallery. Tried adding a bridge network alongside setting up the emulated VLAN. Only HTTP connections seem to work.
ping google.com
ping https://google.com
Edit: here's networkctl status
's output:
* State: routable
Online state: online
Address: 10.0.2.15 on enp0s1
10.0.1.136 on enp0s2
fec0::7420:faff:fe0c:1928 on enp0s1
fe80::7420:faff:fe0c:1928 on enp0s1
fe80::78ac:35ff:fe48:ced0 on enp0s2
Gateway: 10.0.2.2 on enp0s1
10.0.1.1 on enp0s2
fe80::2 on enp0s1
DNS: 10.0.2.3
10.0.1.1
Apr 15 07:23:00 alarm systemd-networkd[318]: enp0s1: Link UP
Apr 15 07:23:00 alarm systemd-networkd[318]: enp0s2: Configuring with /etc/systemd/network/en.network.
Apr 15 07:23:00 alarm systemd-networkd[318]: enp0s2: Link UP
Apr 15 07:23:00 alarm systemd-networkd[318]: enp0s2: Gained carrier
Apr 15 07:23:00 alarm systemd-networkd[318]: enp0s2: DHCPv4 address 10.0.1.136/24, gateway 10.0.1.1 acquired from 10.0.1.1
Apr 15 07:23:00 alarm systemd-networkd[318]: Could not set hostname: Access denied
Apr 15 07:23:01 alarm systemd-networkd[318]: enp0s1: Gained carrier
Apr 15 07:23:01 alarm systemd-networkd[318]: enp0s1: DHCPv4 address 10.0.2.15/24, gateway 10.0.2.2 acquired from 10.0.2.2
Apr 15 07:23:02 alarm systemd-networkd[318]: enp0s2: Gained IPv6LL
Apr 15 07:23:03 alarm systemd-networkd[318]: enp0s1: Gained IPv6LL
and
[root@alarm ~]# ip -c -h address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 76:20:fa:0c:19:28 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 metric 1024 brd 10.0.2.255 scope global dynamic enp0s1
valid_lft 86275sec preferred_lft 86275sec
inet6 fec0::7420:faff:fe0c:1928/64 scope site dynamic mngtmpaddr noprefixroute
valid_lft 86279sec preferred_lft 14279sec
inet6 fe80::7420:faff:fe0c:1928/64 scope link
valid_lft forever preferred_lft forever
3: enp0s2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 7a:ac:35:48:ce:d0 brd ff:ff:ff:ff:ff:ff
inet 10.0.1.136/24 metric 1024 brd 10.0.1.255 scope global dynamic enp0s2
valid_lft 43075sec preferred_lft 43075sec
inet6 fe80::78ac:35ff:fe48:ced0/64 scope link
valid_lft forever preferred_lft forever
Same here, only using a bridged network restored network connection.
Only shared network working for me. no connection in bridged mode UTM 4.5.3 macos 14.5 on guest&host
I'm trying to create a VM with an ipv4 address visible on my subnet so I can connect to it from another host on the same subnet. UTM 4.5.3, Sonoma 14.4.1 on a Mac Studio M2 Guest. Ubuntu 24.04
Using the "Bridged" option, I've tried variations of emulated network devices including the virtio-net-pci, Ive tried using and not using the advanced panel to set an address range, but when I start the VM I only get an ipv6 address on "enp0s1", never an ipv4 address. True even if I change from Automatic to en0.
When I use the "Shared" network option, I do get an ipv4 address that works, but can't be seen from another machine on the network.
Any suggestions?
(I realize that this thread is for macos as a Host and Guest, but I'm guessing the problem is the same)
I thought it is limitations of apple native virtualization. But it is interesting to heard something from UTM team.
I found a solution but I don't have the knowledge of QEMU to explain why it works. I'm guessing its because one needs to specify a device out of the range of the hostOS's devices To create a VM with Ubuntu that can be accessed from other hosts in the LAN and having access to the internet too Type Bridged Card virtio-net-pci Device en10 <-------
no isolation, no advanced settings