qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] How to make TCP/IP applications run on guest OS?
@ 2012-12-19 13:54 GaoYi
  2013-01-02 16:00 ` Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: GaoYi @ 2012-12-19 13:54 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 577 bytes --]

Hi all,

   I have bridged the network of the host. There was one br0 and several
taps on it. When I started up a guest using:

                     #kvm -hda ubuntu.img -localtime -m 1G  -net nic, -net
tap,ifname=tap0,script=no

   The guest can ping to other VMs or physical PCs within the same LAN.
However, when I tried to communicate with other VMs/PCs using TCP/IP,
the incoming IP at the receiver side is the same as the host IP instead of
the VM's IP. Then how to configure the network so that
the TCP/IP applications run well just like the phsical PC?

   Thanks,

Yi

[-- Attachment #2: Type: text/html, Size: 720 bytes --]

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

* Re: [Qemu-devel] How to make TCP/IP applications run on guest OS?
  2012-12-19 13:54 [Qemu-devel] How to make TCP/IP applications run on guest OS? GaoYi
@ 2013-01-02 16:00 ` Stefan Hajnoczi
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2013-01-02 16:00 UTC (permalink / raw)
  To: GaoYi; +Cc: qemu-devel

On Wed, Dec 19, 2012 at 09:54:32PM +0800, GaoYi wrote:
> Hi all,
> 
>    I have bridged the network of the host. There was one br0 and several
> taps on it. When I started up a guest using:
> 
>                      #kvm -hda ubuntu.img -localtime -m 1G  -net nic, -net
> tap,ifname=tap0,script=no
> 
>    The guest can ping to other VMs or physical PCs within the same LAN.
> However, when I tried to communicate with other VMs/PCs using TCP/IP,
> the incoming IP at the receiver side is the same as the host IP instead of
> the VM's IP. Then how to configure the network so that
> the TCP/IP applications run well just like the phsical PC?

libvirt/virt-manager can set up the network for you.  I suggest using
them if you're having issues configuring bridging.

There is some basic information here but you'll find specifics if you do
a web search for "qemu bridging" or similar:
http://wiki.qemu.org/Documentation/Networking

Stefan

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

end of thread, other threads:[~2013-01-02 16:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-19 13:54 [Qemu-devel] How to make TCP/IP applications run on guest OS? GaoYi
2013-01-02 16:00 ` Stefan Hajnoczi

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).