Skip to content

This project is a packer script that helps a VI admin create an OVF VM image for deploying Ray on vSphere. Ray is an existing open source project maintained by Anyscale. This packer should allow the VI admin to configure all the underlying components of a worker or head node VM to deploy in vSphere.

License

Notifications You must be signed in to change notification settings

vmware-private-ai/vm-packer-for-ray

Repository files navigation

User Guide for building a Frozen VM

When running Ray on vSphere, you must have a frozen VM, which is a VM with Ray and its dependencies already installed. The Ray nodes will be instantly cloned from the frozen VM to compose an autoscaling Ray cluster.

This guide is about how to use the scripts to build a Frozen VM on your vSphere environment before running ray up.

Prerequisites

  1. A linux machine with Docker installed.
  2. The machine should have ssh-keygen installed.
  3. The machine should have access to your vCenter Server of the vSphere environment.
  4. The machine should have the Internet access.
  5. You should not use the root user in the machine, that could bring permission issues.

Build a Frozen VM

Step1: Modify Configuration Files

The meaning of each config is well explained in the comments.

vi scripts/config.hcl

Step2: Build the Frozen VM with one click

bash create-frozen-vm.sh

This step will launch a container with dependency pre-installed, and run packer build inside the container.

Usage

--skip-uploading-iso
    One of the step is to upload ISO file onto the specific datastore configured in config.hcl.If you have already uploaded the iso file to the datastore, you can skip this step by adding this.
--enable-frozenvm-each-host
    Create frozen vms for each host.
--os
    Specify the OS version of Frozen VM. It supports the following OS currently:
    1) debian-12.0.0-amd64
    2) ubuntu-20.04.6-amd64
    3) ubuntu-22.04.3-amd64

Once the script finishes successfully, you will be able to see the Frozen VM on vSphere, and the OVF of the Frozen VM will be exported to the content library specified in the config file.

For more detailed guidance, check the Advanced user guide.

About

This project is a packer script that helps a VI admin create an OVF VM image for deploying Ray on vSphere. Ray is an existing open source project maintained by Anyscale. This packer should allow the VI admin to configure all the underlying components of a worker or head node VM to deploy in vSphere.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published