[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] RE: [Xen-users] how to specify vif device name?
> 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 That's going to be tricky. If netfront could publish something into the /sys entry for the device, eg domain_name=Pluto, then udev could take care of the device renaming, but netfront doesn't do that and I'm not even sure if that level of device driver has visibility to the /sys entries. And it would probably break the /etc/xen/scripts/* code. There are two approaches you could take: 1. Add some code to the appropriate script in /etc/xen/scripts to rename the device when the domain is created via the 'ip link set vifX.0 name pluto0' command. This might be tricky as the interface name (as vifX.0) is used in many places in those scripts and renaming it will confuse them. 2. Make cacti smarter about how it determines the interface name. I'm not familiar with cacti but under mrtg, if you are on the local machine (eg not using SNMP), you could just write a script to return the required results. Depending on how flexible cacti is, I'd take the latter approach. James _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |