5 Essential Tips for Maximizing Your Experience at Nutanix .NEXT for Bloggers
Is there a way to execute a script (or PowerShell script/command) inside a newly created AHV VM which does not have an IP address yet? The VM has Nutanix Guest Tools installed. I’m looking for automating the creation of a new VM. In VMware, I use the Invoke-VMScript command. I didn’t know if Nutanix had something similar? Thanks! -TimG
Using PowerShell and AOS 5.11 and same version cmdlets... I have an AHV VM in the object $VM that I retrieved from Prism Central. I'm trying to retrieve the NIC information but I keep getting an error: PS E:\Scripts> get-ntnxvmnic -vmid $vm.uuid -IncludeAddressAssignments Error occurred while getting NIC list of VM get-ntnxvmnic : The remote server returned an error: (500) Internal Server Error. At line:1 char:1 + get-ntnxvmnic -vmid $vm.uuid -IncludeAddressAssignments + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (Nutanix.Prism.Common.NutanixCluster:NutanixCluster) [Get-NTNXVMNIC], WebException + FullyQualifiedErrorId : {"message":"Error occurred while getting NIC list of VM"},Nutanix.Prism.PS.Cmds.Acropolis.GetVMNIC I get a similar error if I specify the UUID (this VM only has 1 NIC): PS E:\Scripts> get-ntnxvmnic -vmid $vm.uuid -nicid $vm.virtualNicUuids -IncludeAddressAssignments For input string: "Sy" get-ntnxvmnic :
Using PowerShell and AOS 5.11 connecting to Prism Central of mixed hypervisor environment (VMware and AHV), is there a quick way to return just the AHV VM's? I see there are some search string, filter criteria, etc.. options for Get-NTNXVM Right now, there are 1600 VMs and the ones I am looking for are AHV. I can retrieve the whole list from Prism Central but I wondered if I could have it only send a filtered list. $VMList = Get-NTNXVM | Where { $_.acropolisVm -eq "True" } but that reads all 1600 VMs from Prism Central... Thanks!
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.