I'm now installing Ubuntu 20.04 on a virtual machine using qemu (I've done this 2-3 times before). But this time I'm getting this message:
Your Network is probably not using the DHCP protocol. Alternatively,
the dhcp server may be slow or some network hardware is not working
properly.
I'm doing this remote from home so I can't set the network to my host for DHCP now. Is there any way I can make the host machine act as a dhcp-server-enabled router?
This is the final command to install the OS.
sudo LD_LIBRARY_PATH=/home/ckim/prj/abdsn/ab21sim/axpusim/build ./qemu-system-aarch64 -nographic -machine ab21q,gic-version=max -m 512M -cpu max -smp 4 \
-netdev user,id=vnet,hostfwd=:127.0.0.1:0-:22 -device virtio-net-pci,netdev=vnet \
-drive file=ab21q-ubuntu-20.04-image.img,if=none,id=drive0,cache=writeback -device virtio-blk,drive=drive0,bootindex=0 \
-drive file=ubuntu-20.04-mini.iso,if=none,id=drive1,cache=writeback -device virtio-blk,drive=drive1,bootindex=1 \
-drive file=flash0.img,format=raw,if=pflash -drive file=flash1.img,format=raw,if=pflash --enable-kvm
Host OS is also Ubuntu 20.04 on arm64 machine.
ADD : I tried the same procedure on my ubuntu 20.04 machine (x86_64 machine) and there is no problem. So it is the host difference.