5.6. Uploading VMDK images to vSphere
Image Builder can generate images suitable for uploading to a VMware ESXi or vSphere system. This describes steps to upload an VMDK image to VMware vSphere.
Because VMWare deployments typically does not have cloud-init configured to inject user credentials to virtual machines, we must perform that task ourselves on the blueprint.
Prerequisites
-
You must have an VMDK image created by Image Builder. Use the
vmdkoutput type in CLI or VMware Virtual Machine Disk (.vmdk) in GUI when creating the image.
Procedure
Upload the image into vSphere via HTTP. Click on
Upload Filesin the vCenter:
When you create a VM, on the
Device Configuration, delete the defaultNew Hard Diskand use the drop-down to select anExisting Hard Diskdisk image:
Make sure you use an
IDEdevice as theVirtual Device Nodefor the disk you create. The default valueSCSIresults in an unbootable virtual machine.