Thanks for the link, but that doesn’t really help. I’m successfully running qemu with appropriate images w/o problems, but what I’m after here is just mount a (qcow2) qemu img directly = w/o running the emulation. The way to achieve that (at least on Ubuntu) is described here (unfortunately in German only):
Linux-Tools beschleunigen das Handling von Festplattenabbildern « 08 « 2009 « Ausgaben « Heft & Abo « Linux-Magazin Online
the core of the procedure being (original German text in dble-quotes + my quick&dirty xlation)
START QUOTE from Linux-Magazin
“Mit Kvm-nbd aus dem KVM-Paket ist es möglich, über das NBD-Protokoll direkt auf den Inhalt von Qemu-Images jeder Couleur zuzugreifen. Damit das Linux-System aber dieses Protokoll nutzen kann, ist zuerst das entsprechende Kernelmodul zu laden. Der Parameter »max_part« ist hier
notwendig, um auch Partitionen innerhalb der Devices oder Images zu unterstützen:”
START_MY_TRANSLATION:
With kvm-nbd from the kvm package it is possible to access qemu-images directly through the nbd-protocol. First, to enable this protocol in your Linux system, you have to load the corresponding kernel-module, the parameter »max_part« being required to support partitions within the device or image.
END_MY_TRANSLATION:
modprobe nbd max_part=8
“Die Verbindung zu dem Image stellt jetzt das folgende Kommando her:”
START_MY_TRANSLATION:
The following command establishes the connection to the image:
END_MY_TRANSLATION:
kvm-nbd --connect=/dev/nbd0 Festplatte.img
“Das Image ist nun unter »/dev/nbd0« wie eine Festplatte ansprechbar. So zeigt beispielsweise fdisk die Partitionsstruktur an und mit mount bindet der Admin diese einfach in das System ein:”
START_MY_TRANSLATION:
Now the image can be accessed under »/dev/nbd0« like a disk, e.g., ‘fdisk’ will exhibit partition structure and thru ‘mount’ the admin may make the partition easily available for the system.
END_MY_TRANSLATION:
mount /dev/nbd0p1 /media/suspect/ -o ro
END QUOTE from Linux-Magazin
IMHO this is in fact a nice procedure to access a qcow2 image not just for actual qemu usage but also as a very elegant and less diskspace consuming method to work with disk images instead of raw dd-images (that’s btw what the quoted article is mainly about). So after it works nicely on an Ubuntu system I’m also interested in getting it to work on openSUSE 11.0/1, I can’t imagine it should be that much of a miracle once kvm-nbd or qemu-nbd can be detected, except kvm on openSUSE has basically different content than Ubuntu’s package ???
Can anybody else detect a working kvm-nbd or qemu-nbd somewhere on his/her openSUSE 11.0/1 system after installing kvm, qemu and nbd ???
Kind regards NB