You are not logged in.

#1 2012-04-17 15:54:39

vladimir_1922
Member
Registered: 2010-11-02
Posts: 50

Networking between host and qemu imag for telnet

Hello.

I want to start doing test and learning a bit about networking.

But I only have a computer, and it doesn't have even hardware emulation, making the use of any modern distro as a virtual machine painfuly slow.

So I downloaded a floppy distro.. and I manage to get a virtual network card working. But there is no ping between host and guest. I  can't Telnet neither, of course.


Qemu man page and google are confusing me a lot. It speack of redirecting ports.. no solution to that

I don t have firewall, as I don't have Internet at home.

What can i do now? :S

Thanks in advance

Offline

#2 2012-04-17 16:23:37

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Networking between host and qemu imag for telnet

Have a look at this section on Qemu's wiki page.


Burninate!

Offline

#3 2012-04-18 16:13:13

vladimir_1922
Member
Registered: 2010-11-02
Posts: 50

Re: Networking between host and qemu imag for telnet

No.

Device "br0" is not created, so it complains.

I followed the instructions on the gentoo wiki, to create it manually http://en.gentoo-wiki.com/wiki/KVM

I achieve to have a br0, tap0... but when i run at last the last script: " qemu-system-x86_64 -net nic -net tap,ifname="$IFACE" $*"

gives me: "qemu-system-x86_64: -net tap,ifname=tap0: Device 'tap' could not be initialized"


There is no way to avoid this "tap could not be initialized".

So I am basically stuck on this. I don't have a clue on how I can play a bit with networking, even a virtual network :'(

Offline

#4 2012-04-18 16:52:17

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Networking between host and qemu imag for telnet

Have you checked if it's not simply a permissions issue? Aka does it work if you use sudo?


Burninate!

Offline

#5 2012-04-18 19:44:59

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Networking between host and qemu imag for telnet

vladimir_1922, the moderators receiveived this report message from you:

Yes, I checked that too... No result.

Maybe it is an issue with /etc/rc.conf. Some months ago it changed on the format who manages the network. May it be outdated?

Obviously, you did inadvertently use the "Report" button to submit this.
But don't worry, this happens quite often. wink


To know or not to know ...
... the questions remain forever.

Offline

#6 2012-04-19 14:33:31

vladimir_1922
Member
Registered: 2010-11-02
Posts: 50

Re: Networking between host and qemu imag for telnet

I think I must stop drinking so much cofee on the afternoon, lol

Thank you very much for adding my reply!

bernarcher wrote:

vladimir_1922, the moderators receiveived this report message from you:

Yes, I checked that too... No result.

Maybe it is an issue with /etc/rc.conf. Some months ago it changed on the format who manages the network. May it be outdated?

Obviously, you did inadvertently use the "Report" button to submit this.
But don't worry, this happens quite often. wink


I tough a bit about the problem, and followed the steps on the Gentoo Wiki for sharing a conection between two guests, and I found the same problem, but with the vbe module being unabaible. After a bit of rage, I realized two possible workarounds:

First thing, is that I compile my kernel. As I don't have KVM or Hardware emulation, I just don't compile any virtual machine module, to save memory. BUT, I do have the /dev/net/tun device who qemu can't recognice (yes, I tried to run qemu as root), so It seems that it is compiled after all

The second thing, is that I also stripped the daemons and services at bootup, as I don't have Internet, or othercomputers, I don't need most of them. Between the services I don't start at bootup is the netwprk daemon... but if i try to start it, all it does is delay the bootup for almost 2 minutes looking for a network :S

So, I'll just copy my /etc/rc.conf, where I just did the changes of the wiki. Maybe I did something wrong, maybe I lack something.

Any help will be must appreciated

#
# /etc/rc.conf - Main Configuration for Arch Linux
#
# See 'man 5 rc.conf' for more details
#

# LOCALIZATION
# ------------
HARDWARECLOCK=
TIMEZONE="Europe/London"
KEYMAP="es"
#CONSOLEFONT="Lat2-Terminus16"
CONSOLEMAP=
LOCALE=
DAEMON_LOCALE="yes"
USECOLOR="yes"

# HARDWARE
# --------
MODULES=(snd_pcm_oss snd_mixer_oss snd_seq_oss bridge tun)
USEDMRAID="no"
USEBTRFS="no"
USELVM="no"

# NETWORKING
# ----------
HOSTNAME="arch.laptop"

interface=eth0
address=
netmask=
broadcast=
gateway=

NETWORK_PERSIST="no"

eth0="eth0 0.0.0.0"
br0="br0 192.168.0.3 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0 br0)
gateway="default gw 192.168.0.1"
ROUTES=(gateway)

# DAEMONS
# -------
#
DAEMONS=(syslog-ng !network crond)

Offline

Board footer

Powered by FluxBB