Skip to content

Install VM with virt-builder #60

@raspbeguy

Description

@raspbeguy

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions