pete (28th October 2009)

It's a relatively minor annoyance, but I wondered if anyone's found a non-manual workaround for this? Specifically on Xen.
A physical or vmware to xen conversion creates a new virtual nic, which gets a dhcp lease instead of the static ip set to the physical card. When Xen tools is installed, the card changes again (default virtual realtek to Xen PV Nic) and grabs a dhcp lease again.
I'm going to end up scripting something that reapplies the original ip settings and forces re-registration in dns based on hostname aren't I?
I think you will need to script it, the script would look something like this:
netsh interface ip set address "Local Area Connection" static 192.168.0.1 255.255.255.0 192.168.0.254 1
netsh interface ip set dns "Local Area Connection" static 192.168.1.200 primary
ipconfig /registerdns
This may also help
Cool Things to Do with Netsh
pete (28th October 2009)

Didn't know that worked on remote machines as well.
*wanders off to poke around*

Hmm I know that SCVMM migrations keep ip/mac but I am not sure if it outputs xen. It def can output a vmware image though I am sure so you could try it?
There are currently 1 users browsing this thread. (0 members and 1 guests)