# VSphere Provider: error processing disk changes post-clone

**URL:** <https://discuss.hashicorp.com/t/vsphere-provider-error-processing-disk-changes-post-clone/9095>\
**Category:** VMware\
**Created:** [May 22, 2020, 12:09pm UTC](https://discuss.hashicorp.com/t/vsphere-provider-error-processing-disk-changes-post-clone/9095 "2020-05-22T12:09:06Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjupalli](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/mjupalli/32/7186_2.png) [@mjupalli](https://discuss.hashicorp.com/u/mjupalli)\
**Post date:** [May 22, 2020, 12:09pm UTC](https://discuss.hashicorp.com/t/vsphere-provider-error-processing-disk-changes-post-clone/9095/1 "2020-05-22T12:09:06Z")

</div>

Hi All,

I am trying to build a VM in vmware vcenter using terraform(V0.12.24). The vspehere provider version is 1.18.1. However getting below error:

Error: error reconfiguring virtual machine: error processing disk changes post-clone: disk.0: ServerFaultCode: NoPermission: RESOURCE (vm-159576:2000), ACTION (queryAssociatedProfile): RESOURCE (vm-159576), ACTION (PolicyIDByVirtualDisk)

The same code works with vpshere provider version 1.15.0. Anything above that fails with same error. What is causing this issue? Any hints or ideas would be much appreciated.

Thanks all in advance.

---

<div class="post-metadata">

**Author:** ![DimitrisMilonas](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/dimitrismilonas/32/7372_2.png) [@DimitrisMilonas](https://discuss.hashicorp.com/u/DimitrisMilonas)\
**Post date:** [May 28, 2020, 10:59am UTC](https://discuss.hashicorp.com/t/vsphere-provider-error-processing-disk-changes-post-clone/9095/2 "2020-05-28T10:59:47Z")

</div>

Hey,  
Is there any update on this issue?  
I have the same issue with Terraform v0.12.25 and vsphere provider version 1.18.2. I tried downgrading to vsphere v1.15.0 but didnt solve it for me.

Error was “Virtual machine customization failed”

---

<div class="post-metadata">

**Author:** ![mjupalli](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/mjupalli/32/7186_2.png) [@mjupalli](https://discuss.hashicorp.com/u/mjupalli)\
**Post date:** [July 21, 2020, 9:24am UTC](https://discuss.hashicorp.com/t/vsphere-provider-error-processing-disk-changes-post-clone/9095/3 "2020-07-21T09:24:25Z")

</div>

No updates as of now. Still trying to find what is causing this issue. vsphere v1.15 works for me.

---

<div class="post-metadata">

**Author:** ![ashischangan](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/ashischangan/32/12564_2.png) [@ashischangan](https://discuss.hashicorp.com/u/ashischangan)\
**Post date:** [October 8, 2020, 2:48pm UTC](https://discuss.hashicorp.com/t/vsphere-provider-error-processing-disk-changes-post-clone/9095/4 "2020-10-08T14:48:41Z")

</div>

Is there any update on this issue? I am facing same issue with vsphere v1.24.0 version  
and Terraform v0.13.4

Error: error reconfiguring virtual machine: error processing disk changes post-clone: disk.0: ServerFaultCode: NoPermission: RESOURCE (vm-101923:2000), ACTION (queryAssociatedProfile): RESOURC  
E (vm-101923), ACTION (PolicyIDByVirtualDisk)

---

<div class="post-metadata">

**Author:** ![baannee](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/baannee/32/14113_2.png) [@baannee](https://discuss.hashicorp.com/u/baannee)\
**Post date:** [October 30, 2020, 1:46pm UTC](https://discuss.hashicorp.com/t/vsphere-provider-error-processing-disk-changes-post-clone/9095/5 "2020-10-30T13:46:23Z")

</div>

I am experiencing the same issue. Any update?

---

<div class="post-metadata">

**Author:** ![artinesrailian](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@artinesrailian](https://discuss.hashicorp.com/u/artinesrailian)\
**Post date:** [January 25, 2021, 11:30am UTC](https://discuss.hashicorp.com/t/vsphere-provider-error-processing-disk-changes-post-clone/9095/6 "2021-01-25T11:30:36Z")

</div>

Anyone? any update on this?  
I have the same issue, please inform us on how to solve this issue or any workaround will be appreciated.

---

<div class="post-metadata">

**Author:** ![artinesrailian](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@artinesrailian](https://discuss.hashicorp.com/u/artinesrailian)\
**Post date:** [January 27, 2021, 5:28am UTC](https://discuss.hashicorp.com/t/vsphere-provider-error-processing-disk-changes-post-clone/9095/8 "2021-01-27T05:28:14Z")

</div>

It must be permission related issue. Is your provisioning user administrator?  
Please provide more details with your scenario and error codes so we can help you.

---

<div class="post-metadata">

**Author:** ![shocko](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/shocko/32/16633_2.png) [@shocko](https://discuss.hashicorp.com/u/shocko)\
**Post date:** [April 16, 2021, 9:53am UTC](https://discuss.hashicorp.com/t/vsphere-provider-error-processing-disk-changes-post-clone/9095/9 "2021-04-16T09:53:14Z")

</div>

For me on vSphere 6.7 U3 it was the privilege **StorageProfile.View**

---

<div class="post-metadata">

**Author:** ![yiwryos](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/yiwryos/32/18765_2.png) [@yiwryos](https://discuss.hashicorp.com/u/yiwryos)\
**Post date:** [April 20, 2021, 9:19pm UTC](https://discuss.hashicorp.com/t/vsphere-provider-error-processing-disk-changes-post-clone/9095/10 "2021-04-20T21:19:06Z")

</div>

Is there an update on the cause of this issue? Getting the same error using terraform version 0.14.10 and VSphere version 6.7.0.46000. Just for clarity this does work with administrator account. I’m looking to have this working with a custom account with the proper roles assigned to that account.

---

<div class="post-metadata">

**Author:** ![lui\_eu](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/lui_eu/32/24120_2.png) [@lui\_eu](https://discuss.hashicorp.com/u/lui_eu)\
**Post date:** [November 30, 2021, 11:39am UTC](https://discuss.hashicorp.com/t/vsphere-provider-error-processing-disk-changes-post-clone/9095/11 "2021-11-30T11:39:36Z")

</div>

On vcenter, change the role permission and set Storage Views → “View” permission.  
Other permissions:

- Datastore
  - Allocate space
  - Browse datastore
  - Low level file operations
  - Remove file
  - Update virtual machine files
  - Update virtual machine metadata

- Folder (all)
  - Create folder
  - Delete folder
  - Move folder
  - Rename folder

- Network
  - Assign network

- Resource
  - Apply recommendation
  - Assign virtual machine to resource pool

- Virtual Machine
  - Configuration (all) - for now
  - Guest Operations (all) - for now
  - Interaction (all)
  - Inventory (all)
  - Provisioning (all)

---

<div class="post-metadata">

**Author:** ![steve.fernandes](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@steve.fernandes](https://discuss.hashicorp.com/u/steve.fernandes)\
**Post date:** [August 8, 2024, 3:35pm UTC](https://discuss.hashicorp.com/t/vsphere-provider-error-processing-disk-changes-post-clone/9095/12 "2024-08-08T15:35:11Z")

</div>

Just incase anyone else is having problems, for versions of vSphere \> 7,

At the root object of vCenter, you must enable:  
**VM storage policies**

- Update VM storage policies
- View VM storage policies

Prior to version 8, these two fields were found under

**Profile-driven Storage**

- Update VM storage policies
- View VM storage policies
