All of lore.kernel.org
 help / color / mirror / Atom feed
From: Charles Duffy <Charles_Duffy@messageone.com>
To: kvm@vger.kernel.org
Subject: Re: KVM bridge Networking and openvpn
Date: Mon, 08 Sep 2008 21:32:55 -0500	[thread overview]
Message-ID: <ga4n97$tf1$1@ger.gmane.org> (raw)
In-Reply-To: <905750.24870.qm@web35802.mail.mud.yahoo.com>

jd wrote:
> Now when I create new VM, using the command line...
> 
> qemu-system-x86_64 -net nic,vlan=0,macaddr=00:16:3e:70:8f:33 -net tap,vlan=0 -hda /mnt/vm_data/test_xp.hda.disk.xm -m 256
> 
> The VM does not seem to get the IP address :( (may be dhcp request is failing)

You aren't providing ifname or script arguments to your qemu -net tap; 
are you quite sure that tap1 is the device the qemu instance is 
creating? It would probably be safer to use "-net 
tap,vlan=0,script=/path/to/script", where the script in question looks 
like the following:

#!/bin/sh
/sbin/ifconfig "$1" 0.0.0.0 up
/usr/sbin/brctl addif br0 "$1"

BTW, you *do* have a DHCP server connected to the bridge somewhere that 
should be answering these requests, right? :)

Another thing -- use tcpdump or a similar tool to sniff the bridge on 
the host and see if you see DHCP requests from the client while it's 
coming up; if so, you know that you're bridged correctly; if not, you've 
got a place to start.


      reply	other threads:[~2008-09-09  2:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-09  1:30 KVM bridge Networking and openvpn jd
2008-09-09  2:32 ` Charles Duffy [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='ga4n97$tf1$1@ger.gmane.org' \
    --to=charles_duffy@messageone.com \
    --cc=kvm@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.