New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 305-300 Exam - Topic 4 Question 35 Discussion

Actual exam question for LPI's 305-300 exam
Question #: 35
Topic #: 4
[All 305-300 Questions]

The command virsh vol-list vms returns the following error:

error: failed to get pool 'vms'

error: Storage pool not found: no storage pool with matching name 'vms '

Given that the directory /vms exists, which of the following commands resolves this issue?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Xuan
3 months ago
I can't believe people still confuse storage pools with directories!
upvoted 0 times
...
Buck
3 months ago
Wait, does the directory need specific permissions?
upvoted 0 times
...
Donette
3 months ago
I thought option B would work too, but not sure now.
upvoted 0 times
...
Justa
4 months ago
Definitely option D! That's the right command.
upvoted 0 times
...
Galen
4 months ago
Looks like you need to create the storage pool first.
upvoted 0 times
...
Gabriele
4 months ago
I feel like we practiced a similar question, and I think the command to create a pool was definitely involved.
upvoted 0 times
...
Emelda
4 months ago
I vaguely recall something about needing to define the pool type, but I can't remember if it's in option B or D.
upvoted 0 times
...
Harrison
4 months ago
I think option D sounds familiar. It seems like the right way to create a storage pool with the specified directory.
upvoted 0 times
...
Hollis
5 months ago
I remember we discussed storage pools in class, but I'm not sure which command actually creates one.
upvoted 0 times
...
Mariko
5 months ago
Ah yes, that's the one! Creating the pool with virsh is definitely the way to go here.
upvoted 0 times
...
Theresia
5 months ago
I think the virsh pool-create-as command looks promising. That should let us create the storage pool directly.
upvoted 0 times
...
Blossom
5 months ago
I'm a bit confused by the options. Creating a zero-filled file and touching a .libvirtpool file don't seem like the right solutions.
upvoted 0 times
...
Iola
5 months ago
Okay, let's see here. The error message says the storage pool 'vms' is not found, so we need to create it somehow.
upvoted 0 times
...
Alyce
5 months ago
Hmm, this looks like a tricky one. I'll need to think through the different options carefully.
upvoted 0 times
...
Dewitt
10 months ago
Wait, do we need to create the storage pool, or just add a file? I'm so confused, I might as well just roll the dice and hope for the best.
upvoted 0 times
Aliza
9 months ago
D) virsh pool-create-as vms dir --target /vms
upvoted 0 times
...
Mari
9 months ago
B) libvirt-poolctl new ---name=/vms ---type=dir ---path=/vms
upvoted 0 times
...
Lamar
9 months ago
A) dd if=/dev/zero of=/vms bs=1 count=0 flags=name:vms
upvoted 0 times
...
...
Leonora
10 months ago
Hold up, are we sure we're not just supposed to touch a file and call it a day? Maybe option E is the secret answer. *wink wink*
upvoted 0 times
Shelba
9 months ago
User3: Let's give option E a shot first and see if it works.
upvoted 0 times
...
Paulina
9 months ago
User2: I'm not so sure. Maybe we should try option D instead.
upvoted 0 times
...
Rory
9 months ago
User1: I think option E might be the solution. *wink wink*
upvoted 0 times
...
...
Xochitl
10 months ago
Ooh, I like the way this is going. Time to make a storage pool and get this show on the road!
upvoted 0 times
Francis
9 months ago
D) virsh pool-create-as vms dir --target /vms
upvoted 0 times
...
Meaghan
9 months ago
B) libvirt-poolctl new ---name=/vms ---type=dir ---path=/vms
upvoted 0 times
...
Dong
10 months ago
A) dd if=/dev/zero of=/vms bs=1 count=0 flags=name:vms
upvoted 0 times
...
...
Magda
10 months ago
Ah, I see. The pool needs to be created first. Option D it is!
upvoted 0 times
...
France
10 months ago
Hmm, the error message clearly states that the storage pool 'vms' is not found. I think option D is the way to go here.
upvoted 0 times
Shaniqua
10 months ago
Yes, virsh pool-create-as vms dir --target /vms should resolve the issue.
upvoted 0 times
...
Shawnta
10 months ago
I agree, option D looks like the correct command to create the storage pool 'vms'.
upvoted 0 times
...
...
Cherelle
11 months ago
Thanks, I'll try that command. Hopefully it works!
upvoted 0 times
...
Lenna
11 months ago
I think the correct command to resolve it is D) virsh pool-create-as vms dir --target /vms.
upvoted 0 times
...
Cherelle
11 months ago
I got stuck on that virsh vol-list vms error.
upvoted 0 times
...

Save Cancel