Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 180923

How to enable vMotion on VirtualNic?

$
0
0

Hi,

I can list selected VirtualNic if vMotion is enabled via API. I can list all nics that can be used for vMotion via:

HostVMotionInfo vMotionInfo = hs.getConfig().getVmotion();

for (HostVirtualNic nic : vMotionInfo.getNetConfig().getCandidateVnic()) {
  System.out.println(nic.getSpec().getPortgroup() + " : " + nic.getKey());
}

But how do I enable vMotion on a nic?

This change vMotionInfo.getNetConfig().setSelectedVnic((vMotionInfo.getNetConfig().getCandidateVnic()[0]).getKey()); does not affect ESXi Any suggestions?


Viewing all articles
Browse latest Browse all 180923

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>