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