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,