From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUc0h-000661-Rt for qemu-devel@nongnu.org; Tue, 23 Apr 2013 08:07:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUc0g-0006tl-FE for qemu-devel@nongnu.org; Tue, 23 Apr 2013 08:07:47 -0400 Date: Tue, 23 Apr 2013 14:07:34 +0200 From: Stefan Hajnoczi Message-ID: <20130423120734.GD2431@stefanha-thinkpad.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] About network bridge. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Yaodong Yang Cc: "qemu-devel@nongnu.org" , "qemu-discuss@nongnu.org" On Mon, Apr 22, 2013 at 09:54:02AM -0500, Yaodong Yang wrote: > 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? libvirt (virsh and virt-manager) configures networking for you. When you run QEMU manually you need to do things yourself. If you are running x86 guests on x86 hosts, you should probably use virsh or virt-manager instead of manually running QEMU. It will save a lot of time. If you need to test custom QEMU binaries, you can simply edit the domain XML tag using virsh edit. If you really want to manually run QEMU then please read the man page. Also see http://qemu-project.org/Documentation/Networking and then do a web search. There are plenty of guides to setting up networking with QEMU. Stefan