[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] No internet access from centos 7 minimal guest
From: |
Mahmood |
Subject: |
Re: [Qemu-discuss] No internet access from centos 7 minimal guest |
Date: |
Tue, 29 Aug 2017 16:34:17 +0000 (UTC) |
Yes you are right. As I ping google.com, I see it finds the IP address but ping
doesn't work. So, that mean network is fine.
Thank you very much
Regards,
Mahmood
On Tuesday, August 29, 2017, 2:03:12 PM GMT+4:30, Peter Maydell
<address@hidden> wrote:
On 28 August 2017 at 18:28, Thomas Huth <address@hidden> wrote:
> 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:
...or just don't worry about the fact that ping doesn't work.
TCP and UDP will be fine, and there aren't many situations
where the guest really needs ping.
thanks
-- PMM