How to manage VMWare images (deb/3.1/UI)

2.9 3.0 3.1
DEB CLI ~ UI CLI ~ UI CLI ~ UI
SNAP CLI ~ UI CLI ~ UI CLI ~ UI

MAAS 2.5 and above can deploy VMware ESXi as a custom image. MAAS cannot directly deploy the VMware ESXi ISO; you must create a specialised image from an official VMWare ISO. Canonical created a packer template to automate the image creation process.

Five questions you may have:

  1. What are the prerequisite requirements for creating an image?
  2. How can I customise these images?
  3. How do I build an image?
  4. How do I upload an image?
  5. What are the features and limitations of VMWare images in MAAS?

Prerequisites to image creation

Image creation

  1. A physical machine running Ubuntu 18.04+
  2. CPU: 4 2GHz cores
  3. Memory: 8 GB RAM (16 GB RAM recommended)
  4. Disk space: 11 GB
  5. The VMWare ESxi ISO
  6. Packer - https://www.packer.io/intro/getting-started/install.html
  7. Procedure was tested with precompiled 64-bit Packer 1.3.4 Linux binaries
  8. Packer template for MAAS custom image

Image deployment

  1. MAAS 2.5.0+

Customizing the Image

The image may be customized by modifying packer-maas/vmware-esxi/http/vmware-esxi-ks.cfg see Installation and Upgrade Scripts in the VMware ESXi installation and Setup manual for more information.

Building an Image

Before an image is built the nbd kernel module must be loaded

sudo modprobe nbd

Once the nbd kernel module is loaded your current working directory must be in the packer-maas/vmware-esxi directory

cd /path/to/packer-maas/vmware-esxi

You can now start the image building process using packer with the following command:

sudo packer build -var
'vmware_esxi_iso_path=/path/to/VMware-VMvisor-Installer-6.7.0-8169922.x86_64.iso'
vmware-esxi.json

Uploading an Image

Once you have created the image, upload it to MAAS, using the CLI, with the following command:

maas $PROFILE boot-resources create name='esxi/6.7' title='VMware ESXi 6.7'
architecture='amd64/generic' filetype='ddgz' content@=vmware-esxi.dd.gz

Features and Limitations

Networking

  1. VMware ESXi does not support Linux bridges
  2. Bonds - MAAS maps the following bond modes to VMware ESXi NIC team sharing with load balancing as follows:
  3. balance-rr - portid
  4. active-backup - explicit
  5. 802.3ad - iphash, LACP rate and XMIT hash policy settings are ignored.
  6. No other bond modes are currently supported.
  7. VMware ESXi does not allow VMs to use a PortGroup that has a VMK attached to it. All configured devices will have a VMK attached. To use a vSwitch with VMs, you must leave a device or alias unconfigured in MAAS.

Storage

Custom storage configuration is not supported because VMware ESXi expects specific disk formats. MAAS will extend datastore1 to the full size of the deployment disk. After deployment, VMware tools may be used to access the other disks.

ESXi Hardware Support

VMware has very specific hardware requirements. In particular, running VMware ESXi is not supported in a virtual machine or MAAS virsh Pod.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.