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
.
- A linux machine with Docker installed.
- The machine should have ssh-keygen installed.
- The machine should have access to your vCenter Server of the vSphere environment.
- The machine should have the Internet access.
- You should not use the root user in the machine, that could bring permission issues.
The meaning of each config is well explained in the comments.
vi scripts/config.hcl
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.