OVFTOOL Deploy OVA o OVF from command line

I needed to deploy ova to esxi without vsphere web client or classic client.
For this operation i have used the OVFTOOL.
The tool is vmware tool and it is possible do download :

https://www.vmware.com/support/developer/ovf/

– Download file   VMware-ovftool-4.1.0-2459827-lin.x86_64.bundle (64bit version)
– Install on redhat  use this command sh vmware
          sh VMware-ovftool-4.1.0-2459827-lin.x86_64.bundle
– Copy to esxi over ssh the /usr/lib/vmware-ovftool/
           scp -r /usr/lib/vmware-ovftool/ root@*.*.*.*:/vmfs/volumes/<datastoreESXi>
– On esxi on  the datastore into directory /vmware-ovftool/ change the used shell for ovftool command.

#!/bin/sh
# ————————
# Start Script for ovftool
# ————————

– For test the tool use this command:

/vmfs/volumes/<datastoreESXi>/vmware-ovftool/ovftool /vmfs/volumes/<datastoreEsxi>/<image>.ova

The file .ova need reside in the datastore esxi

In the output you see the ova info (es. use UEB .ova  unitrend enterprise backup) 

Now you are ready to deploy the ova appliance with this command:

/vmfs/volumes/datastore1/vmware–ovftool/ovftool –dm=thin –ds=datastore1 “–net:access333=VM Network” “http://air.primp-industries.com/SLES-VM/SLES-VM.ovf” “vi://root:vmware123@172.30.0.192”

OVFTOOL Deploy OVA o OVF from command line

TSM VMMAXP and MAXNUMMP

9/01/2015 09:01:34 ANS0266I The dsmEndTxn vote is ABORT, so check the reason field.
09/01/2015 09:01:34 ANS0326E This node has exceeded its maximum number of mount points.
09/01/2015 09:01:39 ANS1004W Node has exceeded max tape mounts allowed. Operation for ‘xxxx’ will be tried again later.

On opt file i find:

VMMAXP=4

on definition of NODE on TSM server i found

MAXNUMMP=1

this is incorrect.
I need change the value for MAXNUMMP:

  MAXNUMMP >= VMMAXP

TSM VMMAXP and MAXNUMMP

Command line restore DB Mysql

I need replace Database on my installation MYSQL.

– Connect to DB

mysql -u <username> -p

– Show DB

SHOW DATABASES;

+——————–+
| Database           |
+——————–+
| information_schema |
| mysql              |
| website            |
| wp-test            |
| wpdb               |
+——————–+
5 rows in set (0.00 sec)

– Drop Database

 DROP DATABASE wpdb;
Query OK, 18 rows affected (0.01 sec)

-Recreate DB

 create database wpdb;
Query OK, 1 row affected (0.00 sec)

– Import Database

mysql -u user -p wpdb < wp_xxxx2014.dmp

Command line restore DB Mysql

VMWARE VSPHERE 6

In questi giorni VMWARE  ha presentato la nuova piattaforma di virtualizzazione VSPHERE 6 e  alcune piattaforme per gestione e implementazione dell’hybrid cloud.

Come si può immaginare oltre che, come avviene sempre con le nuove versioni, VMWARE con VSPHERE 6 ha spostato l’asticella verso l’alto relativamente alle risorse HW gestite:

Mentre  altri  aspetti interessanti sono il Fault tolerance su cui ha ampliato il supporto fino a 4 virtual cpu, il vmotion che adesso puo’ essere fatto tra virtual center e anche “long distance” 

VMWARE VSPHERE 6