Crear unVMkernelPort en vSwitch a través de la línea de comando:
esxcfg-vmknic --add --ip=x.x.x.x --netmask=x.x.x.x portgroup
esxcfg-vmknic --enable portgroup
Ejemplo:
esxcfg-vswitch –l (Enumerar vSwitch)
esxcfg-vswitch –a vSwitch1 (Crear vSwitch)
esxcfg-vswitch –A “ISCSI” vSwitch1 (Crear grupo de puerto)
esxcfg-vmknic -a -i 10.10.10.33 -n 255.255.255.0 ISCSI (Asignar IP)
esxcfg-vmknic –l (Enumerar VMkernelPort)
Nota: Se permite un solo puerto VMkernel por subred en un vSwitch de ESX/ESXi.
Si no logra establecer la puerta de enlace VMkernel porque no existen interfaces VMkernel en la misma red, consulte Unable to set VMkernel gateway as there are no VMkernel interfaces on the same network (1002662).
Si no puede cambiar el nombre del puerto VMkernel, consulte Unable to rename or delete a VMkernel Portgroup after upgrading to ESX 3.5 (1003933).
Habilite vMotion en vSwitch a través de la línea de comando:
vim-cmd hostsvc/vmotion/vnic_set [vnic]
vim-cmd hostsvc/vmotion/vnic_set vmk0
Deshabilitar el puerto vMotion:
vim-cmd hostsvc/vmotion/vnic_unset [vnic]
vim-cmd hostsvc/vmotion/vnic_unset vmk0
Verificar la configuración de vSwitch vMotion:
vim-cmd hostsvc/vmotion/netconfig_get
El resultado es similar a:
[root@esxserver root]# vim-cmd hostsvc/vmotion/netconfig_get
(vim.host.VMotionSystem.NetConfig) {
dynamicType = <unset>,
candidateVnic = (vim.host.VirtualNic) [
(vim.host.VirtualNic) {
dynamicType = <unset>,
device = "vmk0",
key = "key-vim.host.VirtualNic-vmk0",
portgroup = "ISCSI",
spec = (vim.host.VirtualNic.Specification) {
dynamicType = <unset>,
ip = (vim.host.IpConfig) {
dynamicType = <unset>,
dhcp = false,
ipAddress = "xx.xx.xx.xx",
subnetMask = "255.255.255.0",
},
mac = "xx:xx:xx:xx:xx:xx",
},
port = <unset>,
}
],
selectedVnic = <vim.host.VirtualNic:key-vim.host.VirtualNic-vmk0>,
}
Nota: Si ve esta línea, vMotion está habilitado.
<vim.host.VirtualNic:key-vim.host.VirtualNic-vmk0>