WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] how to specify vif device name?

To: "Jan Marquardt" <jm@xxxxxxxxxxx>
Subject: Re: [Xen-users] how to specify vif device name?
From: "Rudi Ahlers" <rudiahlers@xxxxxxxxx>
Date: Wed, 13 Aug 2008 14:13:50 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 13 Aug 2008 05:14:32 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=jQZH6ut4oC34HaXs36+f/3S+xYpFTep2dZ56iE3CdnM=; b=EDEYAKJKkutiN0KVTAeh/qNTriQLZYn7sFOy+Je/U1vadszvWRfm8FHWoxSF8U9tLS gAzwBVpX3IEhO9EGpx7txHubRfdpRzX9P0gWOT4j/XQvBnQ/TuYD/iEg016qEXsw5pE9 KibUlOA6mIVK3YPW/ycpj3lwqa+yep4t+TnGM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=j7vyUKfphWJGL2v/86UQy+7aFlduyVeJMh4UKzbz9JfFgMfEgI7bw8U/fD695tF5l0 JjM+Ql2HYy5Ap4UpHewSpQI0DzPFMJErfDphi3b1IjyBFel9K/dr3+TAizk/KDhnXVhE QOA6vA5dETdJUgQrqlP2QBJh7/cWFJLqWu5gI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <48A2CDA7.7070008@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <695200da0808130424s425d0c5fnede97633a46a0ee@xxxxxxxxxxxxxx> <48A2CDA7.7070008@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On Wed, Aug 13, 2008 at 2:03 PM, Jan Marquardt <jm@xxxxxxxxxxx> wrote:
Hi Rudi,

the vif name depends on the id of the domain. It is named following this pattern:   vif<domid>.<interface>

For example:

If you have a domain test with the id 13 and two network interfaces, you will see the both following vifs in dom0:

vif13.0
vif13.1


Regards,

Jan

--
Artfiles New Media GmbH | Spaldingstr. 160 b | 20097 Hamburg
Tel: 040 - 32 02 72 90 | Fax: 040 - 32 02 72 95
E-Mail: support@xxxxxxxxxxx | Web: http://www.artfiles.de
Geschäftsführer Carsten Bals | Handelsregister Hamburg - HRB 81478


Rudi Ahlers wrote:
Hi all

Is it possible to specify which vif device a domU VM should use? I see that
it sometimes change around, depending on which order they were started in.
So, how do I tell XEN to always use the same vif for the same domU ?



------------------------------------------------------------------------

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

Hi Jan

The domain ID changes from time to time, depending on which order the domains were started / restarted
So, this is not very reliable, especially for cacti stats - which uses the device name for traffic graphs



# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0      512     1 r-----  14884.2
vm01                                      63      511     2 -b----  12311.3

#xm create pluto
Using config file "/etc/xen/pluto".

Started domain pluto

# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0      512     1 r-----  14891.3
pluto                                     67      256     2 -b----      0.2
vm01                                      63      511     2 -b----  12313.5
[root@venus ~]# xm shutdown vm01
[root@venus ~]# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0      512     1 r-----  14917.6
pluto                                     67      255     2 -b----      9.6
[root@venus ~]# xm create vm01
Using config file "/etc/xen/vm01".
Started domain vm01
[root@venus ~]# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0      512     1 r-----  14918.4
pluto                                     67      255     2 -b----      9.6
vm01                                      68      512     2 -b----      0.2
[root@venus ~]#                                                                                        



So, I'd rather want to give the devices their own names, same as you do with Linux (eth0 / eth0:1 / eth0:2 / etc)
--

Kind Regards
Rudi Ahlers
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users