stackhpc / stackhpc/ansible-role-libvirt-vm

Install VM with virt-builder

Open
#60 7 comments 0 reactions 0 assignees View on GitHub

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-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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.