A component of the virtual machine is not accessible on the host #32
-
Hello, Thanks for the project. I am trying to build an ubuntu 20.04 image and I get the following error: |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
Hi! This project is designed to provide working examples for using Packer with a vSphere environment that includes a vCenter Server instance. It uses the objects, such as, datacenter, cluster, and content library. Can you confirm your environment meets these requirements? Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hi Ryan, index 9f9472e..8765188 100644
--- a/builds/linux/ubuntu-server-20-04-lts/ubuntu-server-20-04-lts.pkr.hcl
+++ b/builds/linux/ubuntu-server-20-04-lts/ubuntu-server-20-04-lts.pkr.hcl
@@ -351,7 +351,8 @@ source "vsphere-iso" "linux-ubuntu-server" {
// vSphere Settings
datacenter = var.vsphere_datacenter
- cluster = var.vsphere_cluster
+ // cluster = var.vsphere_cluster
+ host = var.vsphere_cluster
datastore = var.vsphere_datastore
folder = var.vsphere_folder |
Beta Was this translation helpful? Give feedback.
-
Since you are running on vSphere 6.7 (the repo is designed for 7.0 U2+) did you downlevel the hardware version from 18 down to 14 (6.7 GA) or 16 (6.7 U2) in Ryan |
Beta Was this translation helpful? Give feedback.
-
I tried both 14 and 16, same error. I'll dig a bit deeper and revert back. |
Beta Was this translation helpful? Give feedback.
-
Any luck? |
Beta Was this translation helpful? Give feedback.
-
I was able to recreate the issue by bumping the to a version that does not exist in vSphere 7.0 U2. This resulted in the exact same error. Refer to the following for supported version numbers: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-789C3913-1053-4850-A0F0-E29C3D32B6DA.html Ryan |
Beta Was this translation helpful? Give feedback.
I was able to recreate the issue by bumping the to a version that does not exist in vSphere 7.0 U2.
This resulted in the exact same error.
Refer to the following for supported version numbers: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-789C3913-1053-4850-A0F0-E29C3D32B6DA.html
Ryan