Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Networking on Gnome-boxes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ShanaXXII
Apprentice
Apprentice


Joined: 29 Jun 2014
Posts: 283
Location: Canada

PostPosted: Tue Jan 22, 2019 6:05 pm    Post subject: Networking on Gnome-boxes Reply with quote

Hey,

I'm trying to get networking to work on this vm of mine running on ubuntu 10.04 linux-2.6.32 on Gnome-Boxes.
And I'm kind of confused how I'm suppose to achieve this?

I see a eth2 interface and I get an address back from it when I run
Code:
dhclient eth2

But other than that, pinging anything does not work.
It seems the ping detects the site, but the vm cannot receive anything:
Code:
~ $ ping www.google.com
PING www.google.com (172.217.10.99) 56(64) bytes of data.


I saw this wiki: https://wiki.gentoo.org/wiki/QEMU/Options#Networking
but am not really sure where I'm suppose to pass these arguments into gnome-boxes..?

What configurations am I missing?
Back to top
View user's profile Send private message
papas
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2014
Posts: 141
Location: Athens

PostPosted: Tue Jan 22, 2019 7:40 pm    Post subject: Reply with quote

i think Qemu does not support ICMP, you have to find another way to test your connection.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21593

PostPosted: Wed Jan 23, 2019 3:03 am    Post subject: Reply with quote

ICMP works fine in Qemu VMs, if you use the right type of virtual NIC.

OP: why are you using such ancient guests? How did you configure the VM?
Back to top
View user's profile Send private message
ShanaXXII
Apprentice
Apprentice


Joined: 29 Jun 2014
Posts: 283
Location: Canada

PostPosted: Wed Jan 23, 2019 3:57 am    Post subject: Reply with quote

Thanks everyone!

I was trying to get it running because my operating systems course at my University made us program on linux-2.6.

The starter code won't compile on new systems because there are so many deprecated code in the starter code.
I really hoped we could've developed on a newer system. Really disappointed ):

And even though, I used gentoo for a while, kernel programming is still new to me haha xD
Back to top
View user's profile Send private message
papas
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2014
Posts: 141
Location: Athens

PostPosted: Wed Jan 23, 2019 4:42 pm    Post subject: Reply with quote

Hu wrote:
ICMP works fine in Qemu VMs, if you use the right type of virtual NIC.

How you do that?
Any guide i found (and i have follow it) i cant "pinging" ...
Which NIC i have to use?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21593

PostPosted: Thu Jan 24, 2019 2:43 am    Post subject: Reply with quote

I like the virtio NIC, since a guest with the proper virtio drivers is more efficient with it than with software emulation of hardware that actually exists.
Code:
-device virtio-net-pci,netdev=lan,mac=52:54:00:00:00:02 -netdev tap,id=lan,script=no,downscript=no,ifname=tap01
Back to top
View user's profile Send private message
papas
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2014
Posts: 141
Location: Athens

PostPosted: Thu Jan 24, 2019 4:53 am    Post subject: Reply with quote

Thank you
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum