xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Andy Smith <andy@strugglers.net>
To: xen-devel@lists.xensource.com
Subject: Re: [Xen-users] xl and vifname
Date: Wed, 28 Dec 2011 15:37:58 +0000	[thread overview]
Message-ID: <20111228153758.GE4221@bitfolk.com> (raw)
In-Reply-To: <1325085957.24422.17.camel@liuw-desktop>

Hi Wei,

On Wed, Dec 28, 2011 at 03:25:57PM +0000, Wei Liu wrote:
> Does xm serve your purpose -- specifying dom0 network interface of a
> given name (rather then using vifX.X)?

Yes. We need to statically configure the vif names in order to have
them be the same every time, and to know which virtual machine
configuration they belong to. Not have them change every time the VM
is restarted.

(Yes I am aware that it would be possible to translate the vifX.Y
string into a domU name and go from there, but that adds a lot of
complexity)

> If it can serve you purpose, can you verify which network backend you
> are using by running following command:
> 
> $ ps aux | egrep '(qemu|net)'

This didn't match anything. These are PV domUs and there isn't a
process in dom0 for each domU's netback. This is 4.0.1 on Debian
stable.

> If you're running netback and you can use you preferred name for the
> interface, then a similar fix for xl should be possible.

Something like:

    vif = [ "mac=00:16:3e:8e:ac:0a, ip=192.168.82.198, vifname=vm-85" ]

has worked for us for ~5 years through Xen 3.x and 4.x.

Cheers,
Andy

  reply	other threads:[~2011-12-28 15:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20111217135342.DDB9E3806B9@mx1.internecto.net>
     [not found] ` <CAFivhP=Uw=e8M_JsE2_fRpT5KtqYuKEf_Jdm2aEQz17iT_vHMw@mail.gmail.com>
2011-12-28 11:19   ` [Xen-users] xl and vifname Pasi Kärkkäinen
2011-12-28 13:59     ` chris
2011-12-28 14:31     ` Andy Smith
2011-12-28 15:02       ` Wei Liu
2011-12-28 15:10         ` Andy Smith
2011-12-28 15:14           ` Andy Smith
2011-12-28 15:25           ` Wei Liu
2011-12-28 15:37             ` Andy Smith [this message]
2011-12-28 15:56               ` Wei Liu
2012-01-05 18:28                 ` Stefano Stabellini
2012-01-05 18:47                   ` Stefano Stabellini

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=20111228153758.GE4221@bitfolk.com \
    --to=andy@strugglers.net \
    --cc=xen-devel@lists.xensource.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).