VMware vSphere uses templates as images for creating new virtual machines. If using image-based provisioning to create new hosts, you need to add VMware template details to your {ProjectServer}. This includes access details and the template name.
To use the CLI instead of the {ProjectWebUI}, see the CLI procedure.
-
In the {ProjectWebUI}, navigate to Infrastructure > Compute Resources.
-
Select your Vmware compute resource.
-
Click Create Image.
-
In the Name field, enter a name for the image.
-
From the Operating System list, select the base operating system of the image.
-
From the Architecture list, select the operating system architecture.
-
In the Username field, enter the SSH user name for image access. By default, this is set to
root
. -
If your image supports user data input such as
cloud-init
data, click the User data checkbox. -
Optional: In the Password field, enter the SSH password to access the image.
-
From the Image list, select an image from VMware.
-
Click Submit to save the image details.
-
Create the image with the
hammer compute-resource image create
command. Use the--uuid
field to store the relative template path on the vSphere environment:# hammer compute-resource image create \ --architecture "My_Architecture" \ --compute-resource "My_VMware" --name "My_Image" \ --operatingsystem "My_Operating_System" \ --username root \ --uuid "My_UUID"