Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade from 3.1.5 vm failed to start with error: 'ifname' is missing #3945

Closed
RIKEIZEN opened this issue Apr 26, 2022 · 5 comments
Closed
Milestone

Comments

@RIKEIZEN
Copy link

Describe the issue
I upgraded UTM from version 3.1.5 to 3.2.0 today. When I start any aarch64 vms exist in UTM now, vm can not be started and error message dialog said: "qemu-aarch64-softmmu: -netdev vmnet-bridged,id=net0: Parameter 'ifname' is missing". x86_64 vm said: "qemu-x86_64-softmmu: -netdev vmnet-bridged,id=net0: Parameter 'ifname' is missing". I tried edit the vm network configuration then saved it, but no use.

Configuration

  • UTM Version: 3.2.0(54)
  • OS Version: macOS 12.3
  • Intel or Apple Silicon? Apple Silicon.

Crash log
Doesn't crash.

Debug log
Running: -L /Applications/UTM.app/Contents/Resources/qemu -S -qmp tcp:127.0.0.1:4000,server,nowait -nodefaults -vga none -spice "unix=on,addr=/Users/lichao/Library/Group Containers/WDNLXAD4W8.com.utmapp.UTM/74A06755-338D-4718-8EAE-D9B0A74011F5.spice,disable-ticketing=on,image-compression=off,playback-compression=off,streaming-video=off,gl=on" -device virtio-ramfb-gl -cpu host -smp cpus=4,sockets=1,cores=4,threads=1 -machine virt,highmem=off -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/lichao/Library/Containers/com.utmapp.UTM/Data/Documents/Windows 11 ARM64.utm/Images/efi_vars.fd" -boot menu=on -m 4096 -device intel-hda -device hda-duplex -name "Windows 11 ARM64" -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 ich9-usb-ehci1,id=usb-controller-0 -device ich9-usb-uhci1,masterbus=usb-controller-0.0,firstport=0,multifunction=on -device ich9-usb-uhci2,masterbus=usb-controller-0.0,firstport=2,multifunction=on -device ich9-usb-uhci3,masterbus=usb-controller-0.0,firstport=4,multifunction=on -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 nvme,drive=drive0,serial=drive0,bootindex=0 -drive "if=none,media=disk,id=drive0,file=/Users/lichao/Library/Containers/com.utmapp.UTM/Data/Documents/Windows 11 ARM64.utm/Images/Windows11_InsiderPreview_Client_ARM64_en-us_22483.qcow2,discard=unmap,detect-zeroes=unmap" -device usb-storage,drive=drive1,removable=true,bootindex=1,bus=usb-bus.0 -drive if=none,media=cdrom,id=drive1 -device virtio-net-pci,mac=66:2E:B6:AE:B1:56,netdev=net0 -netdev vmnet-bridged,id=net0 -device virtio-serial -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -chardev spicevmc,id=vdagent,debug=0,name=vdagent -uuid 74A06755-338D-4718-8EAE-D9B0A74011F5 -rtc base=localtime -device virtio-rng-pci
WARNING: Image format was not specified for '/Users/lichao/Library/Containers/com.utmapp.UTM/Data/Documents/Windows 11 ARM64.utm/Images/efi_vars.fd' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
qemu-aarch64-softmmu: -netdev vmnet-bridged,id=net0: Parameter 'ifname' is missing

Upload VM

@osy
Copy link
Contributor

osy commented Apr 26, 2022

Can you upload your config.plist inside the .utm package? I think you have it set to bridged without selecting a bridged adapter.

@RIKEIZEN
Copy link
Author

RIKEIZEN commented Apr 27, 2022

Thank you. This is my config.plist. As you said I didn't select a bridged adapter. But after I selected a bridged adapter, VM even fail to startup. I have attached debug.log.
config.plist.txt
debug.log

@osy
Copy link
Contributor

osy commented Apr 27, 2022

That’s a different issue and addressed in the release notes.

@RIKEIZEN
Copy link
Author

Ah, Got it, thanks a lot for your help.

@mindesik
Copy link

Change network mode to "Shared network"

@osy osy added this to the v3.2 milestone May 12, 2022
@osy osy closed this as completed in f6c0aea May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants