-
Notifications
You must be signed in to change notification settings - Fork 452
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
Importing r/virtual_machine
with SATA disks fails with "VM resource supports SCSI disks only"
#1189
Comments
I am trying to import vm with ide disk (it's and old linux based legacy router) and get error:
Terraform v0.13.4 |
|
Still there when cloning a VM with IDE disk: The error seems to come from https://github.com/hashicorp/terraform-provider-vsphere/blob/master/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go. weird, since in theory ide disk support has been added with pull #1118 |
Finally got around to testing #1118 and running into this issue. Any chance to get this issue looked at? |
Hi ! Same problem here! 😞
Did you find any workaround yet? |
Hello guys, any news about this issue? |
We're getting the same issue when trying to use the EMC Isilon VM from here: https://downloads.emc.com/usa/Isilon/EMC_Isilon_OneFS_9.1.0.0_Simulator.zip Any workaround? |
@tenthirtyam Any chance you could take a look at this and try to recreate using the EMC Isilon VM linked in the comment above? Looks like it might be quick to fix. |
I've added this to one of the milestones for triage. Regarding IDE seen in the responses quoted below (@aloforte @ssodhi @krunal-git) did these VM imports have no CD-ROM? Currently
and
|
@tenthirtyam The EMC Isilon VM (https://downloads.emc.com/usa/Isilon/EMC_Isilon_OneFS_9.1.0.0_Simulator.zip) that encountered this error does not have a CD-ROM. This is a common use case for simulating a physical hardware storage environment where the OS is booted off a Compact Flash/SD card so it doesn't interfere with the SCSI controller. The EMC Isilon VM OVA is ~300mb making it an easy way to reproduce the issue in your lab.
|
While reviewing the code, I noticed the same check
terraform-provider-vsphere/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go Lines 797 to 805 in 76c948a
terraform-provider-vsphere/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go Lines 1095 to 1097 in 76c948a
|
Yep! I'm quite familiar with the this virtual storage appliance as well some of the others (e.g. Dell EMC UnityVSA). I'll take a look at a reproduction with the Isilon OVA soon. Ryan Johnson |
Indeed, I was reviewing the same earlier. It needs to be triaged since all but NVME should be supported as I recall. (The latter being an existing enhancement request.) |
After some addition code review, it does appear that these are the likely pointers to the issue and that these were not completed lifted as a part of #1118. Ryan |
r/virtual_machine
with SATA disks fails with "VM resource supports SCSI disks only"
Hi @dhekimian 👋 - I took a moment this morning to look at the use of the Dell EMC Isilon VSA example for an import. A terraform import of this virtual appliance fails first because error: disk.0: unsupported controller type ide for disk "Isilon 9.1.0.0/Isilon 9.1.0.0-000001.vmdk". Please use a template with SCSI disks only [root@esx:/vmfs/volumes/EMC Isilon 9.1.0.0_1] cat EMC\ Isilon\ 9.1.0.0.vmx
.encoding = "UTF-8"
cleanShutdown = "TRUE"
config.readOnly = "FALSE"
config.version = "8"
displayName = "EMC Isilon 9.1.0.0"
evcCompatibilityMode = "TRUE"
floppy0.present = "FALSE"
guestOS = "freeBSD-64"
hpet0.present = "TRUE"
ide0:0.fileName = "EMC Isilon 9.1.0.0-000001.vmdk" <------|
ide0:0.present = "TRUE" <------| ide0:0 - See GH-1354
ide0:0.redo = "" <------| For this issue, I'll test with a custom virtual machine / appliance examples to see if I can narrow down the issue. Ryan Johnson |
Updates the `DiskCloneValidateOperation` and `DiskImportOperation` functions in `virtual_machine_disk_subresource` to add support for SATA and IDE controllers and disks. #1189 Signed-off-by: Ryan Johnson <[email protected]>
Pull request #1629 has been submitted for review which updates the Marked for Milestone v2.2.0. Ryan Johnson |
Updates the `DiskCloneValidateOperation` and `DiskImportOperation` functions in `virtual_machine_disk_subresource` to add support for SATA and IDE controllers and disks. #1189 Signed-off-by: Ryan Johnson <[email protected]>
Updates the `DiskCloneValidateOperation` and `DiskImportOperation` functions in `virtual_machine_disk_subresource` to add support for SATA and IDE controllers and disks. #1189 Signed-off-by: Ryan Johnson <[email protected]>
Updates the `DiskCloneValidateOperation` and `DiskImportOperation` functions in `virtual_machine_disk_subresource` to add support for SATA and IDE controllers and disks. #1189 Signed-off-by: Ryan Johnson <[email protected]>
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
0.13.1
vSphere Provider Version
1.23.0
Affected Resource(s)
vsphere_virtual_machine
Terraform Configuration Files
Debug Output
https://gist.github.com/kradalby/bbfd1c75fedced211e15d0390a5255d4
Expected Behavior
Virtual machine should have been imported to my TF state
Actual Behavior
Fails with:
Error: disk.0: unsupported controller type sata for disk sata:0:0. The VM resource supports SCSI disks only
Steps to Reproduce
Important Factoids
References
Support added in:
Community Note
The text was updated successfully, but these errors were encountered: