Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for qcow2 block images #50

Open
dann1 opened this issue Jun 25, 2018 · 0 comments
Open

Support for qcow2 block images #50

dann1 opened this issue Jun 25, 2018 · 0 comments

Comments

@dann1
Copy link
Collaborator

dann1 commented Jun 25, 2018

Using qemu-nbd kernel module, we could mount qcow2 blocks on the container directory.

The module is loaded issuing

apt install qemu-utlis
modprobe nbd

This is an example of mapping an image file into a block device
qemu-nbd -c /dev/nbd0 /var/lib/vz/images/107/vm-107-disk-1.qcow2

Then we could mount it as a regular volume.

To unmap the image file
qemu-nbd -d /dev/nbd0

@dann1 dann1 changed the title Add support for qcow2 block images Support for qcow2 block images Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant