Xu, Jiajun wrote> > David Edmondson <> scribbled on : > > > Xu, Jiajun wrote: > >> David Edmondson <> scribbled on : > >> > >>> Xu, Jiajun wrote: > >>>> I have a machine with three network cards, and the third card(named > >>>> e1000g2) is in use now. I want to use e1000g2 as default NIC when I > >>>> create Guest. How can I change the default NIC? I can override the > >>>> default value of config/default-nic property of > >>>> svc:/system/xvm/xend. But xend still use e1000g0 when creating > >>>> Guest. > >>> Either you didn't set it properly or there is a bug. > >>> > >>> Can you tell us the steps you took to set it? > >>> > >> My steps following: > > > > That looked fine. Did you reboot after changing the value? It occurs > > to me that the scripts cache the value of default-nic (or whatever > > they guess) in xenstore, which is perhaps the cause of the problem. > > > > After reboot xend still use e1000g0. :(
I think the default nic is cached in the "xenstore" registry Check with "/usr/lib/xen/bin/xenstore-read device-misc/vif/default-nic". You probably have to remove that property from xenstore, so that a new default nic is determined from svcprops or dladm (and written to xenstore). "/usr/lib/xen/bin/xenstore-rm device-misc/vif/default-nic" should remove the old default nic key/value. This message posted from opensolaris.org _______________________________________________ xen-discuss mailing list [email protected]
