Difference between revisions of "Managing your VMware vSphere Homelab without vCenter"

From Open Homelab
Jump to: navigation, search
(No difference)

Revision as of 11:15, 22 April 2016

Running standalone/free ESXi Hypervisors without vCenter means you're missing out on some of the features- creating templates, cloning, moving VMs from host to host etc. There are ways to get vCenter licensing on your homelab - VMUG Advantage and the vExpert Scheme are a couple of good examples -however there are some workarounds you can do to imitate some of the functionality.

PowerCLI

PowerCLI won't let you do anything you're not licensed for- just because the Move-VM cmdlet exists doesn't mean it will run and let you vMotion guests- but you can use PowerCLI to move or copy VMs, there's just a bit of thinking involved to put the script together. For example, to move a VM between independent ESXi hosts with no shared storage we could

  1. Shutdown the Source VM on the Source Host (see the Shutdown-VMGuest cmdlet)
  2. De-register the Source VM on the Source Host (see Remove-VM)
  3. Mount the Source Datastore as a PowerShell Drive (see Get-Datastore and New-PSDrive)
  4. Mount the Target Datastore as a PowerShell Drive
  5. Move the VM files (so all the config files, VMDK's etc) between the two Drives (see Copy-DatastoreItem)
  6. Register the (now Target) VM on the Target Host (see New-VM -VMFilePath)
  7. Power on the Target VM (see Start-VM)

All of these steps are available at the Free licensing level and higher.

Links

ESXi Shell

There's lots of functionality available through the ESXi Shell- remember, as with PowerCLI, you still don't have access to unlicensed features just because you're using the command line.


Links

How to Copy VMs Directly Between ESXi Hosts Without Shared Storage Using SCP to copy files to or from an ESX host

VMware Converter

This free tool from VMware allows you to move Virtual Machines between different infrastructures so can be used, amongst other things, to cold-migrate between ESXi hosts.

Links

Veeam Backup

Veeam Backup, right from the free offering, allows you to backup a VM and this backup can be restored to a different target host- in effect a cold-migration with an intermediate step.

Links

Someone else's vCenter

Creating an OVF/OVA template requires vCenter, but you can deploy them direct to an ESXi host. So if you have access to a VCenter somewhere outside your homelab (an employer perhaps) then you can use that to create the OVF files and then deploy them back at home.

Deploy OVF Template