pete Posted October 28, 2009 Posted October 28, 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?
wrights Posted October 28, 2009 Posted October 28, 2009 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
wrights Posted October 28, 2009 Posted October 28, 2009 This may also help Cool Things to Do with Netsh 1
pete Posted October 28, 2009 Author Posted October 28, 2009 Didn't know that worked on remote machines as well. *wanders off to poke around*
ZeroHour Posted October 28, 2009 Posted October 28, 2009 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?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now