[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] No internet access from centos 7 minimal guest
From: |
Thomas Huth |
Subject: |
Re: [Qemu-discuss] No internet access from centos 7 minimal guest |
Date: |
Mon, 28 Aug 2017 19:28:13 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
On 28.08.2017 13:56, Mahmood wrote:
> Hi,I have installed a Centos 7 minimal installation with the following command
> qemu-system-x86_64 -m 4000 -smp 2 -hda centos7ser.img -boot c -usbdevice
> tablet -enable-kvm -device e1000,netdev=host_files -netdev
> user,net=10.0.2.0/24,id=host_files,restrict=off
> Inside the guest, I see this network information
> # ip addr show1: lo: .....
> 2: ens3:<BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP
> qlen 1000 link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff inet
> 10.0.2.15/24 brd 10.0.2.255 scope global dynamic ens3 valid_lft
> 86147sec preferred_lft 86147sex inet6 fe80::25fb:513b:9b8b:3cd8/64 scope
> link valid_lft forever preferred_lft forever
>
> However, the ping to 8.8.8.8 doesn't work.Did I miss anything in the
> configuration?
ICMP (i.e. ping) normally does not work with "-netdev user". You either
have to use tap networking or you've got to work around this problem
like it is described here:
https://wiki.qemu.org/Documentation/Networking#Enabling_ping_in_the_guest.2C_on_Linux_hosts
Thomas