Jump to content


Photo

Guest Windows networking

Started by Jonathan Camirand , 19 December 2016 - 01:06 AM
4 replies to this topic

Jonathan Camirand Members

Jonathan Camirand
  • 2 posts

Posted 19 December 2016 - 01:06 AM

Hi,

 

We have problem with XenServer and Windows guest VMs.

We created a script to create a lots of Windows VM from a template.  The script pass network informations ( IP/Gateway/DNS ) and others informations with vm-param to each VMs.  The template is syspreped and we created a powershell script to config the VM at the first boot.

 

The problem is when the VM was created and started, the IP settings is static with correct IP.  But when we reboot the VM, the Windows IP setting switch to DHCP.  But in the Network tab on XenCenter, the address is good!

 

Thanks for your help!

 

Jonathan

 



Alan Lantz Members

Alan Lantz
  • 6,685 posts

Posted 19 December 2016 - 03:51 AM

likely the nic is detected again when the VM boots. Can you create scripts to assign the ip address once the VM OS is up and running ?

 

--Alan--



Antonio Lopez Members

Antonio Lopez
  • 35 posts

Posted 19 December 2016 - 04:18 AM

Hi,

 

is it possible that after the first boot the NIC of the VM changes?

I mean that the NIC from the xentools is installed by windows after the first boot.

 

Perhaps the following happens:

At the first boot you set the IP on the QEMU NIC (Realtek).

After the boot windows detects the Drivers of the xentools NIC.

At second boot the QEMU NIC (Realtek) has the IP and the xentools NIC is at DHCP.

 

 

You can check this theory:

 

Assign the IP manually after the second boot.

When you get an message that this IP is already in use by another adapter then I'm right.



Jonathan Camirand Members

Jonathan Camirand
  • 2 posts

Posted 16 February 2017 - 05:41 PM

The problem was the XenTools.  I disabled the XenTools update in the registry.

Thanks for your help!



Alan Lantz Members

Alan Lantz
  • 6,685 posts

Posted 17 February 2017 - 08:04 PM

Awesome, glad you found a solution.

 

--Alan--