Skip to contentSkip to conversation

vde networking

Qemu-devel sagsdga adfahdf 3 participants 3 messages Oct 5, 2004

lore
Share & tools
lore
#0 lore raw

----- Original Message -----
From: [email protected] (Renzo Davoli)
Date: Tue, 5 Oct 2004 06:02:55 +0200
To: [email protected]
Subject: Re: [Qemu-devel] vde networking

Quoted 12 lines · sagsdga adfahdf
Quoted 9 lines

I'm trying to run qemu with vde networking from
http://vde.sourceforge.net

but when I try to run vde, it fails with this error

# vdeq qemu myimage.img
connect: No such file or directory

any ideas?

You have to start a vde_switch before.

Quoted 9 lines

e.g.

# vde_switch -tap tap0 -daemon
# chmod 666 /tmp/vde.ctl

then there is no need for root privileges to start vde:

% vdeq qemu myimage.img

That allows me to boot into the guest OS, then ifconfig, then ping localhost works. Then pinging the real router by its IP address does not work ?

Signature · 3 lines
_______________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10
#1 lore raw
Quoted 2 lines

That allows me to boot into the guest OS, then ifconfig, then ping localhost works. Then pinging the real router by its IP address does not work ?

Now your host machine is a router between the vde network and the real network.

follow a HOWTO on linux networking to find out HOW to configure a router.

e.g. if you want to see the vde network as an internal masqueraded net you can use something like

# echo "1" > /proc/sys/net/ipv4/ip_forward
# modprobe iptable_nat
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

renzo

#2 lore raw
In reply to sagsdga adfahdf
Quoted 4 lines · sagsdga adfahdf

That allows me to boot into the guest OS, then ifconfig, then ping localhost works. Then pinging the real router by its IP address does not work ?

You need to set up routing (and ip forwarding and possibly NAT). This is OS dependant. See the VDE-HOWTO for details.

Signature · 2 lines
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.