0

Is there a way to inject IP address and do network configuration of a CentOS VM running on Windows server 2008?

In Win2k12 there is SetGuestNetworkAdapterConfiguration using which IP address can be injected, I did not come across anything similar for win2k8.

I cannot use plink to run some script on guest to set IP as plink requires IP to connect. I can neither do PS-Remoting as the VM is a linux guest.

Have not found anything on net that says "no it's not possible". So, I want to confirm if it is possible.

slayerbot
  • 1
  • 1

2 Answers2

0

Cloud systems such as openstack (and Microsoft Azure) use cloud-init to provision those things. Cloud-init is fairly flexible and should allow you to for instance mount an iso into the vm with the provisioning info. I would look into that. It would require your VM templates to already be setup with cloud-init before you use them to spin VMs.

Trondh
  • 4,191
  • 23
  • 27
  • Thanks, but its not a cloud system. A physical win2k8 R2 machine which has HyperV running on it and has CentOS VM for which I need to set IP (The VM has integration services installed) – slayerbot Feb 10 '15 at 03:54
  • I'm not saying use a cloud system, I'm saying that there is a componen called cloud-init lots of cloud systems are using, and it would probably do what you need. – Trondh Feb 12 '15 at 06:06