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

Re: [Xen-users] Naming NICs in PV guest



On Tue, 2014-04-08 at 11:48 +0100, Simon Hobson wrote:
> A quick question I couldn't find the answer to :
> 
> I have a Debian Wheezy PV guest, running on a Debian Wheezy host with
> Xen 4.0.1 and XM tools. On my physical boxes I can rename NICs by
> changing entries in /etc/udev/rules.d/70-persistent-net.rules, but on
> my guests this file doesn't get populated (it exists, but just has a
> header).
> 
> Am I missing something simple here ?

You can just put your own rules in there, or any
other /e/u/r.d/XX-foo.rules, I think. You can use the stuff on your
physical box as a template.

I think the reason the automatic generation of persistent-net rules
skips vifs is that if you don't specify a mac address in your config
then you get a random mac each time, which means on rebooting you get
eth0->eth1->eth2 etc which is pretty ugly.

I guess if you can find that script you might be able to tweak that
behaviour.

>  And especially, any possibility of naming them via the "vif=..."
> stanza in guest config file on the host ?

I'm afraid not.

> Mostly it's not too big of a deal, but I'm just fiddling with some
> changes and have a guest with 6 virtual NICs which makes it harder to
> keep track of.

I don't know if you can also rename in /etc/network/interfaces?

Ian.


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

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