Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 2.43 KB

con_prerequisites-for-image-based-provisioning.adoc

File metadata and controls

34 lines (26 loc) · 2.43 KB

Prerequisites for Image Based Provisioning

Post-Boot Configuration Method

Images that use the finish post-boot configuration scripts require a managed DHCP server, such as {Project}'s integrated {SmartProxy} or an external {SmartProxy}. The host must be created with a subnet associated with a DHCP {SmartProxy}, and the IP address of the host must be a valid IP address from the DHCP range.

It is possible to use an external DHCP service, but IP addresses must be entered manually. The SSH credentials corresponding to the configuration in the image must be configured in {Project} to enable the post-boot configuration to be made.

Check the following items when troubleshooting a virtual machine booted from an image that depends on post-configuration scripts:

  • The host has a subnet assigned in {ProjectServer}.

  • The subnet has a DHCP {SmartProxy} assigned in {ProjectServer}.

  • The host has a valid IP address assigned in {ProjectServer}.

  • The IP address acquired by the virtual machine using DHCP matches the address configured in {ProjectServer}.

  • The virtual machine created from an image responds to SSH requests.

  • The virtual machine created from an image authorizes the user and password, over SSH, which is associated with the image being deployed.

  • {ProjectServer} has access to the virtual machine via SSH keys. This is required for the virtual machine to receive post-configuration scripts from {ProjectServer}.

Pre-Boot Initialization Configuration Method

Images that use the cloud-init scripts require a DHCP server to avoid having to include the IP address in the image. A managed DHCP {SmartProxy} is preferred. The image must have the cloud-init service configured to start when the system boots and fetch a script or configuration data to use in completing the configuration.

Check the following items when troubleshooting a virtual machine booted from an image that depends on initialization scripts included in the image:

  • There is a DHCP server on the subnet.

  • The virtual machine has the cloud-init service installed and enabled.