From: ravi kerur Subject: Re: Q on vif interface creation Date: Mon, 21 Dec 2009 07:49:20 -0800 Message-ID: References: <20091221083405.GG16033@reaktio.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1798123374==" Return-path: In-Reply-To: <20091221083405.GG16033@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: =?ISO-8859-1?Q?Pasi_K=E4rkk=E4inen?= Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1798123374== Content-Type: multipart/alternative; boundary=00163683241065efb6047b3f082f --00163683241065efb6047b3f082f Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello Pasi, Thanks for your inputs. I do not see "xm" cmd -bash: xm: command not found I do see "xe" cmd which has vif-unplug/vif-plug and vif-destroy/vif-create. I detached a vif via unplug and destroyed it. When creating a new vif, I do not see the option of vifname in it xe help vif-create command name : vif-create reqd params : device, network-uuid, vm-uuid optional params : mac, mtu description : Create a VIF. Appropriate values for the device are listed in the parameter 'allowed-VIF-devices' on the VM. If specified, the MAC parameter is of the form aa:bb:cc:dd:ee:ff. If MAC is not specified the server will choose an appropriate MAC automatically. Inputs appreciated. Thanks -RK On Mon, Dec 21, 2009 at 12:34 AM, Pasi K=E4rkk=E4inen wrote: > On Sun, Dec 20, 2009 at 09:06:45PM -0800, ravi kerur wrote: > > Hello, > > > > Need inputs on creating "vif" interface with a different name i.e wh= en > a > > domU is installed, vif: is created by default in > dom0 > > and domU which then triggers xenbus state-machine and communication = is > > established. We want to change the name to be > "ncr:", > > the reason being, we are developing our driver specific netfront and > > netback which will monitor "ncr" to trigger xenbus state-machine. I = am > not > > sure where to start in-order to make these changes. Inputs will be > very > > much appreciated. > > > > Hello, > > You can use the "vifname" option on the vif line. > See "xm create --help_config" for more information. > > -- Pasi > > --00163683241065efb6047b3f082f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello Pasi,


Thanks for your inputs. I do not see "xm" = cmd

-bash: xm: command not found

I do see "xe" cmd= which has vif-unplug/vif-plug and vif-destroy/vif-create. I detached a vif= via unplug and destroyed it. When creating a new vif, I do not see the opt= ion of vifname in it

xe help vif-create
command name=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 : v= if-create
=A0=A0=A0=A0=A0=A0=A0 reqd params=A0=A0=A0=A0 : device, networ= k-uuid, vm-uuid
=A0=A0=A0=A0=A0=A0=A0 optional params : mac, mtu
=A0= =A0=A0=A0=A0=A0=A0 description=A0=A0=A0=A0 : Create a VIF. Appropriate valu= es for the device are listed in the parameter 'allowed-VIF-devices'= on the VM. If specified, the MAC parameter is of the form aa:bb:cc:dd:ee:f= f. If MAC is not specified the server will choose an appropriate MAC automa= tically.

Inputs appreciated.

Thanks
-RK

On Mon, Dec 21, 2009 at 12:34 AM, Pasi K=E4rkk=E4inen <pasik@iki.fi>= wrote:
On Sun, Dec 20, 2009 at 09:06:45PM -0800, ravi kerur wrote:
> =A0 =A0Hello,
>
> =A0 =A0Need inputs on creating "vif" interface with a differ= ent name i.e when a
> =A0 =A0domU is installed, vif<dom-id>:<intf-num> is create= d by default in dom0
> =A0 =A0and domU which then triggers xenbus state-machine and communica= tion is
> =A0 =A0established. We want to change the name to be =A0"ncr<d= om-id>:<intf-num>",
> =A0 =A0the reason being, we are developing our driver specific netfron= t and
> =A0 =A0netback which will monitor "ncr" to trigger xenbus st= ate-machine. I am not
> =A0 =A0sure where to start in-order to make these changes. Inputs will= be very
> =A0 =A0much appreciated.
>

Hello,

You can use the "vifname" option on the vif line.
See "xm create --help_config" for more information.

-- Pasi


--00163683241065efb6047b3f082f-- --===============1798123374== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1798123374==--