Courseiva
Full VirtualizationhardMultiple ChoiceObjective-mapped

305-300 Full Virtualization Practice Question

You 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?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

/etc/libvirt/qemu/networks/default.xml

Libvirt manages iptables rules dynamically, but the configuration is stored in the libvirt network XML files in /etc/libvirt/qemu/networks/ and the resulting rules appear in the NAT table.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • /var/lib/libvirt/network/default.xml

    Why it's wrong here

    This is the runtime state, but the source of truth is in /etc/libvirt/qemu/networks/.

  • /etc/sysconfig/network-scripts/ifcfg-virbr0

    Why it's wrong here

    This file defines the bridge interface, not the NAT rules.

  • /etc/libvirt/qemu/networks/default.xml

    Why this is correct

    The XML file defines the network and triggers the iptables rule generation.

  • /etc/iptables/rules.v4

    Why it's wrong here

    This file contains static rules, not dynamic libvirt-generated ones.

Visual reference

Inside (Private) PC-A 10.0.0.1 PC-B 10.0.0.2 NAT Router Outside (Public) 203.0.113.1 Inside Global Server PAT: many private IPs share one public IP via unique port numbers

About these practice questions

This 305-300 question is part of Courseiva's 194-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official LPI exam blueprint

This 305-300 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 305-300 exam.