0

I am new to qemu and trying to run ubuntu cloud images with qemu 7.1 under Windows (11), the host is an Intel x64 system connected to the internet (access provided by a cable modem) over a wlan adapter.

Now when I try e.g. qemu-system-x86_64.exe .. -nic user ubuntu-22.04-server-cloudimg-amd64.img .. I have no problems in the guest to have a network connection e.g. the command ip a and hostname -I show network is set up

ubuntu@ubuntu:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff
    altname enp0s3
    inet 10.0.2.15/24 metric 100 brd 10.0.2.255 scope global dynamic ens3
       valid_lft 86310sec preferred_lft 86310sec
    inet6 fec0::5054:ff:fe12:3456/64 scope site dynamic mngtmpaddr noprefixroute
       valid_lft 86312sec preferred_lft 14312sec
    inet6 fe80::5054:ff:fe12:3456/64 scope link
       valid_lft forever preferred_lft forever
ubuntu@ubuntu:~$ hostname -I
10.0.2.15 fec0::5054:ff:fe12:3456

On the other hand, when I try the same settings with qemu-system-aarch64.exe e.g. qemu-system-aarch64.exe .. -machine virt,gic-version=max .. -nic user -drive if=none,file=ubuntu-22.04-server-cloudimg-arm64.img,id=hd0 .. then I have no network in the guest:

ubuntu@ubuntu:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp0s1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff
ubuntu@ubuntu:~$ hostname -I

ubuntu@ubuntu:~$

Any idea why the enp0s1 is DOWN? Any idea how to fix that?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.