Courseiva

305-300 · topic practice

VM Deployment And Provisioning practice questions

This domain covers automated VM image creation and guest provisioning on the LPIC-3 305 exam. It tests Packer builders and post-processors for OpenStack, Vagrant box handling and Vagrantfile provisioning options, and cloud-init configuration syntax. Questions are scenario-based, asking you to identify the correct builder, post-processor, Vagrantfile method, or cloud-init directive for a given provisioning task.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: VM Deployment And Provisioning

What the exam tests

What to know about VM Deployment And Provisioning

You must be able to write and interpret Packer templates, Vagrantfiles, and cloud-init configs for automated VM deployment. The single most important thing is matching each tool's component to its role: builder versus post-processor, provisioner versus provider, and correct cloud-init file headers.

Packer post-processor types, including docker-import and vagrant, and uploading images to OpenStack Glance

Vagrantfile provisioning methods such as shell, file, and ansible, plus passing environment variables into guests

Vagrant box resolution behavior, including downloading boxes from the Vagrant Cloud registry when absent locally

cloud-init configuration file headers and module directives, including the #cloud-config first-line requirement

Watch out for

Common VM Deployment And Provisioning exam traps

  • ▸Confusing Packer builders with post-processors: the openstack builder creates the image, while a separate post-processor uploads it to Glance.
  • ▸Assuming Vagrant fails when a box is missing locally; by default it attempts to download the box from the configured registry.
  • ▸Forgetting that cloud-init requires the exact #cloud-config header on the first line, otherwise the file is ignored or misparsed.

Practice set

VM Deployment And Provisioning questions

20 questions · select your answer, then reveal the explanation

You are using Packer to automate a build. You notice the build fails because the 'communicator' cannot connect. Which type of communicator is most suitable for a KVM-based build where SSH is not yet configured?

Question 2mediummultiple choice
Study the full virtualization explanation →

You are using Packer to build a custom image for KVM. Which HCL2 block is specifically required to define the virtualization parameters like memory and CPU for the builder?

You are troubleshooting a Packer build that uses the 'shell' provisioner. Which environment variable can you check to see the absolute path to the build directory?

When configuring cloud-init 'network-config', which format is primarily used to describe network interfaces?

In a Packer HCL2 file, how do you reference a variable named 'image_name' that was declared in the 'variables' block?

Which TWO of the following are valid ways to trigger provisioning in Vagrant?

Which TWO commands in Packer can be used to manage plugin installations?

Which THREE features are provided by the Vagrant 'synced_folder' functionality?

Question 9easymultiple choice
Read the full DHCP explanation →

You are deploying a new virtual machine on a KVM host using virt-install. The VM must use a specific MAC address to match a DHCP reservation. Which virt-install option allows you to set the MAC address for the network interface?

You are preparing a cloud-init configuration for a KVM virtual machine that will be deployed on a private cloud. The configuration must set the hostname, install the nginx package, and ensure the SSH service is enabled and running. Which two cloud-init modules or keys should you use to accomplish these tasks? (Choose two.)

Question 11mediummultiple choice
Read the full NAT/PAT explanation →

You are preparing a base box for a Vagrant environment. The VirtualBox VM currently has two network adapters: the first is NAT, and the second is an internal network named 'vagrant_net'. You package the VM with 'vagrant package --base myvm --output mybox.box'. When a developer runs 'vagrant up' on a machine using this box, SSH connection fails. What is the most likely cause?

You are using Packer to build a VMware vSphere template. The build fails with an error that the 'vsphere-iso' builder cannot find the ISO file on a datastore. You have uploaded the ISO to a content library. Which Packer configuration option should you use to reference the ISO from the content library?

You are using cloud-init to provision a fleet of Ubuntu 22.04 VMs on a private cloud. You need to ensure that the 'runcmd' module executes a script only after the network is fully configured and the filesystem is mounted. Which two conditions must be met for the 'runcmd' module to run successfully? (Choose two.)

You are writing a Vagrantfile that defines a single VM. You want to ensure that the VM is provisioned with a shell script located at 'scripts/setup.sh' on the host. Which Vagrant provisioner configuration is correct?

You are using Packer to build a VMware vSphere template. The build must use the vsphere-iso builder and connect to vCenter using credentials stored in environment variables. Which Packer configuration snippet correctly references those environment variables?

You are using Packer to build an AWS AMI. The build uses the 'amazon-ebs' builder and a 'file' provisioner to upload a configuration file to '/etc/myapp/config.yml'. The provisioner runs successfully, but the file is missing in the resulting AMI. What is the most likely reason?

You are using cloud-init to provision a fleet of Ubuntu VMs. You need to ensure that the instance is configured with a static IP address on the primary interface and that the hostname is set to a value derived from the instance's metadata. Which two cloud-init modules or configuration sections should you use? (Choose two.)

You are writing a Packer template that uses the amazon-ebs builder. You need to ensure that the temporary instance launched during the build is terminated even if provisioning fails. Which Packer configuration option should you set?

In a Packer build process for OpenStack, which 'post-processor' type is typically used to upload the resulting image to the Glance image service?

When using Vagrant to manage a libvirt-based provider, which command verifies that the virtual machine is currently running and identifies the provider in use?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused VM Deployment And Provisioning sessions

Start a VM Deployment And Provisioning only practice session

Every question in these sessions is drawn from the VM Deployment And Provisioning domain — nothing else.

Related practice questions

Related 305-300 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the 305-300 exam test about VM Deployment And Provisioning?
You must be able to write and interpret Packer templates, Vagrantfiles, and cloud-init configs for automated VM deployment. The single most important thing is matching each tool's component to its role: builder versus post-processor, provisioner versus provider, and correct cloud-init file headers.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just VM Deployment And Provisioning questions in a focused session?
Yes — the session launcher on this page draws every question from the VM Deployment And Provisioning domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other 305-300 topics?
Use the topic links above to move to related areas, or go back to the 305-300 question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the 305-300 exam covers. They are not copied from any real exam or dump site.