End to End Creation of a Nutanix Cluster on AWS and Running X-Ray
Jump to a Section of the video using the links below:
- Create and launch a Nutanix Cluster on AWS
- Connect to Prism on the Nutanix cluster running in AWS
- Download and create an X-ray disk image on the cluster
- Create Subnets and routing for the X-ray VM and its workers in AWS
- Connect the AWS subnet to AHV via Prism
- Create the X-ray VM in Prism
- Create a load balancer in AWS to allow outside access to the X-ray VM
- Configure VM security group to allow access to the X-ray VM from the load balancer
- Create the Prism Virtual IP address
- Connect to the X-ray VM via the Load Balancer URL
- Create and validate the test target on the X-ray server
- Run the Four Corners performance test
- X-Ray Test execution and results IOPS
- X-Ray Test execution and results Throughput
Step By Step
- Navigate to my.nutanix.com and select Launch on the Nutanix Clusters Chiclet.
- Click on Create Cluster
- Complete the details in the Create Cluster dialog. On the second page of “Create Cluster”, Select “Public” for Prism Access and “Restricted” for Management Services Access. Make sure to add the current IP addres for the management services if you are not otherwise connected to AWS. (I created and downloaded a new ssh key, although it is not required for this demo)
- Click the “Create Cluster” button. You should receive a popup showing “Initialize cluster initiated. AWS will now provision a bare metal cluster for us. This usually takes 20-30 minutes
- Once the Status changes from “Creating” to “Running” click on the “Cluster name”. You will be taken to the “Cluster details” page where you can connect to Prism. At this point I suggest taking a note of the VPC ID
- Launch Prism by clicking on “Go to Prism Element”. Login to Prism, change passwords etc.
- Get the nutanix X-ray image from nutanix.com/xray and follow the prompts to download, and uese the three dots on the right to grab the URL
- Back in Prism supply the X-ray image URL to the image service.
- NOW switch to your AWS console – we will setup some networking for the X-ray and worker VMS to run on.
- Navigate to the VPC section of the consule and fins the “Subnets” section. Create a new subnet as part of the 10.0.0.0/16 network. In the example I create a subnet 10.0.10.0/24
- This network needs to be reachable from the outside, since I want to connect to the X-ray server from my laptop. To make that work, change from the default network route, to the alternate table where the outside world is reached by an internet gateway. This is done by using the ‘Edit route table association” button. Then hit the “Create Subnet” button.
- Now go back to Prism and create the same network in AHV/Prism. Simply create the same network in the Settings/Network configuration tab with the same values (10.0.10.0/24). The names do not need to match. Also create a pool of IP’s that AHV can allocate. I chose .64 <-> .128
- Create the X-Ray VM. Use the X-Ray image that we uploaded earlier as the basis for a cloned disk, and put the VM on the Network that we created in Prism in the previous step
- Power on the X-Ray VM and identify the IP address of the VM
- Create a load balancer in AWS to forward traffic to the X-ray VM
- Create a TCP/UDP Load Balancer Internet-facing , and listen on Port 443. Select the correct VPC and Subnet where the X-ray VM will reside (the Subnet we created earlier). We don’t need a static IP address, we can simply use theURL of the load balancer, so we will allow AWS to assign it.
- Create a target group (this will point to the X-Ray IP address inside the cluster).
- Click through to enter the IP address of the X-Ray VM that we want the load balancer to connect to.
- Click “Create”. It will take a few minutes to register the load balancer and Target Groups.
- After initialization the status will report as “unhealthy”. We need to fix this in the security group settings for the UVMs in this Nutanix cluster. The Load Balancer cannot access the X-ray VM.
- Go to VPC, Security Groups find the right VPC and find the security group named “Nutanix Cluster NNNXXX UVM”. Add an inbound rule to allow the load balancer to connect to the X-ray UVM. In the example I add an override of any traffic on any port from any location.
- Eventually the status will change from unhealthy to healthy.
- While we wait for the status to change, add a virtual IP address. We can chose any unused IP address on the subnet that the CVM’s are on. In my example, the UVMs are on 10.0.128.0/24 so we can choose any unused IP in that range. I have chosen 10.0.128.101
- While we wait for the status to change, add a virtual IP address. We can chose any unused IP address on the subnet that the CVM’s are on. In my example, the UVMs are on 10.0.128.0/24 so we can choose any unused IP in that range. I have chosen 10.0.128.101
- Take the DNS name of the Load Balance and prepend https:// and append :443 in a browser
- We can now login to the X-ray server running in the cluster on AWS. Set. password on the x-ray server and accept the EULA.
- Now we can add an X-ray target using the virtual IP address we added previously. Provide the credentials that you used to login to Prism.
- Run the validation step to ensure X-ray can create and access its worker VMs on the cluser.
- If the validation comes back as “Completed” then you can proceed to run whatever X-ray tests you would like, except the failure tests since we do not have access to IPMI ports in AWS.
- We can now run any X-ray test that we want e.g. the four corners benchmark.
- And we can observe performance from X-ray or Prism….