Showing posts with label vmware. Show all posts
Showing posts with label vmware. Show all posts

Friday, October 7, 2022

VMware : Mount volume after migrate HDD from server

 1. List the volume

#esxcfg-volume -l

[root@esxi141:~] esxcfg-volume -l
Scanning for VMFS-3/VMFS-5 host activity (512 bytes/HB, 2048 HBs).
VMFS UUID/label: XXXXb700-087e20aa-1d03-90b11c3b4f5c/datastore1
Can mount: Yes
Can resignature: Yes
Extent name: naa.6d4ae520b410d700ff0000470467361c:3     range: 0 - 4759039 (MB)

2. Mount the volume

#esxcfg-volume -m (VMFS UUID) - temporally mount the volume OR

#esxcfg-volume -M (VMFS UUID) - persistently mount the volume

[root@esxi141:~] esxcfg-volume -M XXXXb700-087e20aa-1d03-90b11c3b4f5c
Persistently mounting volume XXXXb700-087e20aa-1d03-90b11c3b4f5c
[root@esxi141:~]

 

source:


Tuesday, September 6, 2022

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

Monday, October 26, 2020

Ubuntu : Ubuntu 20.04 on ESXi Generating multipathd Errors

Issue:

Solutions:

1. Shutdown the VM
2. Edit then VM : Edit Setting > VM Options
3. Under : Advanced > Configuration Parameters > Edit

4. Add a new parameter with following properties: 

  • Key: disk.EnableUUID
  • Value: TRUE 

5. Click OK
6. Power on the VM
7. Confirm the errors have stopped in /var/log/syslog

Source : https://jc-lan.org/2020/06/03/ubuntu-20-04-on-esxi-generating-multipathd-errors/

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

Thursday, May 16, 2019

VMware : Failed - Object type requires hosted I/O

Solution :

1. SSH to VMware Server
2. Check the corrupted file as mention in log. Check the the .vmdk file
#vmkfstools -x check /path/to/your/machine.vmdk
3. Repair the disk if required to repair
#vmkfstools -x repair /path/to/your/machine.vmdk

4.Restart the VM


Source: https://www.vionblog.com/vmware-6-5-cant-start-vm-host-crash/