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?
Suggested Answer: A
Get Premium 305-300 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
33 comments · newest first
XU
Xuan
11 months ago
I can't believe people still confuse storage pools with directories!
BU
Buck
11 months ago
Wait, does the directory need specific permissions?
DO
Donette
11 months ago
I thought option B would work too, but not sure now.
JU
Justa
12 months ago
Definitely option D! That's the right command.
GA
Galen
12 months ago
Looks like you need to create the storage pool first.
GA
Gabriele
1 year ago
I feel like we practiced a similar question, and I think the command to create a pool was definitely involved.
EM
Emelda
1 year 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.
HA
Harrison
1 year ago
I think option D sounds familiar. It seems like the right way to create a storage pool with the specified directory.
HO
Hollis
1 year ago
I remember we discussed storage pools in class, but I'm not sure which command actually creates one.
MA
Mariko
1 year ago
Ah yes, that's the one! Creating the pool with virsh is definitely the way to go here.
TH
Theresia
1 year ago
I think the virsh pool-create-as command looks promising. That should let us create the storage pool directly.
BL
Blossom
1 year 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.
IO
Iola
1 year ago
Okay, let's see here. The error message says the storage pool 'vms' is not found, so we need to create it somehow.
AL
Alyce
1 year ago
Hmm, this looks like a tricky one. I'll need to think through the different options carefully.
DE
Dewitt
1 year 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.
AL
Aliza
1 year ago
D) virsh pool-create-as vms dir --target /vms
MA
Mari
1 year ago
B) libvirt-poolctl new ---name=/vms ---type=dir ---path=/vms
LA
Lamar
1 year ago
A) dd if=/dev/zero of=/vms bs=1 count=0 flags=name:vms
LE
Leonora
2 years 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*
SH
Shelba
1 year ago
User3: Let's give option E a shot first and see if it works.
PA
Paulina
1 year ago
User2: I'm not so sure. Maybe we should try option D instead.
RO
Rory
1 year ago
User1: I think option E might be the solution. *wink wink*
XO
Xochitl
2 years ago
Ooh, I like the way this is going. Time to make a storage pool and get this show on the road!
FR
Francis
1 year ago
D) virsh pool-create-as vms dir --target /vms
ME
Meaghan
1 year ago
B) libvirt-poolctl new ---name=/vms ---type=dir ---path=/vms
DO
Dong
1 year ago
A) dd if=/dev/zero of=/vms bs=1 count=0 flags=name:vms
MA
Magda
2 years ago
Ah, I see. The pool needs to be created first. Option D it is!
FR
France
2 years 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.
SH
Shaniqua
1 year ago
Yes, virsh pool-create-as vms dir --target /vms should resolve the issue.
SH
Shawnta
1 year ago
I agree, option D looks like the correct command to create the storage pool 'vms'.
CH
Cherelle
2 years ago
Thanks, I'll try that command. Hopefully it works!
LE
Lenna
2 years ago
I think the correct command to resolve it is D) virsh pool-create-as vms dir --target /vms.
CH
Cherelle
2 years ago
I got stuck on that virsh vol-list vms error.