[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: "Jan Marquardt" <jm@xxxxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>



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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.