Bug 1115787
| Summary: | virt-manager does not show based disks created with qemu-img | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | bcatalin <catalin.boldan> | ||||
| Component: | virt-manager | Assignee: | Cole Robinson <crobinso> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | |||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | unspecified | CC: | acathrow, berrange, catalin.boldan, crobinso, gscrivan | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-07-04 06:12:40 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
bcatalin
2014-07-03 06:41:35 UTC
Created attachment 914361 [details]
virt-manager disk pool
what does virsh vol-list show with --details? virsh vol-list --details $POOL_NAME a followup to my previous comment: does "qemu-img create -f qcow2 -b $(pwd)/my-base-disk.qcow2 awesome-disk.qcow2" make any difference in the virt-manager behavior? Tunning virsh vol-list VMs --details gave the following output:
Name Path Type Capacity Allocation
-----------------------------------------------------------------------------------------------------------
arch-linux.qcow2 /mnt/storage/VMs/arch-linux.qcow2 file 16.00 GiB 2.70 MiB
Windows-2008R2-JP.qcow2 /mnt/storage/VMs/Windows-2008R2-JP.qcow2 file 80.00 GiB 14.86 GiB
Windows-2008R2-sp2010.qcow2 /mnt/storage/VMs/Windows-2008R2-sp2010.qcow2 file 80.00 GiB 18.89 GiB
Windows-2008R2.qcow2 /mnt/storage/VMs/Windows-2008R2.qcow2 file 80.00 GiB 14.71 GiB
Windows-2010-dev.qcow2 /mnt/storage/VMs/Windows-2010-dev.qcow2 unknown unknown unknown
Windows-Core-2.qcow2 /mnt/storage/VMs/Windows-Core-2.qcow2 file 50.01 GiB 1.68 GiB
Windows-Core.qcow2 /mnt/storage/VMs/Windows-Core.qcow2 file 50.01 GiB 16.94 GiB
Running qemu-img info Windows-2010-dev.qcow2 gave the follwoing output:
image: Windows-2010-dev.qcow2
file format: qcow2
virtual size: 80G (85899345920 bytes)
disk size: 17G
cluster_size: 65536
backing file: Windows-2008R2-sp2010.qcow2
Format specific information:
compat: 1.1
lazy refcounts: false
Seeing your second comment I decided to rebase the image that has unknown type and size; so I ran qemu-img rebase -f qcow2 -u -b $(pwd)/Windows-2008R2-sp2010.qcow2 Windows-2010-dev.qcow2
Now, running qemu-img info Windows-2010-dev.qcow2 outputs:
image: Windows-2010-dev.qcow2
file format: qcow2
virtual size: 80G (85899345920 bytes)
disk size: 17G
cluster_size: 65536
backing file: /mnt/storage/VMs/Windows-2008R2-sp2010.qcow2
Format specific information:
compat: 1.1
lazy refcounts: false
This seems the same, only that the backing file now has a full path instead of a relative path.
Running virsh vol-list VMs --details again seems to be OK:
Name Path Type Capacity Allocation
-----------------------------------------------------------------------------------------------------------
arch-linux.qcow2 /mnt/storage/VMs/arch-linux.qcow2 file 16.00 GiB 2.70 MiB
Windows-2008R2-JP.qcow2 /mnt/storage/VMs/Windows-2008R2-JP.qcow2 file 80.00 GiB 14.86 GiB
Windows-2008R2-sp2010.qcow2 /mnt/storage/VMs/Windows-2008R2-sp2010.qcow2 file 80.00 GiB 18.89 GiB
Windows-2008R2.qcow2 /mnt/storage/VMs/Windows-2008R2.qcow2 file 80.00 GiB 14.71 GiB
Windows-2010-dev.qcow2 /mnt/storage/VMs/Windows-2010-dev.qcow2 unknown unknown unknown
Windows-Core-2.qcow2 /mnt/storage/VMs/Windows-Core-2.qcow2 file 50.01 GiB 1.68 GiB
Windows-Core.qcow2 /mnt/storage/VMs/Windows-Core.qcow2 file 50.01 GiB 16.94 GiB
Also, virt-manager now does not complain anymore about the image. I must say that I assumed that the relative paths will be the pool path, but it seems that this is not the case.
I think that the issue can be closed, it is more of a documentation issue than functionality.
Now to rebase all my images :)
Thanks for the help!
|