Hello,
We’re in a bit of a quandary. Right now we have a Production Center and are trying to set up a DR. We switched to SLES from RedHat because it was included in the vSphere license. Then we got Veeam to do our backup and replication.
Well, Veeam will replicate our VMs, but it will not change the IPs for use in DR because they don’t support that on Linux. One of the guys was nice enough to give me a PowerCLI script
$cred = Get-Credential
$interface = Get-VMGuestNetworkInterface -VM lnx01 -GuestCredential ($cred) | ?{ $_.Ip -like "192.168.1.*"}
Set-VMGuestNetworkInterface -VMGuestNetworkInterface $interface -Ip 192.168.2.10 -Netmask 255.255.255.0 -Gateway 192.168.2.1 -GuestCredential $cred
The problem with this is the Get/Set-VMGuestNetworkInterface does not seem to work with SLES or Win2012.
https://www.vmware.com/support/developer/PowerCLI/PowerCLI51R2/html/Get-VMGuestNetworkInterface.html
“This cmdlet supports only Windows XP 32 SP3, Windows Server 2003 32bit SP2, Windows Server 2003 64bit SP2, Windows 7 64 bit, Windows Server 2008 R2 64bit and Redhat Enterprise 5 operating systems.”
We have too many machines to do this by hand when we need to fail over to DR. Does anyone have an idea of how I can do this?