qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

can't access internet from host


From: Lane
Subject: can't access internet from host
Date: Fri, 29 Jul 2022 13:30:04 -0500

Hi,

I start a guest using the following line. The problem is, I can't
reach the internet from the guest, but I can ssh into the guest from
the host.

            qemu-system-x86_64 \
                -cpu host \
                -smp 2 \
                -drive format=raw,file=./my-gentoo.img,if=virtio \
                -m 2G \
                -kernel ./kernel-${KVERS} \
                -initrd ~/my-initramfs.cpio.gz \
                -append "root=/dev/vda console=ttyS0 video-nofb
resolution=1024x768" \
                -serial stdio \
                -device virtio-net,netdev=net0 \
                -netdev tap,id=net0,ifname=tap0,script=no,downscript=no \
                --enable-kvm

Here are the interfaces on my machine.

br0: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST>  mtu 1500
        inet 192.168.20.10  netmask 255.255.255.0  broadcast 192.168.20.255
        inet6 fe80::d12a:e3ff:fb6f:e04  prefixlen 64  scopeid 0x20<link>
        ether d2:ba:e6:6f:0d:04  txqueuelen 1000  (Ethernet)
        RX packets 692804  bytes 1418663819 (1.3 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 567291  bytes 79463836 (75.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::96de:82fa:fcb3:4cce  prefixlen 64  scopeid 0x20<link>
        ether 94:de:80:b4:7c:c6  txqueuelen 1000  (Ethernet)
        RX packets 1382169  bytes 1490274329 (1.3 GiB)
        RX errors 0  dropped 63080  overruns 0  frame 0
        TX packets 570940  bytes 82446260 (78.6 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xf3100000-f3120000

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 13  bytes 1288 (1.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 13  bytes 1288 (1.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

tap0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::14ee:abfe:fbc3:380f  prefixlen 64  scopeid 0x20<link>
        ether 16:9e:af:b6:48:0f  txqueuelen 1000  (Ethernet)
        RX packets 2731  bytes 225413 (220.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 46104  bytes 3560635 (3.3 MiB)
        TX errors 0  dropped 2 overruns 0  carrier 0  collisions 0

tap1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether b2:ed:96:b4:8c:6e  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Anyone have thoughts where I'm going wrong?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]