qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] vde networking
@ 2004-10-05  2:59 sagsdga adfahdf
  2004-10-05  4:02 ` Renzo Davoli
  0 siblings, 1 reply; 7+ messages in thread
From: sagsdga adfahdf @ 2004-10-05  2:59 UTC (permalink / raw)
  To: qemu-devel

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?


-- 
_______________________________________________
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] vde networking
  2004-10-05  2:59 [Qemu-devel] vde networking sagsdga adfahdf
@ 2004-10-05  4:02 ` Renzo Davoli
  0 siblings, 0 replies; 7+ messages in thread
From: Renzo Davoli @ 2004-10-05  4:02 UTC (permalink / raw)
  To: qemu-devel

On Mon, Oct 04, 2004 at 09:59:39PM -0500, sagsdga adfahdf wrote:
> 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.

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

ciao
	renzo

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] vde networking
@ 2004-10-05 14:08 sagsdga adfahdf
  2004-10-05 19:41 ` Renzo Davoli
  2004-10-05 19:52 ` Jim C. Brown
  0 siblings, 2 replies; 7+ messages in thread
From: sagsdga adfahdf @ 2004-10-05 14:08 UTC (permalink / raw)
  To: qemu-devel


----- Original Message -----
From: renzo@cs.unibo.it (Renzo Davoli)
Date: Tue, 5 Oct 2004 06:02:55 +0200
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] vde networking

> On Mon, Oct 04, 2004 at 09:59:39PM -0500, sagsdga adfahdf wrote:
> > 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.
> 
> 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 ?


-- 
_______________________________________________
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] vde networking
  2004-10-05 14:08 sagsdga adfahdf
@ 2004-10-05 19:41 ` Renzo Davoli
  2004-10-05 19:52 ` Jim C. Brown
  1 sibling, 0 replies; 7+ messages in thread
From: Renzo Davoli @ 2004-10-05 19:41 UTC (permalink / raw)
  To: qemu-devel

> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] vde networking
  2004-10-05 14:08 sagsdga adfahdf
  2004-10-05 19:41 ` Renzo Davoli
@ 2004-10-05 19:52 ` Jim C. Brown
  1 sibling, 0 replies; 7+ messages in thread
From: Jim C. Brown @ 2004-10-05 19:52 UTC (permalink / raw)
  To: qemu-devel

On Tue, Oct 05, 2004 at 09:08:23AM -0500, sagsdga adfahdf wrote:
> 
> 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.

-- 
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] vde networking
@ 2004-10-06 22:47 sagsdga adfahdf
  2004-10-06 22:59 ` Jim C. Brown
  0 siblings, 1 reply; 7+ messages in thread
From: sagsdga adfahdf @ 2004-10-06 22:47 UTC (permalink / raw)
  To: qemu-devel


Now that I have vde networking operating properly with qemu, when I attempt to reboot the host, it hangs stating that it can't release tap0. How can I fix this?

-- 
_______________________________________________
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] vde networking
  2004-10-06 22:47 sagsdga adfahdf
@ 2004-10-06 22:59 ` Jim C. Brown
  0 siblings, 0 replies; 7+ messages in thread
From: Jim C. Brown @ 2004-10-06 22:59 UTC (permalink / raw)
  To: qemu-devel

On Wed, Oct 06, 2004 at 05:47:30PM -0500, sagsdga adfahdf wrote:
> 
> Now that I have vde networking operating properly with qemu, when I attempt to reboot the host, it hangs stating that it can't release tap0. How can I fix this?
> 

That is weird. What host OS are you using?

For me I just quit all the guests, then I kill vde_switch via a SIGTERM, (at
this point tap0 should be gone) and then I reboot. Of course I use Redhat which
has the ifdown script (sometimes I manually have to do "ifdown tap0" to get
it to go away).

-- 
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-10-06 23:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-05  2:59 [Qemu-devel] vde networking sagsdga adfahdf
2004-10-05  4:02 ` Renzo Davoli
  -- strict thread matches above, loose matches on Subject: below --
2004-10-05 14:08 sagsdga adfahdf
2004-10-05 19:41 ` Renzo Davoli
2004-10-05 19:52 ` Jim C. Brown
2004-10-06 22:47 sagsdga adfahdf
2004-10-06 22:59 ` Jim C. Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).