Building a Nutanix AHV Cluster Through a Crash Cart

In certain situations where deploying a cluster through Foundations isn’t possible, there’s always the crash cart method. These steps will take you from the first node power on to updating your cluster. Once you’ve racked and cabled the nodes, proceed through these steps.

1. Plug in a crash cart into the first node and power it on
2. Press the Del key to enter setup
3. Adjust the time in the first screen
4. Go to the BMC tab and select Configure
5. Define the BMC IP settings and save the configuration
6. Wait for the node to reboot
7. When prompted, press Enter to load Nutanix
8. At the login prompt, enter the default credentials:
U: root
P: nutanix/4u
9. Type in the following commands:
virsh list --all
If the CVM shows stopped then run the following command:
virsh start <CVM_Name>
confirm that the CVM is started
10. Type in the following command:
/usr/local/bin/network-crashcart
*note that you may have to wait a few minutes for this command to work
11. In the config screen, enter the following:
-Select which network adapters you’ll use
-Enter the subnet, gateway, CVM IP and node IP
-Save the config
12. Quick sanity check: make sure you can ping your CVM and node IP at this point
13. Enter the following command to connect to the local CVM:
ssh nutanix@192.168.5.254
14. Enter Yes when prompted
15. Enter the default credentials
U: root
P: nutanix/4u
16. Type in the following command to rename the node:
change_ahv_hostname --host_ip=[Node IP Address] –host_name=[New Node Name]
17. Type in the following command:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
18. Verify the following is accurate:
-IP Address of CVM
-Subnet mask
-Gateway
*If edits are needed:
-Press the Insert key
-Make any necessary changes
-Press the Escape key
-Enter: :wq! to save changes (colon and bang are required)
19. Enter the following commands:
genesis restart (may take about 15 seconds)
exit
reboot
20. Perform steps 1-19 again for each node
21. Once all nodes and CVMs are online, we can build our cluster. Run the following command:
cluster --redundancy_factor=2 -s [all CVM IPs separated by comma] --cluster_name=[Cluster Name Here] --cluster_external_ip=[Cluster IP address] create
22. Wait for the cluster build process to complete (about 15 minutes)
23. Go to the cluster URL (https://[Cluster IP address]:9440
U: admin
P: nutanix/4u
24. Change the admin password
25. Complete the EULA form and click Accept
26. Click Continue to enable Pulse
27. At this point, we can start configuring the cluster via the UI:
28. Click on the cluster name in the top-left corner of the screen
29. Enter the FQDN and data services IP, click save
30. Click on the dropdown box next to the cluster name and select ‘Storage’
31. Click on ‘Table’
32. Select the storage pool and click ‘Update’
33. Change the storage pool name
34. Click on ‘Storage Container’
35. Click on ‘+ Storage Container’’ at the top-right corner
36. Enter an appropriate name for the storage container
37. Click on the dropdown box next to the cluster name and select ‘Settings’
38. Click on ‘Name Servers’
39. Enter the servers by host or IP (enter one at a time) and click Add
40. Click on ‘NTP Servers’ and enter time servers (pool.ntp.org is a safe bet)
41. Optional: Configure SNMP
42. Optional: Configure SSL Certificate
43. Optional: Configure Authentication
44. Configure ‘Alert Email Configuration’ and ‘SMTP Server’
45. Click on the dropdown box next to the cluster name and select ‘LCM’
46. Click on ‘Run NCC’ and wait for it to complete
47. Click on the Inventory tab and click on ‘Perform Inventory’
48. Check the box to ‘Enable Auto Inventory’ and configure a time
49. Optionally, check ‘enable auto update for NCC’
50. Click Proceed
51. Install all available updates in the appropriate order (https://portal.nutanix.com/page/documents/details?targetId=Acropolis-Upgrade-Guide-v6_7:upg-upgrade-recommended-order-t.html)
52. Optional: Connect the new cluster to an existing Prism Central environment

Leave a Reply