[隨筆] VMWare ESXi 筆記

ESXi Command

  • Disk Clone

    1
    2
    3
    4
    5
    6
    [[email protected]:~] cd /vmfs/volumes/WD500G/
    [[email protected]:/vmfs/volumes/5b53a83f-dd90c63a-c2d4-0015176a9387] vmkfstools -i Ubuntu-Clean.vmdk -d thin /vmfs/volumes/DSM_iSCSI_320GB/SSR/SSR.vmdk
    Destination disk format: VMFS thin-provisioned
    Cloning disk 'Ubuntu-Clean.vmdk'...
    Clone: 100% done.
    [[email protected]:/vmfs/volumes/5b53a83f-dd90c63a-c2d4-0015176a9387] exit
  • Enable SNMP

    1
    2
    [[email protected]:~] esxcli system snmp get
    [[email protected]:~] esxcli system snmp set --help
  • Disk Passthrough
    https://kb.vmware.com/s/article/1017530

    1
    2
    3
    4
    5
    [[email protected]:~] ls -l /vmfs/devices/disks
    [[email protected]:~] vmkfstools -z /vmfs/devices/disks/naa.5000c5002a06ade0 /vmfs/volumes/datastore1/FreeNAS/320G_Disk1.vmdk
    [[email protected]:~] vmkfstools -z /vmfs/devices/disks/naa.5000cca35bc41ad6 /vmfs/volumes/datastore1/FreeNAS/320G_Disk2.vmdk
    [[email protected]:~] vmkfstools -z /vmfs/devices/disks/naa.5000cca369d2fef5 /vmfs/volumes/datastore1/FreeNAS/2TB_Disk1.vmdk
    [[email protected]:~] vmkfstools -z /vmfs/devices/disks/naa.5000cca221dab4df /vmfs/volumes/datastore1/FreeNAS/2TB_Disk2.vmdk