While troubleshooting network connectivity on a KVM guest called web01, you discover that the virtual NIC you added earlier with virsh attach-interface disappears every time the guest is powered off and on again. You need to re-add the interface now (without shutting the VM down) and ensure that it is stored in the VM's persistent XML so it survives future reboots. Which virsh command meets both requirements?
The --live flag applies the change immediately to the running domain, hot-plugging the device. The --config flag writes the same change into the persistent XML definition so it will be present the next time the VM starts. Using both flags together (or the shorthand --persistent) guarantees that the NIC appears right away and remains after any shutdown or reboot. The other choices either modify only the live instance, only the saved XML, or rely on --current, which for a running domain behaves like --live only.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the --live flag do in virsh commands?
Open an interactive chat with Bash
What is the purpose of the --config flag in virsh commands?
Open an interactive chat with Bash
How does --persistent differ from --live and --config in virsh?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .