Showing posts with label esxi. Show all posts
Showing posts with label esxi. Show all posts

Friday, August 26, 2022

VMware : Replication/Migration VM between ESXi host

1st Method

Source : ESXi-01 - VM on this source must shutdown first before replicate/migrate
Destination : ESXi-02 - the destination server to host the replicate/migrate VM

The step:

1. Download  OVF Tool - download from here https://developer.vmware.com/web/tool/4.4.0/ovf 

2. Install OVF Tool (this guide using Windows)

3. In Windows open CMD windows - change to OVF Tools path


4. Run command : ovftool.exe -ds=datastorage vi://root@192.168.8.8/Corver vi://root@192.168.8.111 

5. The process will run until the replicate/migrate complete


 6. Then open the replicate/migrate VM in new ESXi-02 host

 

 2nd Method

1. Enable SSH Service on Source and Destination ESXI Servers

#esxcli network firewall ruleset list --ruleset-id sshClient
#esxcli network firewall ruleset set --ruleset-id sshClient --enabled=true

2. Copy the VM from Source to Destination

#cd /vmfs/volumes/datastore1/
#scp -rv /vmfs/volumes/datastore1/VM_NAME root@xx.xx.xx.xx:/vmfs/volumes/datastore1/

3.Convert Thick Provisioning to Thin Provisioning

#cd /vmfs/volumes/datastore1/ VM_NAME
#vmkfstools -i VM_NAME.vmdk -d thin VM_NAME -thin.vmdk.

- Rename the old flat file to a different
- Rename the new flat file to a different name

4.Register the Migrated VM on the ESXI Host

Wednesday, June 12, 2019

VMWare ESXi : Enable SNMP

Solution:

1. SSH to ESXi server
2. Run as below command
esxcli system snmp set -r
esxcli system snmp set -c YOUR_STRING
esxcli system snmp set -p 161
esxcli system snmp set -L "City, State, Country"
esxcli system snmp set -C noc@example.comesxcli 
esxlci system snmp set -e yes
3. Finished - can test the snmp from snmp tools

Note:
  • To change hostname for ESXi server
esxcli system hostname set --host=hostname
esxcli system hostname set --fqdn=fqdn 

Source : https://support.auvik.com/hc/en-us/articles/206311526-How-to-enable-SNMP-on-a-VMware-ESXi-hypervisor