Closed jsquyres closed 4 months ago
Ping. Any thoughts on this? Thanks!
It's been a few months. Any thoughts on this issue?
Hi there! Based on the details provided it's unknown...:
Ryan Johnson Distinguished Engineer, VMware by Broadcom
Hello! 👋
This issue has not received any update from the OP in the last 7 days.
Please feel free to comment and/or reopen this issue if the issue persists.
Overview of the Issue
I am using
vsphere-clone
to clone an OVA of Alma 9 that was just uploaded to my vsphere. I cannot figure out how to set a static IP address in the resulting packer-instantiated VM:vapp
-->properties
-->user-data
to specify cloud init data, it seems to execute (mostly) properly, but somehow thenetwork
cloud init stanza gets wholly ignored and the VM tries to DHCP (in my environment, the DHCP will fail, and the VM will come up without networking setup).customize
and try to set a fixed IP address vianetwork_interfaces
, the VM comes up with the network device present but disconnected in vsphere. Since the device is disconnected, no networking gets setup in the VM.Reproduction Steps
There's 2 cases I'm unable to make work properly:
Using vapp --> properties --> user-data (i.e., clout init)
vapp
-->properties
-->user-data
with base64-encoded cloud init dataruncmd
stanza inuser-data
(echo hello world
)network
stanza inuser-data
that assigns a static IPvsphere-clone
, cloning a freshly-created Alma 9 OVAecho hello world
run from cloud initUsing customize
customize
that sets a fixed IP address (vianetwork_interface
)vsphere-clone
, cloning a freshly-created Alma 9 OVAPacker Version
Plugin Version and Builders
Please provide the plugin version.
1.2.3
Please select the builder.
vsphere-iso
vsphere-clone
VMware vSphere Version
Please provide the VMware vSphere version.
7.0.3.01700
Guest Operating System
Alma 9 (latest).
Simplified Packer Buildfile
There's 2 cases I'm unable to make work properly:
Using vapp --> properties --> user-data (i.e., clout init)
This case executes all the cloud init stuff in my Alma 9 VM properly, except that my
network
stanza is wholly skipped. Instead, I can see in the cloud-init logs that it tried to DHCP. Does thevmware-clone
plugin somehow substitute in its ownnetwork
stanza to cloud init that overrides mynetwork
stanza (and tells cloud init to DHCP)?My cloud init user-data is quite bare bones:
The user is created properly (and I can login on the console), and the "hello world" is emitted in the logs. So all that ran correctly.
But per above, my
network
stanza is ignored and somehow cloud init tries toDHCP
, instead.Using customize
In this case, the VM boots up with a network device present, but disconnected. Hence, whatever networking is setup in the VM initialization doesn't occur. If I go into vsphere and click the "Connected" checkbox next to the network device, it connects to the VM properly, but whatever network setup is present (if any?) doesn't fire, and no fixed IP address is set.
Operating System and Environment Details
I am using an OVA that we created from the latest Alma 9 distribution ISO. We actually use packer to launch the latest Alma 9 distribution ISO with a minimal kickstart file, and then have packer generate an OVA from that. It is this OVA that I am attempting to use in a separate execution of packer with
vsphere-clone
.Log Fragments and
crash.log
Files