Enthusiast
Enthusiast

Can't the Custom Property and Component Profile be used together?

Jump to solution

I used Component Profiles to make it possible to select the OS when the VM is deployed.

Component Profiles.PNG

I also used Custom property to select datastores when deploying VMs.

Custom Property.PNG

However, if I select something other(In my case, Windows-Server) than Default value Sets,

Select Value Sets.PNG

Select-Submit.PNG

The Custom property value is empty and the VM is not placed on the datastore I selected.(3PAR-LUN5).

Empty.PNG

If I deploy as a Linux Template selected as Default Value, the VM is normally deployed on the datastore I select.

How can I solve this problem?

Please give me a lot of advice.

Many Thanks

0 Kudos
1 Solution

Accepted Solutions
Immortal
Immortal

You can't use those custom properties with a component profile because component profiles cannot reference custom properties. You're probably going about this in the wrong way to begin with. Rather than setting disk-level custom properties, you should be creating and leveraging storage reservation policies. Read the docs for how those work.

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.

View solution in original post

0 Kudos
4 Replies
Immortal
Immortal

You can't use those custom properties with a component profile because component profiles cannot reference custom properties. You're probably going about this in the wrong way to begin with. Rather than setting disk-level custom properties, you should be creating and leveraging storage reservation policies. Read the docs for how those work.

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.

View solution in original post

0 Kudos
Enthusiast
Enthusiast

So how can I use those two things together?

I'd appreciate it if you could just tell me how to do it.

I used a storage reservation policy (VirtualMachine.DiskN.StorageReservationPolicy)

0 Kudos
Immortal
Immortal

To use both together you'll need to apply some backend logic that associates a storage reservation policy with the value of the custom property that represents the image. You can manually do this in vRO with custom code, but I don't do that and instead use the Property Toolkit to apply that dynamically.

0 Kudos
Enthusiast
Enthusiast

Thank you very much!

I will look for Property Toolkit.

If I ask you again, Please welcome me.  :smileylaugh:

0 Kudos