Here are some helpful resources for scripting to the Nutanix API via PowerShell or other languages. I’ll continue to add more as I come across them. Feel free to leave your favorite resources in the comments section below! 🙂
Cmdlets references with clickable links on each cmdlet that shows syntax
Cmdlet poster so you can decorate your cube with it 🙂
Cmdlet “how to” on the Bible and some other examples
Scripts and other posts on the Community Forum
Github repository with scripts (some PowerShell, some others)
The Nutanix App for Splunk allows customers of Splunk® Enterprise and Nutanix to visualize and view the state of their cluster from Splunk. In addition, the app allows users to view log events surrounding all Nutanix processes and search specific Nutanix syslog data within the app.
Find the app here: https://splunkbase.splunk.com/app/3102/
This lesson will show you how to create an image service template from an existing virtual machine, without having to export/import the VM.
Continue reading “Nutanix Acropolis Hypervisor (AHV) – Create an Image Service Template from an Existing VM”
A few of my customers have asked if the Dell KACE virtual appliance will work on the Nutanix Acropolis Hypervisor (AHV). So I made a short video below showing the installation of the virtual appliance and how it does work on AHV. For any questions, please submit them in the comments section below. Thanks!
I’ve been asked a few times on how to register Prism with a Prism Central instance and I thought I would make a quick video to show the process. Here it is below!
About the DNS cache
OS X keeps a local cache of resolved DNS queries for a time defined by the DNS server. Sometimes it might be necessary to reset the cache immediately and re-query a DNS server. For example, you might need to do this if you are a network or server administrator and an entry on your DNS server has recently changed.
If your Mac isn’t using the latest DNS entries from your server, you can restart your Mac to update its cached information. If you need to update DNS entries on a server using OS X and you can’t restart the server, use the terminal commands below for the version of OS X you’re using.
OS X Yosemite, El Capitan and later
Use the following Terminal command to reset the DNS cache in OS X v10.10.4 or later:
sudo killall -HUP mDNSResponder
Use the following Terminal command to reset the DNS cache in OS X v10.10 through v10.10.3:
sudo discoveryutil mdnsflushcache
OS X Mavericks, Mountain Lion, and Lion
Use the following Terminal command to reset the DNS cache in OS X v10.9.5 and earlier:
sudo killall -HUP mDNSResponder
Mac OS X Snow Leopard
Use the following Terminal command to reset the DNS cache in OS X v10.6 through v10.6.8:
sudo dscacheutil -flushcache
Moving VM’s from ESXi to the Acropolis Hypervisor (AHV) is quite simple. Here are the high-level steps:
- First, install the Nutanix VirtIO package into the VM(’s) you are moving – driver package can be downloaded here: https://s3.amazonaws.com/ntnx-portal/mobility/1.0.1/Nutanix-VirtIO-1.0.1.msi (or find the latest on the http://portal.nutanix.com site)
- Whitelist the subnet (In Prism, Gear icon -> Filesystem Whitelists) so that we can access the Nutanix Distributed Storage Container from any host
- Mount it as an NFS mount (ESX) or as a SMB Shared Path (Hyper-V) on the hypervisor hosts you are coming “from”
- Power-off the Source VM
- Clone or Move (your choice) the Source VM onto the shared storage container
- Create a new VM in Prism and specify CPU, RAM and add a NIC/vLan adapter
- To add a disk, configure it as follows:
- Type: Disk
- Operation: Clone from ADSF file
- Bus Type: SCSI
- Path: provide the path to the VM’s Flat VMDK file. To see options, type / to start the autocomplete dropdown
- Once VM is configured, power-on and it should boot right up
Here’s also a helpful blog post that shows the above with a video:
Hope it helps and happy converting! 😉
A very helpful post by Michael Webster showing how to install the Nutanix Community Edition, nested onto ESXi 6.0, which would be perfect for customers who want to test out CE without reloading their existing test servers.
Thanks Michael! 😉
Usually the latest VAAI plugin version is installed/updated along with our Foundation or upgrade process, but if you need to update the VAAI plugin version, just run this simple command from any Controller VM (CVM):
for i in `hostips`; do echo $i; scp \
~/data/installer/*4.0*/pkg/nfs-vaai-plugin.vib root@$i:/var/tmp/; \
echo "about to install"; ssh root@$i "esxcli software vib install -v \
/var/tmp/nfs-vaai-plugin.vib -f"; done
You can now set or disable the timeout for Prism within the GUI with NOS 4.1.3, which is now available via one-click upgrade.
Prism Web Console/Prism Central
You can set a timeout value after which you are automatically logged out of the Prism or Prism Central web console. This setting prevents you from being automatically logged out after 15 minutes of inactivity. See “Modifying UI Settings” in the Web Console Guide, found here: https://portal.nutanix.com/#/page/docs/details?targetId=Web_Console_Guide-NOS_v4_1:wc_ui_settings_modify_wc_t.html
- In the main menu, select UI Settings from the gear icon pull-down list on the right (see Main Menu Options). The UI Settings window appears.
Figure: UI Settings Window
- To disable the login page background animation, uncheck the Enable animation at login page box (or check it to enable).
- To configure automatic logout, do the following in the Automatically log out when idle for more than <number> minutes field:
- To disable automatic logout, uncheck this box (or check it to enable).
- To reset the timeout interval, enter the desired number of minutes in the<number> box. The number can be any positive integer.
Note: Automatic logout cannot be disabled for an administrator (admin user), and the timeout internal for an administrator cannot be set for longer than 60 minutes.
- Click the Close button to close the window.