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

Install VM with virt-builder #60

Open
raspbeguy opened this issue Jul 1, 2020 · 7 comments
Open

Install VM with virt-builder #60

raspbeguy opened this issue Jul 1, 2020 · 7 comments

Comments

@raspbeguy
Copy link
Contributor

Hello,

I open this issue because I wish to implement a way to install VMs with virt-builder (from libguestfs project).

I wish to list here everything we need to think about and the useful information.

  • virt-builder can set up some basic settings on the VM OS, like the hostname and the root password. It can also copy a file to the desired location on the VM volume.
  • virt-builder downloads (from a libguestfs-maintained repository or a custom one) a template of a given OS (containing partitions) and deploy it on a file (raw or qcow) or on a block device, with ability to automatically expand the partitions to fit the given device.
  • Sadly, virt-builder can't yet use qemu storage backends to access target storage, so you have to map it to a block device in order to deploy on it using virt-builder. For instance, for RBD, you have to map it using RADOS kernel module or RBD-NBD implementation.

Do you think this is a good idea?

@markgoddard
Copy link

Hi, I'm wondering if there is any overlap between this and what we already have in this role? If not, maybe it would make sense as a separate role?

@markgoddard
Copy link

i.e. would a virt-builder implementation just replace the entire role, or would it reuse any existing code?

@raspbeguy
Copy link
Contributor Author

I think it would be another method of provisionning a VM.

If I understand correctly, there is currently only 2 ways to provision a VM volume: image and backing_image.
We could add a third option builder.

@markgoddard
Copy link

I think it sounds like an alternative without too much overlap. I'd suggest making a separate role.

@raspbeguy
Copy link
Contributor Author

Could you explain a bit? I don't think it will overlap that much.

@markgoddard
Copy link

What I mean is that I don't think there will be much overlap. This role is one way to make a VM, and virt-builder is another way. I think adding both options to one role would be confusing.

@raspbeguy
Copy link
Contributor Author

OK, I see. Thanks for clarifying.

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