Mostrando entradas con la etiqueta vCenter Server. Mostrar todas las entradas
Mostrando entradas con la etiqueta vCenter Server. Mostrar todas las entradas

18 marzo 2015

VMware NSX Part I: Deployment

First steps with VMware Network Virtualization aka NSX:

-OVA deployment
-NSX connection to vCenter Server




09 octubre 2014

Cambiar la bbdd de #VMware #vSphere de SQL a ORACLE

Para apuntar la bbdd de VMware vSphere vCenter de un SQL a Oracle o viceversa, es necesario modificar el registro, con el servicio de vCenter previamente parado....claaaaaro!

Los parametros ha cambiar en la ruta
"HKEY_LOCAL_MACHINE - SOFTWARE - VMware, Inc. - VMware VirtualCenter-DB":



En el siguiente hilo se trata este tema: https://communities.vmware.com/thread/308260 donde podeis encontrar los pasos a seguir:


Then go to registry and browse to 
HKEY_LOCAL_MACHINE - SOFTWARE - VMware, Inc. - VMware VirtualCenter - DB

You will see 1,2,3,4,5.  Change them as follows:
1. Should be the name of your ODBC Connection name.
2. This is your oracle username you use.
3. This is for your password.  We can generate a hashed version of your password later, so don't touch.
4. This is the ODBC driver.  You should change it from "SQL Native Client" or whatever it is to "Oracle"
5. This is the version.  You should be able to leave this.

Now in cmd prompt run C:\Program Files\VMware\Infrastructure\VirtualCenter Server\vpxd.exe -p
Enter your Oracle password.
Now start your service.  If it starts correctly then all is well.

I have recently moved from Oracle to MSSQL 2008R2.  I opted to create a new vCenter server and migrate all of my data using PowerCLI scripts.  I feel this is a bit cleaner.



09 febrero 2014

New VMware Lab: VMware vSphere: Install, Configure, Manager 5.5

VMware Lab Connect™ is now available for VMware vSphere: Install, Configure, Manager [V5.5]. This is a cloud-based lab environment which includes all 24 labs from the VMware vSphere: Install, Configure, Manage [V5.5] course.  This self-paced lab environment is available for 30 days or 30 hours of active time.

http://mylearn.vmware.com/mgrreg/courses.cfm?ui=www_edu&a=one&id_subject=53128

You will have access hands-on lab practice on the following 24 labs: 

•  Lab 1 - Installing VMware vSphere GUIs
•  Lab 2 - Configuring VMware ESXi
•  Lab 3 - Working with Virtual Machines
•  Lab 4 - Configuring VMware vCenter Server Appliance
•  Lab 5 - Using the VMware vSphere Web Client
•  Lab 6 - Configuring VMware vCenter Single Sign-On
•  Lab 7 - Creating Folders in VMware vCenter Server
•  Lab 8 - Standard Switches
•  Lab 9 - Accessing iSCSI Storage
•  Lab 10 - Accessing NFS Storage
•  Lab 11 - Managing VMware vSphere VMFS
•  Lab 12 - Using Templates and Clones
•  Lab 13 - Modifying a Virtual Machine
•  Lab 14 - Migrating Virtual Machines
•  Lab 15 - Managing Virtual Machines
•  Lab 16 - Managing VMware vSphere vApps
•  Lab 17 - User Permissions
•  Lab 18 - Resource Pools
•  Lab 19 - Monitoring Virtual Machine Performance
•  Lab 20 - Using Alarms
•  Lab 21 - Using VMware vSphere High Availability
•  Lab 22 - Configuring VMware vSphere Fault Tolerance
•  Lab 23 - VMware vSphere Distributed Resource Scheduler
•  Lab 24 - VMware vSphere Update Manager

11 octubre 2013

VMware & Oracle performance tips on NFS NetApp storage

     Los problemas de rendimiento son tediosos de resolver y no siempre tienen su origen donde apuntan las primeras hipótesis cuando alguien destapa la caja de los truenos y se queja del bajo rendimiento de algún servidor virtualizado.

    Es muy habitual que por desconocimiento de la virtualizacion, se la culpe siempre en primer termino de todos los males... saber conectarse a un vCenter y crear una maquina virtual "no" es saber de virtualizacion.

     Siempre debe realizarse un trabajo conjunto de todas las áreas implicadas. Me explico, un problema de performance de una maquina virtual no es un problema exclusivo de VMware o del virtualizador de turno, es un problema en el que interviene muchos elementos y departamentos como Storage, Networking, BBDD, etc.
 
    La suma de acciones suele generar buenos resultados al final de los analisis de problemas de rendimiento y todos los departamentos suelen enriquecerse de esas experiencias... asumir una mejora no es culparse de un error si no aportar valor y conocimiento ..al hilo de lo cual os recuerdo lo importante de documentar todo lo que podamos "el ser humano es el unico animal que tropieza dos veces en la misma piedra, porque la primera no lo documenta".



Vamos al turrón con 3 puntos básicos que aunque focalizamos en VMware, NetApp y Oracle lo podemos hacer extensible a cualquier entorno virtual, de almacenamiento y de bbdd:

1-Aplicar best practices de NetApp (consultar antes de aplicar con el fabricante):

Foco de atención sobre:
-Revisar configuración del Networking del NFS: uso de VLAN aislando para trafico NFS, misma subnet red NFS servidor y NAS, reducir saltos de red fisica entre el servidor y la NAS, habilitar jumbo frames a nivel de NFS, utilizar tarjetas 10GbE, realizar teaming (vifs & etherchannel) y revisar políticas de balanceo.
-Revisar el alineado de los FileSystem y VM´s.
-Aplicar recomendaciones del plugin NetApp integrado en el vCenter (consultar antes con fabricante)
-Revisar capacidad de IOps de agregados y controladoras (Monitorizar con OnCommand Core)
-Revisar configuración de los agregados: “añadir discos físicos y forzar reallocate”, verificar planificación de la deduplicacion, revisar estado thinprovisioning y espacio libre en NAS, revisar planificación de snapshots, revisar configuración de RAID óptima para mayor rendimiento de VM´s criticas.
- Estudiar opción crear agregados flashpools con SSD.
-Estudiar opción conexión por FC para VM´s criticas.

Documentación relacionada:
NetApp Technology - Monitorización OnCommand-Core
NetApp Storage Best Practices for VMware vSphere
NetApp Technology - Alineación de Máquinas Virtuales
NetApp, Best Practices for File System Alignment in Virtual Environments
NetApp, location of the mbrscan and mbralign tools
Clustered Data ONTAP NFS Implementation Guide
NetApp Data Compression and Deduplication Deployment and Implementation Guide
VMware vSphere 5 on NetApp Clustered Data ONTAP 8.1
NetApp and VMware Virtual Infrastructure 3 Storage Best Practices (uno de los TR mas populares de NetApp)



2-Aplicar best practices de VMware para NFS:

Foco de atención sobre:
-Reasignación de los datastores (vol): tamaños, y disposición en los aggr
-Redimensionar nº de VM´s en diferentes datastores y agruparlas por tipo de SO
-Reasignar VM´s criticas en vols independientes.
-Verificar estado VAAI para NFS (opciones limitadas)
-Revisar y optimizar shares de Disco, CPU y RAM de las VM´s criticas
-Crear varios vmkernel para NFS con diferentes ip´s y asignar diferentes nics de salida para repartir trafico. ( 1 vSwitch para NFS con 2 vmkernel > vmkernel01 con nic1 activa y nic2 pasiva, vmkernel02 con nic2 activa y nic1 pasiva)
-Configurar vDS que permita agregar varias nics fisicas en el mismo port group para NFS y obtener mayor capacidad de carga y/o balanceo (IP Hash, con limitaciones)
-Modificar parámetros avanzados de NFS

Documentación relacionada:
Increasing the default value that defines the maximum number of NFS mounts on an ESXi/ESX host
NFS with IP Hash Load Balancing
Best Practices for Running VMware vSphere on Network-Attached Storage (NAS)
Verify Hardware Acceleration Status for NAS
Performance Implications of Storage I/O Control–Enabled NFS Datastores in VMware vSphere 5.0
Best Practices for Performance Tuning of Latency-Sensitive Workloads in vSphere Virtual Machines
Performance Implications of Storage I/O Control-Enabled NFS Datastores
Load Balancing with NFS and Round-Robin DNS

3-Aplicar best practices de VMware para Oracle (BBDD):

Foco de atención sobre:
-No realizar overcommit de CPU y RAM (Reserva de RAM: virtual memory size = Oracle System Global Area + operating system)
-Uso de menos vCPU es más eficiente que uso de muchas vCPU
-Alineado de FS con la NAS
-Habilitar JumboFrames en VMware NFS y NAS
-Utilizar Paravirtual SCSI  (PVSCSI)  kb.vmware.com/kb/1010398

Documentación relacionada:
Running Business-Critical Applications on Oracle RAC, VMware and NetApp
Oracle® Databases on VMware vSphere™ 4 ESSENTIAL DEPLOYMENT TIPS
VMware vCenter Server 5.1 Database Performance Improvements and Best Practices for Large-Scale Environments
Oracle Databases on VMware VMware vSphere 5 RAC Workload Characterization Study (VMware VMFS)
Oracle Databases on VMware High Availability
Oracle Databases on VMware Best Practices Guide
Oracle Databases on VMware RAC Deployment Guide
Oracle Dev/Test on VMware vSphereand NetApp Storage Solutions Overview


...Mucho que leer y mucho que aprender :-)

01 octubre 2013

vSphere Web Client login error: Failed to connect to VMware Lookup Service. SSL certificate verification failed (vCenter Appliance)

Si al hacer login desde el Web Client de vSphere nos encontramos con este error "Filed to connect to VMware Lookup Service https://ip:7444/lookupservice/sdk - SSL certificate verification failed.":






Nada tan sencillo como conectarnos a la consola de la VMware vCenter Server Appliance y poner en yes la opción de regenerar certificados desde la pestaña "Admin" > "Toggle certificate setting" > "Certificate regeneration enabled" > "yes":



Lanzamos un reboot desde la pestaña "System":


y ya podemos conectarnos sin problema:


...y volia!



26 agosto 2013

What’s New in VMware vSphere 5.5

La nueva version de vSphere 5.5 y de ESXi 5.5 duplica algunos de los
maximos de la version 5.1.
De especial interes los maximos del appliance de vCenter que ahora permite 500 host ESXi y 5000 virtual machines; mayor compatibilidad para los MSCS, discos VMDK y RDM de hasta 62 TB woooow!

El resumen de las mejoras:

Hot-pluggable SSDPCIe devices
Supportfor Reliable Memory Technology
Enhancements to CPUC-states
Virtual machine compatibility withVMware ESXi 5.5
Expanded supportfor hardware-accelerated graphics vendor
Graphic acceleration supportfor Linux guest operating systems
vCenter Single Sign-On Server security enhancements
vSphere Web Client platform support andUI improvements
vCenter ServerAppliance configuration maximum increases
Simplified vSphereAppHAapplication monitoring
vSphereDRS virtual machine–virtual machine affinity rule enhancements
vSphere BigData Extensions, a new feature that deploys and managesHadoop clusters on vSphere    
from within vCenter vSphere 5.5 also includes the following storage-related enhancements:
Supportfor 62TBVMDK
MSCS updates
vSphere 5.1 enhancements
16GB E2E support
PDLAutoRemove
vSphere Replication interoperability and multi-point-in-time snapshotretention
vSphere 5.5 also introduces the following networking-related enhancements:
Improved LACP capabilities
Traffic filtering
Quality of Service tagging

Mas info en el doc oficial:
http://www.vmware.com/files/pdf/vsphere/VMware-vSphere-Platform-Whats-New.pdf

06 febrero 2013

My new VMware Home LAB

Esta es la configuración de mi nuevo home LAB para VMware. Básicamente se trata de una sola maquina física con ESXi 5.1 instalado sobre un pendrive de 4GB y sobre el virtualizados varios ESXi (nested) y vairas maquinas virtuales. De momento conviven sin problemas de rendimiento: 1 DC, 2 ESXi, 1 vCenter, 1 vShield, 1 vCloud y 1 Freenas.
Ademas de poder montar ESXi nested sobre el anfitrion fisico, sobre esos mismos nested virtuales tambien se pueden desplegar maquinas virtuales :-) Tambien es posible agregar el propio ESXi fisico al vCenter, con lo que ya aprovechamos doblemente su funcion

Configuracion hardware:

-32 GB de RAM (4 x "G.Skill Ripjaws DDR3 1333 PC3-10666 2x8GB")
-Placa Base ASRock Z77 Extreme4-M Intel Socket 1155
-Procesador Intel Core I7-3770 3.4Ghz Box Socket 1155
-SSD OCZ Agility4 Sata3 512GB (uno de los puntos claves del lab)
-Pendrive USB 4GB
-Torre ATX con fuente de 500W






15 enero 2013

VMware Powercli: obtener info de maquinas virtuales desde una lista en txt


En ocasiones necesitamos obtener información de algunas maquinas virtuales de uno o varios vCenter (o ESXi) desde una lista en un simple fichero de texto.
Para esto, podemos declarar primero una variable que lista esas maquinas virtuales desde el fichero de texto y luego lanzar el comando (cmdlet) con el que obtener la info. En este ejemplo, obtenemos las direcciones
 ip´s  de una serie de maquinas virtuales:

Pirmero, declaramos la variable vms listando el contenido de un txt:

$vms = Get-Content lista_de_maquinas.txt  

Ahora, lanzamos el comando con un get-vm de la variable declarada antes:

get-vm $vms | select Name,@{N="IP Address";E={@($_.guest.IPAddress)}}

.

14 diciembre 2012

Upgrade to VMware vSphere 5.1 - Parte 1

Actualización del vCenter en  versión VMware vSphere 5 a la ultima versión 5.1
Los cambios principales son la incorporación del SSO (Single Sign On) y la administración a través de Web (es la ultima versión en la que se puede administrar a través de vSphere Client)

Seleccionaremos para una instalacion mas rapida y sencilla la primera opcion del menu del cd:

.
Continuar leyendo.....

10 enero 2012

Purgar base de datos SQL 2005 de #vSphere vCenter

Recomendable ejecutar cada cierto tiempo en funcion del nivekl de log que tengamos en el vCenter y del numero de host y mv´s de la infraestructura. VMware recomienda hacerlo cada 6 meses pero esto varia mucho en fiuncion de la dimension de la infraestructura, por eso os recomiendo monitorizar la bbdd de SQL para evitar sorpresas.
En este video se explica como purgar datos antiguos.




Para Oracle, podeis guiaros de este enlace donde se explica como truncar tablas:

http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_10007.htm


15 noviembre 2011

Resolve Heartbeat Split-brain syndrome

La mayoría de los casos de Split-Brain ser producen por las siguientes causas:

-perdida de conectividad entre los site por enlace WAN
-el servidor activo esta demasiado ocupado para responder las peticiones de heartbeat
-mala configuracion de heartbeat en alguno o ambos de los extremos.

Os dejo una guía para solucionarlo en caso de que se produzca:

Primero identificaremos cual es el vCenter con mas datos actualizados:

1 Check the date and time of files on both servers. Make the most up-to-date server the active server.
2 From a client PC on a LAN, run nbtstat -A 192.168.1.1 where the IP address is the Principal (Public) IP address of the server. This can help identify the MAC address of the server currently visible to client machines.

Después, seguiremos estos pasos para restablecer el activo-pasivo:

1 Identify the server with the most up-to-date data or the server to make active.
2 Shut down vCenter Server Heartbeat on both servers (if running).
3 On the server to make passive, right-click the Task bar icon, and select the Server Configuration wizard.
4 Click the Machine tab and set the server role to passive. Do not change the identity of the server (Primary
or Secondary).
5 Click Finish.
6 Restart this server.
7 Start vCenter Server Heartbeat, if required, and check that the Task bar icon now reflects the changes by
showing P / - (Primary and Passive) or S / - (Secondary and Passive).
8 On the active server, right-click the Task bar icon and select the Server Configuration wizard.
9 Click the Machine tab and verify that the server role is set to active. Do not change the identity of the
server (Primary or Secondary).
10 Click Finish.
11 Restart this server. As the server restarts, it connects to the passive server and starts replication. The active server overwrites data on the passive server.
12 Start vCenter Server Heartbeat, if required, and check that the Task bar icon now reflects the changes by showing P / A (Primary and active) or S / A (Secondary and active).
13 Start vCenter Server Heartbeat Console.
14 Check that the servers have connected and replication has started.

14 noviembre 2011

vCenter Server Heartbeat Protection Levels



This product protects the vCenter Server by two instances, one of them send alive messages (basically pings) over the VMware Channel, and in case of failure, initiating and automatic switchover.

The 5 levels protected by Hearbeat are:


-Server Protection – vCenter Server Heartbeat provides continuous availability to end users through a
hardware failure scenario or operating system crash. Additionally, vCenter Server Heartbeat ensures
users are provided with a replica server should the production server fail.

-Network Protection – vCenter Server Heartbeat proactively monitors the network by polling up to three
predefined nodes to ensure that the active server is visible on the network.

-Application Protection – vCenter Server Heartbeat maintains the application environment ensuring that
applications and services stay alive and available on the network.

-Performance Protection – vCenter Server Heartbeat proactively monitors system performance attributes
to ensure the system administrator is notified of problems. Additionally, it can be configured to take

-Data Protection – vCenter Server Heartbeat intercepts all data written by users and applications, and
maintains a copy of the data on the passive server that can be used in the event of a failure.

vCenter Server Heartbeat 6.4 Split-Brain Avoidance

   El problema que puede ocurrir al tener dos sites con vCenter protegido con Heartbeat, es que se llegue a perder la conectividad entre ambos y se produzca una bicefalia o split-brain, en la que ambos vCenter se creen que tienen el control de la infraestructura. 



Para evitarlo, VMware nos deja una serie de pasos en la configuración respecto a la prevencion del failover:

 "To enable Split-brain Avoidance, open the Server: Monitoring page in the vCenter Server Heartbeat Console, click Configure Failover, and select Prevent failover if channel heartbeat is lost but Active server is still visible to other servers (recommended)."

Tambien debemos configurar una serie de ip´s de gestion para que entre ambos sites se hagan ping las ethernet para comprobar el estado entre el site pasivo y el activo:


1 Open the network properties for the Principal (Public) network connection.


2 Double-click TCP/IP to display the properties.


3 Click Advanced.


4 Enter an additional (currently unused) IP address in the table.


5 Reposition the IP addresses in the list so that the additional (Management) IP address appears first, and the Principal (Public) network address (by which clients connect to the server) appears second.



6 Click OK on all three dialogs to accept the configuration changes to the network connection.


7 After completing all of the steps click Next or Finish.


El servidor activo debera responder antes del valor de tiempo fijado en el "Failover timeout" para prevenir que el failover ocurra, que esta fijado en 60 segundos por defecto.


1 Click Configure Failover to open the Server Monitoring: Failover Configuration dialog.


2 Type a new numeric value (seconds) in the Failover timeout text box or use the arrow buttons to set a new value.


3 Mark or clear the check boxes to select the actions to take if the specified Failover timeout is exceeded. Click OK to finish.