qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Yaodong Yang <yaodong.yangy@gmail.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"qemu-discuss@nongnu.org" <qemu-discuss@nongnu.org>
Subject: Re: [Qemu-devel] About network bridge.
Date: Tue, 23 Apr 2013 14:07:34 +0200	[thread overview]
Message-ID: <20130423120734.GD2431@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <F2502C63-0432-43CE-8E6F-6C7FF4EDC41F@gmail.com>

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

      reply	other threads:[~2013-04-23 12:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-22 14:54 [Qemu-devel] About network bridge Yaodong Yang
2013-04-23 12:07 ` Stefan Hajnoczi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130423120734.GD2431@stefanha-thinkpad.redhat.com \
    --to=stefanha@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-discuss@nongnu.org \
    --cc=yaodong.yangy@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).