[opensuse-support] how to re-import qcow2 images after a full reinstall of the OS
![](https://seccdn.libravatar.org/avatar/12100f1497f7c0b346606b8b4a32ae8d.jpg?s=120&d=mm&r=g)
I have TW and kvm with several instances on a separate disc that is mounted as /var/lib/libvirt/images. I had to reinstall the OS, so, I see the qcow2 images but not in kvm manager. There the location is shown with 0 B. Which is odd, should not be a permission problem as I am part with that user of kvm and qemu groups. I suppose I will have to import them somehow with virsh, but if there is a way in qemu / kvm manager it would be even better. Anybody knows what I am missing?
![](https://seccdn.libravatar.org/avatar/12100f1497f7c0b346606b8b4a32ae8d.jpg?s=120&d=mm&r=g)
In data martedì 17 novembre 2020 12:05:01 CET, Stakanov ha scritto:
I have TW and kvm with several instances on a separate disc that is mounted as /var/lib/libvirt/images. I had to reinstall the OS, so, I see the qcow2 images but not in kvm manager. There the location is shown with 0 B. Which is odd, should not be a permission problem as I am part with that user
of kvm and qemu groups.
I suppose I will have to import them somehow with virsh, but if there is a way
in qemu / kvm manager it would be even better.
Anybody knows what I am missing?
Never mind, this is quite weird. The disk (mounted in partition manager as / var/lib/libvirt/images shows up in manager as /var/lib/libvirt/images/images and still he does not see the images qcow2 but.... if you give that path and you copy paste the exact name of the image behind, then he does create the machine. anybody knows why the manager cannot see the images but can create the machine if one knows the exact path?
![](https://seccdn.libravatar.org/avatar/9a22d987cba65984271fe481dc6694c5.jpg?s=120&d=mm&r=g)
Hi there, On Tue, 17 Nov 2020, 12:19:05 +0100, Stakanov wrote:
In data martedì 17 novembre 2020 12:05:01 CET, Stakanov ha scritto:
I have TW and kvm with several instances on a separate disc that is mounted as /var/lib/libvirt/images. I had to reinstall the OS, so, I see the qcow2 images but not in kvm manager. There the location is shown with 0 B. Which is odd, should not be a permission problem as I am part with that user
of kvm and qemu groups.
I suppose I will have to import them somehow with virsh, but if there is a way
in qemu / kvm manager it would be even better.
Anybody knows what I am missing?
Never mind, this is quite weird. The disk (mounted in partition manager as / var/lib/libvirt/images shows up in manager as /var/lib/libvirt/images/images and still he does not see the images qcow2 but.... if you give that path and you copy paste the exact name of the image behind, then he does create the machine.
anybody knows why the manager cannot see the images but can create the machine if one knows the exact path?
probably the storage pool is not autostarted. /etc/libvirt/storage/ should contain some file default.xml which is then symlinked to /etc/libvirt/storage/autostart/ HTH, cheers. l8er manfred
![](https://seccdn.libravatar.org/avatar/49cb915af8be4fe9eab238c594dee035.jpg?s=120&d=mm&r=g)
Am 17.11.20 um 12:05 schrieb Stakanov:
I have TW and kvm with several instances on a separate disc that is mounted as /var/lib/libvirt/images. I had to reinstall the OS, so, I see the qcow2 images but not in kvm manager. There the location is shown with 0 B. Which is odd, should not be a permission problem as I am part with that user of kvm and qemu groups.
I suppose I will have to import them somehow with virsh, but if there is a way in qemu / kvm manager it would be even better.
Anybody knows what I am missing?
Normally copy from the old machine all the files from: /etc/libvirt/qemu (maybe also from the /etc/libvirt/qemu/networks) to the same directory at the new machine. thats all. simoN -- www.becherer.de
![](https://seccdn.libravatar.org/avatar/49cb915af8be4fe9eab238c594dee035.jpg?s=120&d=mm&r=g)
Normally copy from the old machine all the files from: /etc/libvirt/qemu (maybe also from the /etc/libvirt/qemu/networks) to the same directory at the new machine. thats all.
simoN
Oh, i forgot to mention, i think i remember to stop the service before changing something in this directory.... simoN -- www.becherer.de
participants (3)
-
Manfred Hollstein
-
Simon Becherer
-
Stakanov