qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] About network bridge.
@ 2013-04-22 14:54 Yaodong Yang
  2013-04-23 12:07 ` Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: Yaodong Yang @ 2013-04-22 14:54 UTC (permalink / raw)
  To: qemu-discuss@nongnu.org, qemu-devel@nongnu.org; +Cc: Yaodong Yang

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

Hello everyone,

Thanks for reading my email. I got a question about the network bridge in qemu-kvm.

When I start my vm using virsh start vm2 or virt-manager, the vm's network is working. I can access the internet within the vm. 
However, we I start the same vm using qemu-system-x86_64 vm2.img -m 1024. The vm can run but without internet access. I do not know the reason, can someone give me a direction?

The procedure to set up the system.
1. install the host os, set up bridge networking.
2. use virt-manager create guest vm, choose bridge network in the creation option of virt-manager.
3. run the guest vm.

My system configuration is as follows:

1. Host OS, Ubuntu 12.10 server with a kubuntu-desktop.
2. QEMU-KVM version is 1.2.0.
3. Host network configuration is bridge type, as follows:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto em1
iface em1 inet manual

auto br0
iface br0 inet static
        address 192.168.1.2
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 129.93.6.189

        bridge_ports em1
        bridge_fd 9
        bridge_hello 2
        bridge_maxage 12
        bridge_stp off

4. Guest OS ubuntu-server 12.10. network configuration is as follows:
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.12
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 129.93.6.189

Thanks!

Best,
Yaodong
----------------------------------------------
Yaodong Yang
Ph.D. Student
Department of Computer Science & Engineering
University of Nebraska-Lincoln 
Email: yaodong.yangy@gmail.com OR yyang@cse.unl.edu





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

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

end of thread, other threads:[~2013-04-23 12:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-22 14:54 [Qemu-devel] About network bridge Yaodong Yang
2013-04-23 12:07 ` 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).