Skip to content
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

Build 'vsphere-iso' errored: error creating vm: folder '/datacenter/vm/' not found #8766

Closed
Klashblack opened this issue Feb 18, 2020 · 4 comments · Fixed by #9390
Closed

Comments

@Klashblack
Copy link

The following error i get is because our Datacenter is in a folder
/WEST/DATACENTER/

Can we get a option or a way to add a folder if the datacenter is in a folder?

==> vsphere-iso: Creating VM...
Build 'vsphere-iso' errored: error creating vm: folder '/DATACENTER/vm/' not found

==> Some builds didn't complete successfully and had errors:
--> vsphere-iso: error creating vm: folder '/DATACENTER/vm/' not found

==> Builds finished but no artifacts were created.
{

"builders": [
{
"type": "vsphere-iso",
"vcenter_server": "vcenterserver,
"username": "{{user vsphere_username}}",
"password": "{{user vsphere_password}}",
"datacenter": "datacenter",
"cluster": "CLUSTER1",
"communicator": "winrm",
"winrm_username": "Administrator",
"winrm_password": "{{user admin_password}}",
"vm_name": "W2K19STDX64TEST",
"convert_to_template": "true",
"datastore": "datastore",
"cpus": "2",
"ram": "4096",
"network_card": "vmxnet3",
"disk_controller_type": "lsilogic-sas",
"CPU_hot_plug": true,
"RAM_hot_plug": true,
"disk_size": "51200",
"iso_paths": [
"[datastore] ISO - Windows Server/SW_DVD9_Win_Server_STD_CORE_2019_1809.1_64Bit_English_DC_STD_MLF_X22-02970.ISO",
"[datastore] ISO - Windows Server/VMware-tools-windows-10.3.10-12406962.iso"
],
"floppy_files": [
"setup/autounattend.xml",
"setup/setup.ps1",
"setup/vmtools.cmd"
]
}
],
"provisioners": [
{
"type": "windows-update"
}
]

Packer version

1.5.4

@luis-garza
Copy link

Hi! we are facing the same issue with vsphere-clone builder, we also have the datacenter inside a folder.
Would be really nice if someone could plan a fix for it, as thisis totally blocking us to use Packer in our private cloud.

@RPitt
Copy link

RPitt commented Jun 4, 2020

I think this is a duplicate of #9328 Fix packer vsphere-iso builder folder path now closed.

@TmCTux
Copy link

TmCTux commented Jun 9, 2020

I believe the current nighlty build has integrated this change, but it still doesn't seem to fix the issue (I've tested it this morning and it still doesn't find the nested datacenter). So even though this one does look duplicate I'd keep it open for now.

@ghost
Copy link

ghost commented Jul 11, 2020

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.

@ghost ghost locked and limited conversation to collaborators Jul 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants