stackhpc / stackhpc/ansible-role-libvirt-vm
Install VM with virt-builder
Nobody has claimed this yet.
- Dominant language
- Jinja
- Stars
- 135
- Forks
- 73
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 1
Description
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-buildercan 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-builderdownloads (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-buildercan'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 usingvirt-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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by clarifying the proposed virt-builder integration and its scope within this Ansible role. Review the role's existing VM creation flow and determine how libguestfs, storage targets, OS templates, and partition expansion should be handled; the issue does not yet define acceptance criteria or a test path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ansible
- Domain
- infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100