VMware Cloud Community
MICDROP
Enthusiast
Enthusiast
Jump to solution

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

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

Reply
0 Kudos
1 Solution

Accepted Solutions
daphnissov
Immortal
Immortal
Jump to solution

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

Reply
0 Kudos
4 Replies
daphnissov
Immortal
Immortal
Jump to solution

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.

Reply
0 Kudos
MICDROP
Enthusiast
Enthusiast
Jump to solution

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)

Reply
0 Kudos
daphnissov
Immortal
Immortal
Jump to solution

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.

Reply
0 Kudos
MICDROP
Enthusiast
Enthusiast
Jump to solution

Thank you very much!

I will look for Property Toolkit.

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

Reply
0 Kudos