Open PokiFOX opened 1 week ago
If I go to Settings, then Bridged -> Show Advanced Settings, and set the guest network IP, the following error occurs:
QEMU error: QEMU exited with an error: qemu-aarch64-softmmu: -netdev vmnet-bridged,id=net0,ifname=en6,start-address=192.168.126.1,end-address=192.168.126.254,subnet-mask=255.255.255.0: Invalid parameter 'subnet-mask'
Hello, when I faced the same issue, I resolved it by selecting Internet > Internet Mode (Bridged (advanced)) in the UTM settings. I hope this helps you as well.
If you need any further assistance, feel free to ask!
I tried setting the network mode to Bridged (Advanced) and specifying the interface for the internal network, but when I entered the virtual machine, I found that there were no network devices. If I forcefully specify the IP in the advanced settings, I get an error when starting the virtual machine:
QEMU error: QEMU exited with an error: qemu-aarch64-softmmu: -netdev vmnet-bridged,id=net0,ifname=en6,start-address=192.168.126.1,end-address=192.168.126.254,subnet-mask=255.255.255.0: Invalid parameter 'subnet-mask'
Can you verify the settings as shown in the image?
Possible Solutions
Solution 1: Assigning a Static IP Address
In Bridged Network mode, you can resolve the issue by assigning a static IP address to the virtual machine.
Steps:
1. Network Settings on Windows 11 ARM:
• Go to Network & Internet Settings → Network Adapters → Right-click on Ethernet and select Properties.
• Select Internet Protocol Version 4 (TCP/IPv4) and click on Properties.
• Select Use the following IP address and enter a static IP address compatible with the en6 network. For example:
• IP address: 192.168.126.20
• Subnet mask: 255.255.255.0
• Default gateway: (optional, can be left blank)
• DNS servers: (optional, can be left blank)
Solution 2: Using Different Network Settings for the Virtual Machine
If you need access to both the internet and the internal network, you can follow these steps:
1. Adding a Second Network Interface:
• In UTM settings, add a second network interface to the Windows 11 ARM virtual machine. Set the first interface to Shared Network mode and the second interface to Bridged Network mode.
• Use the first interface for internet access and the second interface for internal network access.
Solution 3: Setting Up a DHCP Server on the Internal Network
If possible, set up a DHCP server on your internal network so the virtual machine can obtain an IP address when using Bridged Network mode.
Steps:
1. DHCP Server Setup:
• Set up a DHCP server on a device or server within your internal network to distribute IP addresses via the en6 interface.
Can you check these steps as well?
Thank you very much for your response. If I use the bridge mode, then connecting to the en1 network card can obtain the IP 192.168.8.58 because this network is connected to a dial-up router, which indeed has DHCP enabled.
Following your advice, I added a second network card, also using the bridge mode, connected to the en6 network card. This is a local area network directly connected to a switch via a wired connection. As you analyzed, indeed, there is no DHCP on the switch. Your analysis was very accurate, and I indeed saw the IP was 169.254.X.X.
I continued following your method, and after shutting down the virtual machine, I set it up in the UTM virtual machine. The settings for en1 and en6 in UTM are as shown in the image below.
Now, if I try to directly write the IP address in the settings of en6, I get the prompt shown in the image below when starting the UTM virtual machine.
I removed the IP address from en6, started the UTM virtual machine, and then set the IP address for en6 within the UTM virtual machine. However, as shown in the image below, I could not save the configuration.
Edit IP Settings:
192.168.126.20
255.255.255.0
192.168.126.1
8.8.8.8
Verify Network Adapter in UTM:
Apply and Test:
192.168.126.1
and other local network devices.I added a DNS, following your suggestion, 8.8.8.8. The problem was resolved. Thank you so much!
Describe the issue
I encountered a rather peculiar issue while using UTM.
My device has two network cards. One is connected to a wired network (en6), but this wired network is an internal network and cannot connect to the Internet. The other is a wireless network card (en1), which connects to a wireless network that has Internet access.
Then I installed Windows 11 ARM on UTM and used the shared network with a virtio-net-pci emulated network card, which created a new network card, bridge100, on macOS.
In my Windows 11 ARM, the network query results are as follows:
Now, if I ping Google from Windows 11 ARM, it works. However, if I ping the address of the en6 network card, it doesn't work. I specifically want to use this internal network port en6.
If I change the network mode to Bridged (Advanced) and bridge the en6 interface, an even stranger phenomenon occurs. In my Windows 11 ARM, the network query results are as follows:
And now, I cannot ping either the internal network or the external network.
Configuration
Crash log
If the app crashed, you need a crash log. To get your crash log, open Console.app, go to
Crash Reports
, and find the latest entry for either UTM, QEMU, QEMUHelper, or qemu-*. Right click and chooseReveal in Finder
. Attach the report here.Debug log
attached.