Static IP settings issue in SCVMM 2012R2

Hi,

I am using SCVMM 2012R2 and my Virtual machine is windows server 2008 R2 standard. 

I have configured a static IP pool with following IP address range - 

10.20.1.1 to 10.20.1.254

I have not configured DNS and Gateway. 

I created VM and fired following commands

$Adapter = Get-SCVirtualNetworkAdapter -VM "vmname"

$staticIPPool = Get-SCStaticIPAddressPool -Name "poolname"

Grant-SCIPAddress -GrantToObjectType "VirtualNetworkAdapter" -GrantToObjectID $vm.VirtualNetworkAdapters[0].ID -StaticIPAddressPool $staticIPPool -IPAddress 10.20.1.3

I also tried commands like Set-SCVirtualNetworkAdapter as follows

Set-SCVirtualNetworkAdapter -IPv4AddressType Static -IPv6AddressType Dynamic -VirtualNetworkAdapter $Adapter[0] -EnableMACAddressSpoofing $false -EnableGuestIPNetworkVirtualizationUpdates $false -EnableVMNetworkOptimization $true -VMMServer scvmm-pod1-wt3.csm.bmc.com -VMSubnet $VMSubnet -IPv4Addresses "10.1.1.2"

The command works fine and it returns valid object.

but when I power ON the VM, the IP address is not set in the static IP settings. 

Thanks,

March 27th, 2015 5:56am

This will not actually configure the guest OS TCP/IP settings. This only reserves the IP address from the pool and assigns the reservation to the network card. It will assign only as part of creating a VM from a template with the IP address settings set appropriately.
Free Windows Admin Tool Kit Click here and download it now
March 27th, 2015 2:38pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics