UTM icon indicating copy to clipboard operation
UTM copied to clipboard

Host-only network with static IP address seems broken

Open dragos-bth opened this issue 3 years ago • 0 comments

I have configured a Ubunt 22.04 Server VM (ARM64) with default settings on UTM 3.2.4 (58) under MacOS Monterey 12.4 (Apple Sillicon). The shared interface was changed to a host-only interface, where the subnet address and host address were specified as 192.168.168.0/24 and 192.168.168.11 (see below full QEMU command).

When starting the VM under UTM I receive the following error message: "qemu-aarch64-softmmu: -netdev vmnet-host,id=net0,net=192.168.168.0/24,host=192.168.168.11,hostname=192.168.168.11: Invalid parameter 'net'

If I change the network to "Shared network" I still receive the same error message. Only after clearing Guest Network and Host Address from the configuration is the VM able to boot without error messages.

The expected behavior was that the VM will assign 192.168.168.11/24 to its primary interface.

qemu-system-aarch64 -L /Applications/UTM.app/Contents/Resources/qemu -S -qmp tcp:127.0.0.1:4444,server,nowait -nodefaults -vga none -spice "unix=on,addr=/Users/dil/Library/Group Containers/WDNLXAD4W8.com.utmapp.UTM/7BC197B8-214F-4AEB-BFF2-C0EAA9ACC5E5.spice,disable-ticketing=on,image-compression=off,playback-compression=off,streaming-video=off,gl=off" -device virtio-ramfb -cpu host -smp cpus=2,sockets=1,cores=2,threads=1 -machine virt, -accel hvf -accel tcg,tb-size=1024 -drive if=pflash,format=raw,unit=0,file=/Applications/UTM.app/Contents/Resources/qemu/edk2-aarch64-code.fd,readonly=on -drive if=pflash,unit=1,file=/Users/dil/Library/Containers/com.utmapp.UTM/Data/Documents/Linux.utm/Images/efi_vars.fd -boot menu=on -m 4096 -device intel-hda -device hda-duplex -name Linux -device nec-usb-xhci,id=usb-bus -device usb-tablet,bus=usb-bus.0 -device usb-mouse,bus=usb-bus.0 -device usb-kbd,bus=usb-bus.0 -device qemu-xhci,id=usb-controller-0 -chardev spicevmc,name=usbredir,id=usbredirchardev0 -device usb-redir,chardev=usbredirchardev0,id=usbredirdev0,bus=usb-controller-0.0 -chardev spicevmc,name=usbredir,id=usbredirchardev1 -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1,bus=usb-controller-0.0 -chardev spicevmc,name=usbredir,id=usbredirchardev2 -device usb-redir,chardev=usbredirchardev2,id=usbredirdev2,bus=usb-controller-0.0 -device usb-storage,drive=cdrom0,removable=true,bootindex=0,bus=usb-bus.0 -drive if=none,media=cdrom,id=cdrom0 -device virtio-blk-pci,drive=drive0,bootindex=1 -drive if=none,media=disk,id=drive0,file=/Users/dil/Library/Containers/com.utmapp.UTM/Data/Documents/Linux.utm/Images/data.qcow2,discard=unmap,detect-zeroes=unmap -device virtio-net-pci,mac=F6:34:6A:80:55:FF,netdev=net0 -netdev vmnet-host,id=net0,net=192.168.168.0/24,host=192.168.168.11,hostname=192.168.168.11 -device virtio-serial -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -chardev spicevmc,id=vdagent,debug=0,name=vdagent -device virtserialport,chardev=charchannel1,id=channel1,name=org.spice-space.webdav.0 -chardev spiceport,name=org.spice-space.webdav.0,id=charchannel1 -uuid 7BC197B8-214F-4AEB-BFF2-C0EAA9ACC5E5 -device virtio-rng-pci

dragos-bth avatar Jul 10 '22 21:07 dragos-bth