I could not login to ESXi 6 host with my ssh keys. As root login with password was enabled, I could login using password. I checked for known symptoms. AuthorizedKeysFile points to the right location. AuthorizedKeysFile had my keys.
grep AuthorizedKeysFile /etc/ssh/sshd_config
What could be wrong?
Continue reading “You will not be able to login to ESXi 6 U2 with ssh-dss keys”
Open PowerCLI console and connect to the vCenter where the VM is located. Then, we will retrieve the VM we want to modify and store it is a variable.
#Connect to vCenter
Connect-VIServer -Server vcenter.example.com
#Get the VM and store it in a variable
$vm = Get-VM MyVM
Lets examine the VM’s hard disks. There are two of them.
Continue reading “How to add and remove VM’s disk using PowerCLI”
I am unable to extract an xz tarball in RHEL 5.
# tar Jxvf my_archive.tar.xz
tar: invalid option -- J
Try `tar --help' or `tar --usage' for more information.
# tar --version
tar (GNU tar) 1.15.1
Use unxz to uncompress the file and extract it with tar xvf
tar xvf my_archive.tar
Continue reading “How to extract xz archive in RHEL 5”
This is not a comprehensive guide on upgrading to vSphere 6. If that is your intention, this is what you should read
Derek Seaman’s guide to vSphere 6.0
This is just my notes on upgrading a few 5.5 hosts to 6. The rule of thumb is that your vCenter version should be equal or greater than ESXi. We already have a vCenter 6 running.
The preferred method of upgrading on a large scale is to use Update Manager. I used ISO for this upgrade. Since the HW is Cisco, I downloaded a Cisco custom ISO from VMware website. I verified the checksum to save time in case the downloaded ISO is corrupted. Continue reading “Upgrading ESXi 5.5. to ESXi 6 with the ISO”
Method 1: Login to the host using vSphere client
Using vSphere client, login to the host as root. A pop up will warn you the host is being managed by vCenter along with the IP address of the vCenter. Lame? But it works.
Method 2: grep authd /var/log/vmauthd.log
ssh to the host as root and run
Continue reading “How to find which vCenter is managing an ESXi host”