LPIC-3: Virtualization and Containerization - Exam 305, version 3.0 305-300 Question # 3 Topic 1 Discussion
305-300 Exam Topic 1 Question 3 Discussion:
Question #: 3
Topic #: 1
How does Packer interact with system images?
A.
Packer has to be installed within the target image and is executed during the image's first boot in order to execute preparation tasks.
B.
Packer installs a client within the image which has to be run periodically via cron in order to retrieve the latest template from the Packer server and apply it locally.
C.
Packer periodically connects through the network to the Packer daemons of all running Packer images in order to re-apply the whole template to the running instance.
D.
Packer downloads and extracts an image in order to make changes to the image's file system, repack the modified image and upload it again.
E.
Packer creates an instance based on a source image, prepares the instance through a network connection and bundles the resulting instance as a new system image.
Packer is a tool that automates the creation of identical machine images for multiple platforms from a single source configuration. Packer works by creating an instance based on a source image, which is a pre-existing image that serves as a starting point. Packer then connects to the instance through a network connection, such as SSH or WinRM, and runs various commands and scripts to install and configure software within the instance. Packer then shuts down the instance and creates a new system image from it, which can be used to launch new instances. Packer supports many platforms, such as AWS, Azure, VMware, Docker, and others. Packer does not install any software or run any daemon within the target image, nor does it periodically connect to the running instances to re-apply the template. Packer also does not modify the source image directly, but creates a new image from the modified instance. References:
Packer by HashiCorp
HashiCorp Packer - Build Automated Machine Images
Introduction | Packer | HashiCorp Developer
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit