Skip to contentSkip to conversation

BSD network

Qemu-devel Taras 2 participants 4 messages May 30, 2004 – May 31, 2004

lore
Share & tools
lore

Taras

author
#0 lore raw

Hello,
Does anyone have networking working in freebsd or netbsd? I'm trying to do a netinstall. Using -pci and -user-net both freebsd & netbsd can obtain an ip over dhcp. However netbsd doesn't even seem to be able to do dns. Freebsd appears to be able to resolve the dns names of the servers, but can't login(tcp wont work?).

Both appear to be close to working. Is there anything one has to do to get BSDs to use the nic or is this a bug in qemu?

Taras

#1 lore raw
Quoted 2 lines · Taras

Hello,
Does anyone have networking working in freebsd or netbsd? I'm trying to do a netinstall. Using -pci and -user-net both freebsd & netbsd can obtain an ip over dhcp. However netbsd doesn't even seem to be able to do dns. Freebsd appears to be able to resolve the dns names of the servers, but can't login(tcp wont work?).

This may be related to the issue covered in the "Overpotimization" thread. Please verify if issuing the following command instead of plain "make" resolves the problem for you:

make CFLAGS="-O2 -g -Wall -fno-strict-aliasing

Signature · 1 line
Alexander E. Patrakov
author
#2 lore raw
Quoted 9 lines · Alexander E. Patrakov
Quoted 2 lines · Taras

Hello,
Does anyone have networking working in freebsd or netbsd? I'm trying to do a netinstall. Using -pci and -user-net both freebsd & netbsd can obtain an ip over dhcp. However netbsd doesn't even seem to be able to do dns. Freebsd appears to be able to resolve the dns names of the servers, but can't login(tcp wont work?).

This may be related to the issue covered in the "Overpotimization" thread. Please verify if issuing the following command instead of plain "make" resolves the problem for you:

make CFLAGS="-O2 -g -Wall -fno-strict-aliasing

On my system compiling qemu with anything other than default cflags makes it crash. I tried the above, and "-O1".

Using gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)

Taras

author
#3 lore raw

Re: [Qemu-devel] BSD network[repost]

In reply to Alexander E. Patrakov

Sorry Alex,
I meant to sent this email to the list.

looks like nameserver isn't being set properly for some reason
http://glek.net/~taras/netbsd-dhcp.png is what I get over dhcp. When I set the networking info by hand and try to ping 10.0.2.2 I get "ne2: remove transmit DMA failed to complete". However see below.

Quoted 9 lines · Alexander E. Patrakov
Quoted 2 lines · Taras

Hello,
Does anyone have networking working in freebsd or netbsd? I'm trying to do a netinstall. Using -pci and -user-net both freebsd & netbsd can obtain an ip over dhcp. However netbsd doesn't even seem to be able to do dns. Freebsd appears to be able to resolve the dns names of the servers, but can't login(tcp wont work?).

This may be related to the issue covered in the "Overpotimization" thread. Please verify if issuing the following command instead of plain "make" resolves the problem for you:

make CFLAGS="-O2 -g -Wall -fno-strict-aliasing

As reported earlier, this doesn't produce a working qemu here However
make CC="gcc -fno-strict-aliasing " seems to to make networking work! I get nice download speeds too.

Thanks a lot,
Taras