Translate

Mostrando entradas con la etiqueta ESX. Mostrar todas las entradas
Mostrando entradas con la etiqueta ESX. Mostrar todas las entradas

26/9/11

Resumen de cómo configurar un ESX para que tenga múltiples caminos a un iSCSI target con varias IPs, utilizando el driver iSCSI Software.


Para empezar tenemos 2 formas de configurarlo: crear un vSwitch con una NIC física para cada puerto VMkernel o crear un único vSwitch y forzar la configuración de cada puerto VMkernel para utilizar sólo 1 NIC física.
Al igual que en una SAN FC configuramos un virtual port de tipo VMkernel con su IP por cada puerto físico que queramos utilizar para la conectividad con los discos.
Si elegimos la opción de vSwitch único nos vamos a la configuración de vSwitch, doble-click en el VMkernel port, en la pestaña de NIC Teaming seleccionamos Override vSwitch failover order. Dejamos una NIC física activa y el resto como “Unused Adapter”. Repetimos los pasos para cada VMkernel port. Si tenemos 1 vSwitch para cada puerto no hay que tocar nada.
Una vez hecho esto hay que asociar cada VMkernel port a la HBA iSCSI Software. Para ello nos conectamos vía CLI al ESX.
Para cada VMkernel lanzamos el siguiente comando: esxcli swiscsi add –n port_name –d vmhba (donde portname será vmk y el nº de puerto, aparece en la configuración de Networking debajo de la IP del VMkernel, el vmhba aparece en Storage Adapters en el apartado iSCSI Software, por defecto es vmhba33).
Luego lanzamos esxcli swiscsi nic list –d vmhba33 y nos sacará un listado de todos los VMkernel que tiene asociados.
Si queremos desasignar “esxcli swiscsi nic remove –n port_name –d vmhba”.
Cuando terminemos hacemos un rescan de las HBAs y comprobamos que vemos todos los caminos que deberíamos ver. Luego se puede seleccionar en las propiedades del disco el modo de multipath (fixed, last used, round robin).





FJM.

18/4/11

VMware ESX/ESXi 4.x Driver CD for Emulex BladeEngine 10Gb...



VMware ESX/ESXi 4.x Driver CD for Emulex BladeEngine 10Gb Ethernet Controller

Description   
The ESX Server 4.x driver CD includes version 2.102.518.0 of the Emulex be2net, which enables support for products based on the Emulex BladeEngine 2 and BladeEngine 3 Dual-Port 10 GbE Converged Network Controller. For detailed information about ESX hardware compatibility, check the I/O Hardware Compatibility Guide Web application.
Notes   
When you use this driver CD to install the driver during the ESX 4.x installation process, the network configuration screen might show some devices as Unknown devices even when they are supported by the driver. After ESX starts, all devices are displayed properly. On ESXi 4.0, some devices might continue to be displayed as Unknown devices during normal functioning.
Version     2.102.518.0
Build Number     329992
Release Date     2010/11/30
Type     Drivers & Tools
Language Support     English
Components     This download contains the following components. Hide Details
VMware ESX/ESXi 4.x Driver CD for Emulex BladeEngine 10Gb Ethernet Controller
File size: 1 MB
File type: iso
MD5SUM: 69a0b70a1223f7264a36733bff0f9ee2
SHA1SUM: f58bb58c02e15a38d4fb8e94d2b8d5b2ec396d80

Fuente y Descarga: http://downloads.vmware.com/d/details/esx40_emulex_bladeengine10gb_dt/ZHcqYnRlJWpidGR3

Jorge D. & F.J.M.


2/11/10

Changing the IP address, default gateway, hostname of the Service Console in ESX 3.x and 4.x host.

Changing settings from the physical or remote console connection
Changing the IP for the Service Console must be done from the physical console or through a remote console session. If you make changes through a network connection such as SSH, network connectivity to the Service Console disconnects because the Service Console's network interface changes.
  1. Run the following command to set the IP address:[root@server root]# esxcfg-vswif -i <a.b.c.d> -n <w.x.y.z> vswif0 , where <a.b.c.d> is the IP address and <w.x.y.z> is the subnet mask.

    Note: In this example, v swif0 is the Service Console adapter that is the interface to which you are applying the IP address change.
  2. Open the /etc/hosts file with a text editor and modify it so that it reflects the correct IP address and hostname.
  3. To change the default gateway address and the hostname, edit the /etc/sysconfig/network file and change the GATEWAY and HOSTNAME parameters to the proper values.
  4. For the changes to take place, reboot the host or restart the network service with the command: [root@server root]# service network restart Note: This command breaks any current network connections to the Service Console.
Changing the hostname without rebooting
To dynamically change the hostname, run the command:
[root@server root]# hostname newnameNote: This command creates a temporary hostname change. This change is lost when the system is rebooted.
Changing the DNS server settings
To change the DNS server settings, update the nameserver IPs and search domain the /etc/resolv.conf file.
Changing settings in VMware vSphere or Infrastructure Client
To change the hostname, domain, DNS servers, and default gateway in VMware vSphere or Infrastructure (VI) Client:
  1. Highlight the ESX host and click the Configuration tab.
  2. Click DNS and Routing.
  3. Click Properties.
  4. To change the hostname, domain, and DNS servers, click the DNS Configuration tab and enter the appropriate values.

    Note: Disable VMware High Availability if you do not want virtual machines to failover during the hostname IP change.
  5. To change the default gateway, click the Routing tab and enter the appropriate value.
  6. Reboot the ESX host for the changes to take effect.
  7. Reconnect the ESX host to vCenter Server with the new IP address.
    Jorge D.
     

4/3/10

Esxcfg command help

Networking: Esxcfg-firewall Esxcfg-nics Esxcfg-vswitch Esxcfg-vswif Esxcfg-route Esxcfg-vmknic
Storage: Esxcfg-mpath Esxcfg-nas Esxcfg-swisci Esxcfg-vmhbadevs
General: Esxcfg-advcfg Esxcfg-auth Esxcfg-info Esxcfg-resgrp Esxcfg-upgrade
Boot/Diagnostic: Esxcfg-boot Esxcfg-dumppart Esxcfg-init Esxcfg-linuxnet Esxcfg-module


Esxcfg-firewall
Description: Configures the service console firewall ports
Syntax: esxcfg-firewall <options>

Options:


-q Lists current settings
-q <service> Lists settings for the specified service
-q incoming|outgoing Lists settings for non-required incoming/outgoing ports
-s Lists known services
-l Loads current settings
-r Resets all options to defaults
-e <service> Allows specified service through the firewall (enables)
-d <service> Blocks specified service (disables)
-o <port, tcp|udp,in|out,name> Opens a port
-c <port, tcp|udp,in|out> Closes a port previously opened by –o
-h Displays command help
-allowincoming Allow all incoming ports
-allowoutgoing Allow all outgoing ports
-blockincoming Block all non-required incoming ports (default value)
-blockoutgoing Block all non-required outgoing ports (default value)

Default Services:

AAMClient Added by the vpxa RPM: Traffic between ESX Server hosts for VMware High Availability (HA) and EMC Autostart Manager – inbound and outbound TCP and UDP Ports 2050 – 5000 and 8042 – 8045
activeDirectorKerberos Active Directory Kerberos - outbound TCPs Port 88 and 464
CIMHttpServer First-party optional service: CIM HTTP Server - inbound TCP Port 5988
CIMHttpsServer First-party optional service: CIM HTTPS Server - inbound TCP Port 5989
CIMSLP First-party optional service: CIM SLP - inbound and outbound TCP and UDP Ports 427
commvaultDynamic Backup agent: Commvault dynamic – inbound and outbound TCP Ports 8600 – 8619
commvaultStatic Backup agent: Commvault static – inbound and outbound TCP Ports 8400 – 8403
ftpClient FTP client - outbound TCP Port 21
ftpServer FTP server - inbound TCP Port 21
kerberos Kerberos - outbound TCPs Port 88 and 749
LicenseClient FlexLM license server client - outbound TCP Ports 27000 and 27010
nfsClient NFS client - outbound TCP and UDP Ports 111 and 2049 (0 – 65535)
nisClient NIS client - outbound TCP and UDP Ports 111 (0 – 65535)
ntpClient NTP client - outbound UDP Port 123
smbClient SMB client - outbound TCP Ports 137 – 139 and 445
snmpd SNMP services - inbound TCP Port 161 and outbound TCP Port 162
sshClient SSH client - outbound TCP Port 22
sshServer SSH server - inbound TCP Port 22
swISCSIClient First-party optional service: Software iSCSI client - outbound TCP Port 3260
telnetClient NTP client - outbound TCP Port 23
TSM Backup agent: IBM Tivoli Storage Manager – inbound and outbound TCP Ports 1500
veritasBackupExec Backup agent: Veritas BackupExec – inbound TCP Ports 10000 – 10200
veritasNetBackup Backup agent: Veritas NetBackup – inbound TCP Ports 13720, 13732, 13734, and 13783
vncServer VNC server - Allow VNC sessions 0-64: inbound TCP Ports 5900 – 5964
vpxHeartbeats vpx heartbeats - outbound UDP Port 902

Note: You can configure your own services in the file /etc/vmware/firewall/services.xml

esxcfg-firewall examples:
Enable ssh client connections from the Service Console:
# esxcfg-firewall -e sshClient
Disable the Samba client connections:
# esxcfg-firewall -d smbClient
Allow syslog outgoing traffic:
# esxcfg-firewall -o 514,udp,out,syslog
Turn off the firewall:
# esxcfg-firewall -allowIncoming
# esxcfg-firewall -allowOutgoing
Re-enable the firewall:
# esxcfg-firewall -blockIncoming
# esxcfg-firewall –blockOutgoing


2/10/09

Permisos root por ssh a ESX


Conceder permisos a root para acceder por SSH directamente en VMware ESX.


Hay veces que surge la necesidad de disponer de más permisos de los normales para realizar ciertas acciones en nuestros sistemas.
En este artículo os voy a mostrar como configurar el ESX para que se pueda acceder a él mediante una conexión telnet segura (SSH) con el usuario con los máximos permisos en nuestro sistema VMWARE ESX que es el usuario root.
Por defecto en todas las instalaciones del ESX esta opción viene des-configurada por un tema claro de seguridad.
Nosotros como somos los administradores del sistema y necesitamos disponer del mayor número de permisos existentes lo vamos a modificar para poder por ejemplo entrar con WinSCP y poder mover a nuestro antojo desde un entorno Windows (amigable) ficheros de una carpeta a otra sin necesidad de entrar con una herramienta como putty para desde una línea de comandos mover los ficheros.
Pues allá vamos:
Lo podemos hacer de 2 formas: Una es accediendo directamente a la máquina y pulsando ALT+F1 para entrar en una sesión de consola y realizar los comandos que os explico a continuación
La otra forma es acceder mediante putty y elevando los permisos.
Entramos con putty a una sesión de pantalla del servidor ESX que vamos a modificar.
Login: <user>
Password: <password>
Escribimos su -
Introducir la contraseña del usuario root
Editar el fichero sshd_config mediante el comando vi /etc/ssh/sshd_config
Pulsar I.
Añadir # delante la línea PermitRootLogin.
Pulsar la tecla Esc y escribir :wq
Escribir el comando: service sshd restart.
A partir de ahora ya podremos acceder directamente sin necesidad de elevar los permisos.

Fuente: http://megacracks.wordpress.com/2009/08/14/conceder-permisos-a-root-para-acceder-por-ssh-directamente-en-vmware-esx/

Jorge.

26/9/09

VMware vSphere ESX4 Server | Modo mantenimiento desde la linea de comandos


Muchas tareas como la aplicación de parches y actualizaciones dentro de la plataforma de VMware vSphere se deben realizar con el host en modo mantenimiento. Debido a que muchas de estas tareas también se deben ejecutar desde la consola del ESX donde estamos trabajando, no viene mal conocer cuales son los comandos necesarios para poner y sacar al mismo del modo mantenimiento.

Para realizar esto debemos ejecutar desde la consola y con privilegios de root:

    vimsh -n -e /hostsvc/maintenance_mode_enter    

Para salir del modo mantenimiento:

    vimsh -n -e /hostsvc/maintenance_mode_exit      


Fuente : http://www.wetcom.com.ar/content/vmware-vsphere-esx4-server-modo-mantenimiento-desde-la-linea-de-comandos/

Jorge.