305-300 · domain
troubleshooting
Practise LPIC-3 Exam 305: Virtualization and Containerization (305-300) (305-300) troubleshooting practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.
Focused practice
Practice troubleshooting questions
Scored sessions drawing only from this domain — pick a length below.
Start 20-question practice test →What this domain covers
What to know about troubleshooting
troubleshooting questions test whether you can apply the concept in context, not just recognise a definition.
How the topic appears in realistic exam-style scenarios.
Which detail in the question changes the correct answer.
How to eliminate plausible but wrong options.
How to connect the question back to the wider exam objective.
Watch out for
Common troubleshooting exam traps
- ▸Answering from memory before reading the full scenario.
- ▸Missing a constraint such as cost, availability, security, scope or command context.
- ▸Choosing a broad answer when the question asks for the most specific fix.
- ▸Ignoring why the wrong options are tempting.
Question index
All troubleshooting questions (194)
Click any question to see the full explanation, or start a practice session above.
Which command checks the status of the libvirtd service?
Medium2A libvirt storage pool of type 'dir' contains several qcow2 images. You want to create a new snapshot of an existing VM using virsh. Which command sequence is required to create an internal snapshot of the VM's current state?
Hard3Which hypervisor is known for being 'Type 2'?
Easy4Which TWO of the following are true regarding the differences between rkt (Rocket) and Docker?
Hard5In systemd-nspawn, how can you execute a command inside a container that is already running?
Medium6In a FreeBSD Jail, how can you ensure the jail starts automatically at boot?
Hard7Which TWO of the following are common ways to connect to a virtual machine's console?
Medium8Which Docker network driver should you use if you want containers to have their own IP addresses on the physical network, as if they were physically connected to the network?
Medium9You need to change the MAC address of a network interface for a virtual machine. Where is this configured?
Medium10What is the purpose of the 'virt-install' tool?
Medium11You are configuring a virtual network with a static IP address for a VM. Where do you define the DHCP host entry in the libvirt network XML?
Hard12When building a Dockerfile, which instruction should be used to define the user context for subsequent RUN, CMD, and ENTRYPOINT instructions?
Easy13When configuring a systemd-nspawn container, what is the effect of the --private-network option?
Hard14A Docker container running a web server is unable to serve traffic on port 8080. You verify the Dockerfile exposes port 80. What is the correct way to map this for external access?
Medium15Which THREE of the following are valid virtio device types?
Hard16Which libvirt network type uses a bridge on the host to connect virtual machines directly to the physical network?
Medium17Which TWO of the following are valid storage pool types in libvirt?
Medium18You are configuring a virtual network with a bridge. You want to disable DNS services for that network. What XML element within the <network> definition do you remove or comment out?
Hard19You are running a Docker container and need to map port 8080 on the host to port 80 in the container. Which command argument should you use?
Medium20Which Dockerfile instruction is used to copy a file from the host file system into the image?
Medium21You have a qcow2 disk image that is growing too large. You want to shrink the file size on the host while keeping the virtual disk the same size. Which steps must you perform first?
Medium22Which THREE instructions in a Dockerfile can modify the image's filesystem?
Medium23What is the primary function of the libvirtd daemon?
Easy24Which THREE features are provided by the Vagrant 'synced_folder' functionality?
Medium25Which file system format is specifically designed for QEMU/KVM to support advanced features like copy-on-write, snapshots, and compression?
Medium26You are configuring a Xen guest that requires direct hardware access to a specific network interface card. Which configuration parameter in the guest domain configuration file must be specified to enable PCI passthrough?
Medium27Which signal is sent to a QEMU process when you run 'virsh destroy'?
Medium28When provisioning with Vagrant, which command is best used to apply changes to a configuration (like adding a new shell script) without destroying the existing virtual machine?
Medium29You want to limit the bandwidth of a virtual network interface. Which XML element within <interface> allows you to configure this?
Hard30In a Vagrant environment, where should sensitive data like API keys be stored to avoid committing them to version control?
Medium31Which TWO of the following commands can be used to monitor VM resource utilization?
Medium32You are configuring LXC and want to set a CPU limit for a container. Which cgroup parameter is used to specify the quota of CPU time in microseconds?
Medium33When configuring a VM in libvirt, you want to ensure the highest performance for disk I/O. Which driver type should you select for the disk device?
Easy34Which THREE networking modes are natively supported by Docker?
Hard35Which THREE features are provided by Linux Namespaces in the context of containers?
Hard36Which THREE settings are commonly configured in the 'provider' block of a Vagrantfile for virtualbox?
Medium37Which kernel feature provides the isolation necessary for namespaces in container virtualization?
Medium38When using Vagrant to manage a libvirt-based provider, which command verifies that the virtual machine is currently running and identifies the provider in use?
Easy39Which THREE of the following are valid components of a libvirt domain XML configuration?
Hard40What does the 'docker rm' command do?
Easy41Which hypervisor type is considered 'Type 1' virtualization?
Easy42A Docker container is failing to connect to an external database despite the host being able to ping it. You suspect a bridge networking issue. Which command allows you to inspect the current NAT rules created by Docker?
Medium43You need to add a second NIC to a VM via XML. How do you ensure the second NIC uses a different MAC address than the first one?
Hard44Which file is primarily responsible for defining the configuration and environment variables for an OpenVZ container?
Medium45Which THREE of the following are valid options for 'virsh shutdown'?
Hard46You are using systemd-nspawn. How do you create an image of a container to be used as a template?
Hard47What is the purpose of the virtio-balloon driver in a guest?
Medium48You need to ensure that a specific package is installed during the first boot of a cloud instance. Which cloud-init key should be added to the configuration?
Medium49Which command is used to display the configuration of a Packer build in a readable format?
Easy50What is the primary function of a Docker Registry?
Medium51When configuring cloud-init 'network-config', which format is primarily used to describe network interfaces?
Hard52What is the purpose of 'virt-top'?
Medium53When defining a Vagrant network configuration for a libvirt provider, which mode allows the VM to receive an IP address directly from the physical network's DHCP server?
Medium54Which file in a Vagrant project directory is processed by default to define the virtual environment configuration?
Easy55Which TWO of the following are valid ways to configure VM networking?
Medium56You are configuring a virtual network in libvirt that allows VMs to communicate with each other and the host, but prevents them from accessing the external network. Which mode should you select for this network?
Easy57You are using QEMU to emulate an ARM architecture on an x86_64 host. You need to ensure the guest has access to the host's filesystem directly without configuring network shares. Which option is the correct way to pass a directory through to the guest?
Medium58When using systemd-nspawn, you want to limit the memory usage of a container to 512MB. Which flag should be passed to the systemd-nspawn command?
Hard59When using 'docker-compose', which file format is used to define the services?
Medium60When using Docker volumes, which type of mount should you use if you want the data to persist on the host filesystem at a specific, user-defined path?
Medium61You are configuring a QEMU-KVM guest to use VirtIO-net. Which parameter in the QEMU command line correctly enables the virtio-net-pci device with a tap interface named tap0?
Medium62What is the purpose of the 'virsh' tool?
Easy63Which THREE configuration items can be managed via cloud-init 'write_files' module?
Hard64In a Vagrantfile, which method is used to pass environment variables into the guest virtual machine during the provisioning phase?
Hard65You are troubleshooting a container networking issue. You notice that traffic from the container is not being SNATed. What should you check in the iptables rules?
Hard66Which command is used to remove an unused Docker image?
Easy67Which TWO of the following are valid container orchestration platforms?
Medium68Which TWO commands are used to manage images in Docker?
Medium69Which THREE of the following attributes can be defined within the <memoryBacking> XML block?
Hard70Which THREE storage drivers are supported by Docker?
Hard71What is the main advantage of using a container over a virtual machine?
Easy72You need to inspect the metadata of a specific Docker image without pulling it from a remote registry. Which command should you use?
Medium73You are debugging a Docker image buildup that fails at the 'RUN' instruction due to missing network access during the build. What command option should be checked if the build environment uses a proxy?
Medium74You are troubleshooting a libvirt migration that fails with 'Operation not supported: Migration requires a storage pool'. You need to perform a block migration where the storage is copied to the destination host. Which command-line flag enables this functionality?
Hard75You are using BSD Jails and need to start a jail. Which utility is the standard management tool for jail administration?
Medium76Which QEMU-KVM feature allows you to save the state of a VM to a file and resume it later?
Medium77You need to attach a new block device to a running VM. What virsh command achieves this?
Medium78You need to inspect the configuration of an LXC container named 'web'. Which command should you use?
Medium79In the context of virtualization, what does 'ballooning' refer to?
Easy80You need to convert a raw disk image to QCOW2 format to enable snapshotting. Which command is correct?
Medium81Which TWO of the following commands can be used to manage virtual networks in libvirt?
Medium82Which THREE items are typically included in an OpenVZ configuration file?
Hard83Which TWO of the following are valid ways to trigger provisioning in Vagrant?
Medium84Which command is used to list all defined virtual networks in Libvirt?
Easy85You need to enable hugepages for a VM in libvirt to improve memory performance. What XML entry do you add?
Hard86You are troubleshooting a problem where an LXC container cannot access its own /dev/null. What is a common cause in a non-root container?
Hard87What is the default behavior of Vagrant when a box is not found locally on the host machine?
Easy88Which tool is commonly used alongside Packer to validate the configuration file for syntax errors before attempting a build?
Medium89You are configuring an LXC container and need to grant it access to a specific host character device without running the container in privileged mode. Which configuration option in the container's config file should you use?
Medium90In cloud-init, which syntax is required at the very beginning of the configuration file to ensure it is recognized as a cloud-config script?
Hard91You are using a BSD Jail and want to limit the filesystem access of the jail to a specific directory tree. Which utility or configuration mechanism is primarily used to achieve this?
Medium92In a Docker swarm, which mode of service publishing allows incoming traffic to be load-balanced across all healthy container replicas?
Hard93Which command lists all Docker images currently on the host?
Easy94Which TWO of the following are valid network modes for a libvirt virtual network?
Medium95When cleaning up Docker resources, which command will remove all stopped containers, unused networks, and dangling images in one step?
Hard96When using Vagrant with multiple machines in a single Vagrantfile, how do you define individual configurations?
Medium97You are using an overlay network in Docker Swarm. What is the standard protocol used for the control plane and data plane communication between nodes?
Hard98What does the term 'KVM' stand for?
Easy99Which THREE of the following are required for a successful live migration between two KVM hosts using libvirt?
Hard100Which utility is best for creating a new libvirt storage pool?
Medium101You need to limit the amount of CPU shares a Docker container can utilize. Which flag should be used?
Medium102Which Docker command is used to display the resource usage (CPU, memory) of running containers?
Easy103Which cloud-init module is responsible for setting the hostname of the instance during the initial boot process?
Medium104When configuring a Docker volume that needs to be shared between multiple containers, which storage driver storage path is recommended to ensure persistent data availability if the host reboots?
Hard105Which THREE configuration items can be managed by LXC cgroups?
Hard106Which TWO of the following are valid ways to manage storage pools using virsh?
Medium107What is the default location for libvirt domain configuration XML files?
Medium108Which TWO components are defined in a Packer 'build' block?
Hard109You are optimizing a Dockerfile to reduce image size. Which THREE of the following practices are recommended?
Hard110Which file system structure is typically used for QEMU virtual disk images when using LVM?
Easy111You are troubleshooting a performance issue and want to pin a VM process to specific physical CPU cores. Which XML element is used?
Hard112Which command is used to list all active running domains?
Medium113In the context of container orchestration, what is the role of a 'sidecar' container?
Medium114When using Packer with the QEMU builder, what does the 'format' option in the 'qemu' builder define?
Hard115Which THREE of the following are valid Libvirt storage pool types?
Medium116You are troubleshooting a libvirt network issue where the virtual machines cannot reach the external gateway. The virtual network uses a NAT configuration. Which file would you inspect to verify the iptables rules generated by libvirt for this network?
Hard117You are debugging a Docker network issue where containers on different hosts cannot communicate. Which network driver is specifically designed to support multi-host overlay networking?
Hard118You want to optimize disk I/O performance for a KVM guest. Which bus type should you configure in the libvirt domain XML for the virtual disk?
Medium119Which command-line tool is primarily used to inspect the metadata and configuration of a running Docker container?
Easy120When migrating a Libvirt domain using 'virsh migrate --live', which option must be specified to ensure the guest's memory state is copied over the network?
Hard121In a Xen environment, which command would you use to change the number of VCPUs allocated to a running domain 'dom1' to 4?
Hard122Which THREE of the following are components of the Docker architecture?
Medium123You need to migrate a running QEMU VM to a remote host using live migration. Which command-line argument for QEMU-KVM initiates a migration to a target host at 192.168.1.50 on port 4444?
Hard124You need to create a snapshot of a QCOW2 disk image without stopping the virtual machine. Which qemu-img sub-command should be used?
Medium125You are using QEMU to emulate an ARM architecture on an x86 host. Which binary would you typically use to execute this?
Hard126Which command allows you to enter an existing running container and execute a new command inside it?
Medium127Which THREE of the following are legitimate security concerns when managing a virtualization host?
Hard128Which option for 'qemu-img create' allows you to create a preallocated image?
Hard129Which TWO pieces of information does Packer require to build an image for an existing cloud environment?
Hard130You are configuring cloud-init to inject an SSH key into a new VM. Which directive in the configuration metadata ensures the key is added to the correct user's authorized_keys file?
Hard131Which TWO types of namespaces are commonly used to achieve container isolation in Linux?
Medium132Which THREE of the following are necessary to enable QEMU guest agent integration?
Hard133What is a 'snapshot' in virtualization?
Easy134You are building a multi-stage Dockerfile and want to copy a binary from the 'builder' stage to the final stage. Which syntax is correct?
Hard135You are migrating a legacy application to an LXC container and need to ensure the container has access to the host's /dev/sda block device. Which configuration key must be added to the container's configuration file?
Medium136Which component is responsible for the actual hardware-assisted virtualization in KVM?
Easy137You 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?
Hard138Which THREE of the following are valid storage driver options for Docker on Linux?
Hard139Which THREE of the following are valid elements inside the <interface type='bridge'> block?
Hard140Which command-line option is used to run a Docker container in the background (detached mode)?
Easy141You are managing an LXC container and need to create a snapshot of the container's root file system. Which command achieves this?
Medium142In an OpenVZ environment, you need to limit the number of processes a container can create. Which parameter in the container configuration file should be modified?
Hard143Which of these is a valid virtualization storage pool type supported by libvirt?
Easy144In systemd-nspawn, how do you specify a different root directory for the container?
Hard145What is the primary difference between a container image and a container instance?
Easy146Which THREE commands are used to manage the lifecycle of an LXC container?
Medium147What is the primary function of the ENTRYPOINT instruction in a Dockerfile?
Easy148Which THREE of the following are necessary components for a successful KVM virtualization environment on Linux?
Medium149Which TWO items are typically included in a Docker context?
Medium150How do you view the logs of a running container?
Easy151Which instruction in a Dockerfile is best suited for installing packages to minimize image size?
Medium152Which command is used to start a VM that has been defined?
Easy153How do you define a new libvirt virtual network from an XML file named 'net.xml'?
Medium154In a Packer build process for OpenStack, which 'post-processor' type is typically used to upload the resulting image to the Glance image service?
Medium155Which THREE of the following XML elements are used to define a virtual disk in a domain?
Hard156Which TWO commands are valid for inspecting container network settings?
Medium157What is the purpose of the 'rkt' (Rocket) container runtime?
Medium158You are performing a live migration of a VM using libvirt. The source and destination hosts share a common storage pool (NFS). Which option should be used with 'virsh migrate' to ensure only the memory state is transferred?
Hard159Which THREE of the following steps are involved in performing a manual disk migration of a VM?
Hard160Which command shows the history of layers in a Docker image?
Easy161Which command is used to display the XML configuration of a running VM domain named 'webserver'?
Medium162You are using Docker and want to create a volume that is shared between multiple containers and persists even if the containers are deleted. What is the best approach?
Hard163A cloud-init configuration file is failing to apply the 'write_files' module. Which log file on the target instance should you examine to diagnose the parsing error?
Medium164What is the role of the 'Dockerfile' in the container build process?
Medium165A VM is hanging because of a specific hardware emulation bug in QEMU. You need to enable the 'qxl' video device to see if it resolves display issues. What is the XML tag to define the video device in the domain config?
Hard166Which TWO of the following are benefits of using the QCOW2 image format?
Medium167Which TWO of the following are valid storage drivers used by Docker to manage image layers?
Medium168Which TWO of the following commands are used for VM disk image management?
Medium169What is the primary function of the cloud-init 'runcmd' module?
Medium170You are troubleshooting a Docker container that cannot reach the internet despite the host having connectivity. The container uses the default bridge network. Which iptables chain is most likely causing the block?
Hard171Which command provides system-wide information about the Docker installation?
Easy172Which THREE of the following are common cloud-init modules?
Medium173Which THREE directives are valid under the cloud-init 'users' configuration section?
Medium174You need to run a container that requires access to the host's network namespace directly to perform packet capture. Which Docker run flag should you use?
Medium175You have an active domain named 'myvm'. How do you gracefully shut it down?
Medium176Which flag is used to run a container in the background?
Easy177What does 'QEMU' stand for?
Easy178When migrating a domain with virsh, which TWO of the following options can be used to ensure the migration is successful if the destination host has a different CPU architecture or feature set?
Hard179What is the purpose of the 'ENTRYPOINT' instruction in a Dockerfile?
Medium180Which TWO of the following are key features of the QEMU-KVM hypervisor?
Medium181How can you force a refresh of a libvirt storage pool named 'isos'?
Medium182You are configuring an OpenVZ container. Which command is used to set the hostname of the container from the host?
Hard183Which TWO methods can be used to pass configuration data to cloud-init during instance creation?
Hard184In a Docker environment, you are observing that container logs are consuming too much disk space. Which logging driver should you configure to limit the number and size of log files?
Hard185Which TWO of the following are true regarding container orchestration platforms?
Hard186Which TWO of the following are valid libvirt storage pool lifecycle commands?
Medium187You are managing a Xen host and need to live-migrate a domain between two physical servers. The migration fails with a domain lock error. Which command is the standard way to initiate a live migration while ensuring the target host is prepared to receive the domain?
Medium188In a Packer HCL2 file, how do you reference a variable named 'image_name' that was declared in the 'variables' block?
Hard189Which command is used to stop all running containers?
Easy190When managing storage pools using virsh, which command would you use to list all defined storage pools, including those that are inactive?
Medium191You 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?
Medium192Which Packer builder is most appropriate for creating an image specifically for Amazon Web Services (AWS)?
Medium193You are using libvirt to manage a QEMU VM. You want to pass a specific host USB device with vendor ID 1234 and product ID 5678 to the guest. Which XML element is used inside the <devices> block to define this?
Hard194You are using systemd-nspawn and want to run a container that shares the host's network namespace. Which flag is required?
MediumOther domains
All 305-300 exam domains
Frequently asked questions
- What does the troubleshooting domain cover on the 305-300 exam?
- troubleshooting questions test whether you can apply the concept in context, not just recognise a definition.
- How many questions are in this domain?
- This page lists all 194 troubleshooting questions in the 305-300 question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
- What is the best way to practise this domain?
- Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
- Can I practise only troubleshooting questions?
- Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.