VMWare/esxcli

Aus SchnallIchNet
Wechseln zu: Navigation, Suche

Move VM without VCenter

Find VM on one of your clustered host systems and grab the VM-ID:

vim-cmd vmsvc/getallvms | grep -i <hostname>


Power Off System:

vim-cmd vmsvc/power.off <VM-ID>


Unregister VM on host:

vim-cmd /vmsvc/unregister <VM-ID>


Register VM on new host which prints out the new VM-ID:

vim-cmd solo/registervm /vmfs/volumes/FF3_VMW_AO_03/VM-Name/VM-Name.vmx


Power on VM on new host:

vim-cmd vmsvc/power.on <VM-ID>


Plan Upgrade of ESXi

(6.0 to 6.5 in this case)

Check Hardware Firmware to VMWare HCL (Hardware Compatibility List)

[HCL]


Get VMHost Hardware details:


ESXi Version:

# vmware -vl
VMware ESXi 6.0.0 build-6921384
VMware ESXi 6.0.0 Update 3


Processor-Type and BIOS Version:

# smbiosDump | grep -i Version:
    Version: "Intel(R) Xeon(R) CPU E5-2690 v3 @ 2.60GHz"
    Version: "Intel(R) Xeon(R) CPU E5-2690 v3 @ 2.60GHz"
    Version: "P89"                                         <-- BIOS Version


VM-HBAs:

# esxcfg-scsidevs -a

vmhba0  hpsa              link-n/a  sas.50014380361bab70                    (0000:03:00.0) Hewlett Packard Enterprise Smart Array P440ar
vmhba1  qlnativefc        link-up   fc.500143802318ab7b:500143802318ab7a    (0000:05:00.0) QLogic Corp 2600 Series 16Gb Fibre Channel to PCI Express HBA
vmhba2  qlnativefc        link-up   fc.500143802318a82f:500143802318a82e    (0000:88:00.0) QLogic Corp 2600 Series 16Gb Fibre Channel to PCI Express HBA
vmhba32 bnx2i             unbound   iscsi.vmhba32                           QLogic 57810 10 Gigabit Ethernet Adapter
vmhba33 bnx2i             unbound   iscsi.vmhba33                           QLogic 57810 10 Gigabit Ethernet Adapter
vmhba34 bnx2fc            link-down fcoe.10003ca82a244d11:20003ca82a244d11  (0000:04:00.0) Broadcom Corporation QLogic 57810 10 Gigabit Ethernet Adapter
vmhba35 bnx2fc            link-down fcoe.10003ca82a244d15:20003ca82a244d15  (0000:04:00.1) Broadcom Corporation QLogic 57810 10 Gigabit Ethernet Adapter
# vmkload_mod -s qlnativefc | grep -i Version
 Version: 2.1.57.1-1OEM.600.0.0.2768847

# /usr/lib/vmware/vmkmgmt_keyval/vmkmgmt_keyval -a | grep -i 'Version'
        FC Firmware Version: 8.05.63 (d0d5), Driver version 2.1.57.1
BIOS version 3.43
FCODE version N/A
EFI version 6.54
Flash FW version 8.05.63
Driver version 2.1.57.1
Driver version 2.1.57.1
        FC Firmware Version: 8.05.63 (d0d5), Driver version 2.1.57.1
BIOS version 3.43
FCODE version N/A
EFI version 6.54
Flash FW version 8.05.63
Driver version 2.1.57.1
Driver version 2.1.57.1
Driver version 2.1.57.1


List NICs:

# esxcli network nic list

Name     PCI Device    Driver  Admin Status  Link Status  Speed  Duplex  MAC Address         MTU  Description                                                  
-------  ------------  ------  ------------  -----------  -----  ------  -----------------  ----  -------------------------------------------------------------
vmnic0   0000:02:00.0  tg3     Up            Up            1000  Full    14:02:ec:32:19:64  1500  Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet      
vmnic1   0000:02:00.1  tg3     Up            Up            1000  Full    14:02:ec:32:19:65  1500  Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet      
vmnic10  0000:84:00.2  tg3     Up            Down             0  Half    28:80:23:b5:dc:82  1500  Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet      
vmnic11  0000:84:00.3  tg3     Up            Down             0  Half    28:80:23:b5:dc:83  1500  Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet      
vmnic2   0000:02:00.2  tg3     Up            Down             0  Half    14:02:ec:32:19:66  1500  Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet      
vmnic3   0000:02:00.3  tg3     Up            Up            1000  Full    14:02:ec:32:19:67  1500  Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet      
vmnic4   0000:04:00.0  bnx2x   Up            Up           10000  Full    3c:a8:2a:24:4d:10  1500  Broadcom Corporation QLogic 57810 10 Gigabit Ethernet Adapter
vmnic5   0000:04:00.1  bnx2x   Up            Up           10000  Full    3c:a8:2a:24:4d:14  1500  Broadcom Corporation QLogic 57810 10 Gigabit Ethernet Adapter
vmnic6   0000:08:00.0  bnx2x   Up            Up           10000  Full    8c:dc:d4:17:6e:b0  1500  Broadcom Corporation QLogic 57810 10 Gigabit Ethernet Adapter
vmnic7   0000:08:00.1  bnx2x   Up            Up           10000  Full    8c:dc:d4:17:6e:b4  1500  Broadcom Corporation QLogic 57810 10 Gigabit Ethernet Adapter
vmnic8   0000:84:00.0  tg3     Up            Down             0  Half    28:80:23:b5:dc:80  1500  Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet      
vmnic9   0000:84:00.1  tg3     Up            Down             0  Half    28:80:23:b5:dc:81  1500  Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet


Show specific NIC:

# esxcli network nic get -n vmnic4

   Advertised Auto Negotiation: false
   Advertised Link Modes: 10000baseT/Full
   Auto Negotiation: false
   Cable Type: DA
   Current Message Level: 0
   Driver Info: 
         Bus Info: 0000:04:00.0
         Driver: bnx2x
         Firmware Version: bc 7.14.62
         Version: 2.713.30.v60.9
   Link Detected: true
   Link Status: Up 
   Name: vmnic4
   PHYAddress: 1
   Pause Autonegotiate: false
   Pause RX: true
   Pause TX: true
   Supported Ports: FIBRE
   Supports Auto Negotiation: false
   Supports Pause: true
   Supports Wakeon: true
   Transceiver: internal
   Virtual Address: 00:50:56:14:4d:10
   Wakeon: MagicPacket(tm)
# esxcli network nic get -n vmnic1

   Advertised Auto Negotiation: true
   Advertised Link Modes: 10baseT/Half, 10baseT/Full, 100baseT/Half, 100baseT/Full, 1000baseT/Half, 1000baseT/Full
   Auto Negotiation: true
   Cable Type: Twisted Pair
   Current Message Level: 4260095
   Driver Info: 
         Bus Info: 0000:02:00.1
         Driver: tg3
         Firmware Version: 5719-v1.46 NCSI v1.4.16.0
         Version: 3.137l.v60.1
   Link Detected: true
   Link Status: Up 
   Name: vmnic1
   PHYAddress: 2
   Pause Autonegotiate: true
   Pause RX: true
   Pause TX: true
   Supported Ports: TP
   Supports Auto Negotiation: true
   Supports Pause: true
   Supports Wakeon: true
   Transceiver: internal
   Virtual Address: 00:50:56:12:19:65
   Wakeon: MagicPacket(tm)