Qemu 9.2.x & Ubuntu 24.04 Network Issue
Host environment
- Operating system: Ubuntu 24.04
- OS/kernel version:
- Architecture: x86_64 x86_64 x86_64 GNU/Linux
- QEMU flavor: qemu-system-x86_64, qemu-aarch64, qemu-img
- QEMU version: QEMU emulator version 9.2.2
- QEMU command line:
./usr/local/bin/qemu-system-x86_64 -nodefaults -name imagetest -cpu host -smp cpus=4,sockets=1,cores=4,threads=1 -accel kvm -boot menu=off -m 8192 -vga cirrus -device e1000,netdev=net0 -netdev user,id=net0,hostfwd=tcp::44022-:22 -usb -device usb-tablet -device usb-mouse -device usb-kbd -display default -drive if=none,media=disk,id=drive0,file=amd64-qemu.img,cache=writethrough -device virtio-blk-pci,drive=drive0,bootindex=1 -accel kvm')
Emulated/Virtualized environment
- Operating system: Ubuntu 24.04
- OS/kernel version: x86_64 x86_64 x86_64 GNU/Linux
- Architecture: x86_64 x86_64 x86_64 GNU/Linux
Description of problem
After successfully starting, I cannot access the Internet with the virtual machine. I can connect to the VM via SSH and execute various commands. We want a simple NAT network..
We built the Qemu distribution ourselves with the following command:
./configure --target-list=x86_64-softmmu --disable-install-blobs --enable-strip --enable-user --enable-system --enable-linux-user --disable-xen --enable-modules --enable-module-upgrades --enable-linux-aio --enable-fdt --enable-gnutls --enable-libiscsi --enable-libssh --enable-vnc --enable-kvm --enable-vhost-user make -j 12 sudo make install
Check Libvirt: $systemctl status libvirtd - active
after the VM was successfully started, the IP 10.2.15 was set to ens3 altname enp0s3 assign.
A ping to 8.8.8.8 can not be resolved.
Additional information
We can rule out an image problem because this image runs without problems on the Windows Mac guest system and an Internet connection is possible.