the question is about creating template with multiple virtual disks.So I have Nutanix cluster with Acropolis hypervisor and few storage containers, let's say "template", "customer-A".I have an RHEL 7 based virtual machine with few scsi virtual disks, let's say just two so far - one for root partition and one for swap (in reality - more).I would like to clone this RHEL virtual machine to new one but on "customer-A" storage container. If I just in Prism will do "clone" for this VM - it will offer me almost what I want - new virtual machine with correct amount of CPU, RAM and all virtual disks BUT on same storage container where current virtual machine is resided, but I would like to have new one on different storage container.
I "googled" and found a lot of "guides" how to do so using command like "acli image.create My-Template-v1 clone_from_vmdisk=vm:current-template-vm:scsi.0" but it converts only one virtual disk not all that belongs to "source" virtual machine. All those articles and videos I have found in InterNet were only for VMs that have just one virtual disk. So for me it looks like I have to run "acli image.create" command as many times as I have virtual disks in my original virtual machine I would like use as template, then later create new VM using all of those disk images.
If we will take as example VMware templates - you can have multiply virtual disks in one template and during cloning new VM from template in VMware you do not have to specify separate "disk image" for every single VHDD in template - just one simple "deploy new virtual machine" command with pointing to datastore where new VM should be resided.
Is there in Nutanix with AHV similar functional in GUI or CLI? Or I have to create bunch of disk images?
PS: If I missed some part of documentation or article where it is described pls provide a link.
Best answer by farhanparkar
Currently, there is no direct way to achieve what you are expecting although the new release might have the possibility. To move the VMs to another container check on the KB2663 for the procedure using image service and acli.
As for the template VMs using multiple disks, you need to add all the disks to image services and create VM from the disks using same disk order. I believe upcoming calm automation will make it possible to achieve that in a simple way.