-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When creating a VM, two hard disks are being created when only one disk
block is specified
#1944
Comments
Hello, grothja! 🖐 Thank you for submitting an issue for this provider. The issue will now enter into the issue lifecycle. If you want to contribute to this project, please review the contributing guidelines and information on submitting pull requests. |
I circled back to this, and found that there isn't a bug with creating two disks, but maybe a bug (or possible enhancement) for displaying which disks are being created. For other's sake, my Packer source "vsphere-clone" "rocky" {
...
storage {
disk_size = 40000
disk_thin_provisioned = true
}
} But was in reality creating an extra disk. With that though, when looking at the vSphere template in a TF data source, it was only showing a single disk:
And as seen above, when creating, it only showed a single disk block for disks being created. It's possible this is related to how vSphere presents this information, and as such there's nothing this Terraform provider can do, but ideally it would show that two disks are being created. If this is not a TF provider issue though, feel free to close this out. |
I am running into the same issue as you. But I am using RHEL and vSphere 8. I thought it might be because the disk size does not match with the disk size in the template. But when I try to access the templates disks, I get the following error:
Something seems to be off here, but I cannot put a finger on it yet. I am doing some more troubleshooting and then might open up a separate issue for my problem. |
I think I have the same issue! I created my VMs with
Yet, when I wanted to recreate my state my importing the VM, I ended up with a diff like this: Changing |
Community Guidelines
Terraform
1.5.1
Terraform Provider
2.4.1
VMware vSphere
7.0.3
Description
When I create a VM cloned from a template, two hard disks are being created, but I'm only specifying a single
disk {}
block. The primary root//dev/sda
device will match what is in thedisk
block (e.g., if I specify 50GB, Hard Disk 1 in vSphere will be 50GB), and the second device always matches the template disk size (40GB)It's definitely possible I'm just missing something obvious, but I've searched through the issues in this repo and wasn't able to come up with anything...
Affected Resources or Data Sources
resource/vsphere_virtual_machine
Terraform Configuration
Debug Output
Plan output:
Panic Output
No response
Expected Behavior
A single disk created instead of two
Actual Behavior
two disks are created
Steps to Reproduce
I've tested this against multiple vSphere provider versions with no luck...
Environment Details
No response
Screenshots
No response
References
No response
The text was updated successfully, but these errors were encountered: