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

Create linked_image #1446

Closed
TheLillo opened this issue Feb 7, 2022 · 2 comments
Closed

Create linked_image #1446

TheLillo opened this issue Feb 7, 2022 · 2 comments

Comments

@TheLillo
Copy link

TheLillo commented Feb 7, 2022

I can't create linked image when i specify the provider. Example:

instance.vm.provider "libvirt" do |libv|
# Save space by creating a linked clone
libv.linked_image = true
end

With qemu-img is possible to create that. example:
qemu-img create -f qcow2 -b base-image.qcow2 linked-image.qcow2

Maybe the feature exist but i was not able to find. Can you help me?

@electrofelix
Copy link
Contributor

By default when you create a machine using vagrant-libvirt the box image will be used as a base image by libvirt with changes written to a separate image. This saves the relevant space if you create multiple machines using the same box image as the same base will be used across all of them that use the same version of the box.

Perhaps if you can share what problem you are trying to solve?

@TheLillo
Copy link
Author

TheLillo commented Feb 8, 2022

Well, i didn't know that. Thank you for the answer

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

2 participants