storage containers and images | Nutanix Community
Skip to main content
Solved

storage containers and images


Forum|alt.badge.img+2

We have just had a new cluster installed and its running AHV, I have used Nutanix for about 6 years but always with ESX so its all a bit new to me!

I’m sure I’ll have a few questions but currnetly I have this annoying issue! I have uploaded a few images to PC, qcow2 files, but when I deploy a VM using the images it always creates the VMs in the selfservicecontainer storage container, which is a tad annoying as I then have to move it manually using  acli vm.update_container vm-name container=container name wait=false In PC the storage container drop down box for the VM is grayed out so I can’t change it in the PC web GUI.  the cli works but I would like to create the VM in what ever storage container I want without having to move it after the event!  Is this possible? 

Best answer by DylanH

No exactly I meant you must to select the storage container when you upload the qcow2 through PrismElement. 

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

10 replies

DylanH
Forum|alt.badge.img+2
  • Trendsetter
  • 46 replies
  • November 21, 2024

Hi, Apart from doing it from prism element I don't know. I'm also interested to know if anyone has the answer/tips.


Forum|alt.badge.img+2
  • Author
  • Trailblazer
  • 31 replies
  • November 21, 2024

you can’t from PE either, if you select clone from image service there is no option to choose where the disk gets created


DylanH
Forum|alt.badge.img+2
  • Trendsetter
  • 46 replies
  • Answer
  • November 21, 2024

No exactly I meant you must to select the storage container when you upload the qcow2 through PrismElement. 


Forum|alt.badge.img+2
  • Trendsetter
  • 44 replies
  • November 21, 2024

Same concern. It seems no way to have a simple solution. What we could do is either using CLI command or using PC to update disk container after VM created.


Forum|alt.badge.img+2
  • Author
  • Trailblazer
  • 31 replies
  • November 21, 2024
LinKan wrote:

Same concern. It seems no way to have a simple solution. What we could do is either using CLI command or using PC to update disk container after VM created.

the option to do it in PC for a VM deployed via image is grayed out, so you have to use the acli 

 


JeroenTielen
Forum|alt.badge.img+8
  • Vanguard
  • 1352 replies
  • November 21, 2024

That is how it works. Images uploaded via PC will come in the selfservicecontainer for all clusters that the image is uploaded to. 

Images uploaded via prism element you can choice a storagecontainer (during upload), not afterwards. 

All machines created from the image are placed in the storage container where the image resides. 

Now the fun part, try to switch over to use storage policies. So all vm's can stay in the selfservicestorage container. With storage policies you can change the compression/rf/encryption/etc when needed for that vm. So you never have to "storagemigrate” the vdisks again. (which needs to be done via cli and is not possible via PE/PC)


Forum|alt.badge.img+2
  • Author
  • Trailblazer
  • 31 replies
  • November 21, 2024

so you can change the compression\dedupe per VM rather than at the storagecontainer level?


JeroenTielen
Forum|alt.badge.img+8
  • Vanguard
  • 1352 replies
  • November 21, 2024

@Khoskin correct. But not dedupe ;) I've updated my post ;) 


Forum|alt.badge.img+2
  • Author
  • Trailblazer
  • 31 replies
  • November 21, 2024

ok we don’t use depupe or erasure coding anyway.  Are there any docs for best practice for what workloads benefit from offline\inline compression, dedupe and erasure coding?  We have a mixed workload of general purpose VM’s but a few fileservers and SQL boxes.


JeroenTielen
Forum|alt.badge.img+8
  • Vanguard
  • 1352 replies
  • November 21, 2024

Hereby: https://portal.nutanix.com/page/documents/solutions/details?targetId=TN-2032-Data-Efficiency:TN-2032-Data-Efficiency#:~:text=Deduplication%20and%20compression%20generate%20dramatic,and%20workloads%20without%20affecting%20performance.

 

We recommend compression for almost all use cases except the following workloads:

  • Encrypted datasets

  • Compressed datasets (images, audio, and video)

We recommend using EC-X for write once, read many (WORM) workloads and other workloads with limited overwrites:

  • Nutanix Objects

  • Backups

  • Archives

  • File servers

  • Log servers

  • Email (depending on usage)

Don't use EC-X with the following workloads:

  • Anything write or overwrite intensive

  • VDI

We recommend deduplication for the following workloads:

  • Full clones in VDI

  • Persistent desktops

  • P2V and V2V when using Hyper-V because Windows Offloaded Data Transfer (ODX) uses a full data copy