Static IP Address on Ubuntu 18.04 with netplan

Ubuntu replaced the configuration file /etc/network/interfaces with netplan, which uses configuration files in YAML syntax /etc/netplan/01-netcfg.yaml .

Open the YAML configuration file with your text editor :

sudo nano /etc/netplan/01-netcfg.yaml
/etc/netplan/01-netcfg.yaml
network:
  version: 2
  renderer: networkd
  ethernets:
    ens3:
      dhcp4: yes
    ens4:
      dhcp4: no
      addresses:
        - 192.168.121.99/24
      gateway4: 192.168.121.1
      nameservers:
          addresses: [8.8.8.8, 1.1.1.1]

 

Once done save and close the file and apply the changes with:

sudo netplan apply

Verify the changes by typing:

ip addr show dev ens3

 

vmware esxi 6.x attach USB drive to VM

Sumber: USB support in ESXi/ESX 4.1, ESXi 5.x, and ESXi 6.x (1022290)

1. Enabling the xHCI module on ESXi 5.x/6.x hosts

  • Connect to the host with an SSH session.
  • Run the following commands to enable to xHCI module
esxcfg-module -e xhci
  • Make it permanent
echo "vmkload_mod xhci" >> /etc/rc.local.d/local.sh

2. Adding a USB controller

To add a USB controller in a virtual machine running Windows:

  • Right-click the virtual machine and click Edit Settings.
  • Click Add
  • Click USB Controller and click Next
  • Click OK.

To add a Host-Connected USB device:.

  • Right-click the virtual machine and click Edit Settings.
  • Click Add
  • Click the desired USB device and click Next
  • Click OK

3. and a USB device in a virtual machine

To add a Client-Connected USB device:

  • using the vSphere Client (5.0 or newer)
  • Click (or open a console to) the virtual machine
  • In the vSphere Client toolbar, click the icon (similar to a USB device with a wrench) to connect/disconnect the USB devices to the virtual machine.
  • Select the desired USB device to connect.
  • Click OK.