Find and unmount CD drives with PowerCLI

Sometimes someone forgets to unmount the CD drive of a VM. This will interfere with operation tasks like setting a host in maintenance mode or using Update Manager. I recently had this issue, and the “update manager compliance check” told me that several VM’s where connected to a CD drive, which may interrupt the update…

Continue Reading

Windows 10 missing ssh-copy-id

Microsoft is finally shipping Windows with SSH. On my Windows 10 machine, it’s OpenSSH: PS C:\Users\Kasper> ssh -VOpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5 Somehow they missed to get the ssh-copy-id tool implemented, so we need to find another way of copying our ssh keys. Thankfully it’s not that complicated, we can use powershell (probably even cmd) cat .\.ssh\id_rsa.pub…

Continue Reading

Saving and restoring ESXi configuration, and fixing VMKCore coredump partition dump issues

Hi all. Today i had to reinstall some ESXi 5.5 hosts as we were upgrading to SSD disks, in order to have more performance on the Citrix environment we are hosting. Before i powered off the server, i saved the configuration to use for easy reconfiguration with the following command from powercli: Get-VMHostFirmware -VMHost xxx-hostname-xxx -BackupConfiguration…

Continue Reading