VMware Cloud Community
ludovic112
Contributor
Contributor
Jump to solution

issue vmotion - Connected box of network card is uncheck after vmotion

Hi All,

I have a strange issue in DRS Cluster / With Rules on VM we make vmotion

After make vmotion, the vm not responding in ping, in first time i think it's network trunk was not good.

A make vmotion on source host, and not work.

After check configuration of the vm, I see the "Connects" box in Networks adapter is not checked.

The box was check before, because the machine reply to ping before the vmotion.

My question it's very simple have you alredy have this comportement ?

I use the following script to make operation.

Thanks  For your help

Ludovic112

$pViServer="<servername>"


if($viCon.IsConnected -eq $false -or $viCon.IsConnected -eq $null )
    {
        $ViCred=get-credential
        $viCon=Connect-viServer -server $pViServer -Credential $viCred

    }
   
$vmName="<vmname>"


$maVm = Get-vm $vmName


$cluster = get-cluster "<clustername>"
$Listvmhosts = $cluster | Get-VMHost

foreach( $vmHost in $Listvmhosts)
{
    if($maVm.host.name -eq $Host.Name)
    {
        Write-Host "Nothing to do "  $maVm.host " - " $vmHost.Name
    }
    else
    {
        Write-Host "Migrate "  $maVm.name " to " $vmHost.Name
        Move-VM -VM $maVm -Destination $vmHost
        sleep -Seconds 60
    }

}

Reply
0 Kudos
1 Solution

Accepted Solutions
Rubeck
Virtuoso
Virtuoso
Jump to solution

If the Connected box gets uncheked after vMotion it sounds like the maximum number of ports configured for your vSwitch on your target hosts is being exceeded..

/Rubeck

View solution in original post

Reply
0 Kudos
2 Replies
Rubeck
Virtuoso
Virtuoso
Jump to solution

If the Connected box gets uncheked after vMotion it sounds like the maximum number of ports configured for your vSwitch on your target hosts is being exceeded..

/Rubeck

Reply
0 Kudos
ludovic112
Contributor
Contributor
Jump to solution

Hi Rubeck

It's  the issue, the server was confure to 512 but no reboot after change..

Switch Name    Num Ports   Used Ports  Configured Ports  MTU     Uplinks

vSwitch1       64          58          512               1500    vmnic1,vmnic3,vmnic7,vmnic9

Thanks

Ludovic

Reply
0 Kudos