Configurar un puerto VMkernel y habilitar vMotion a través de línea de comando
search cancel

Configurar un puerto VMkernel y habilitar vMotion a través de línea de comando

book

Article ID: 324740

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Renuncia: Este artículo es una traducción de Configuring a VMkernel port and enable vMotion via command line (1006989). Los artículos han sido traducidos en español basados en el mejor esfuerzo. Sin embargo, el contenido localizado o específico puede quedar desactualizado. Para revisar el contenido más reciente, por favor consulte el artículo en Inglés.


Environment

VMware ESXi 4.1.x Installable
VMware ESX 4.1.x
VMware ESX 4.0.x
VMware ESXi 3.5.x Embedded
VMware vSphere ESXi 5.0
VMware ESXi 4.1.x Embedded
VMware ESXi 3.5.x Installable
VMware ESXi 4.0.x Embedded
VMware ESXi 4.0.x Installable
VMware ESX Server 3.5.x

Resolution

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:

  • Habilite un VirtualNic para utilizar como vMotion NIC.
  • Habilite y deshabilite vMotion a través de la conexión SSH sin VirtualCenter (para ESX/ESXi 3.x utilice el comando vmware-vim-cmd).

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>


Additional Information

Configuring a VMkernel port and enable vMotion via command line