File: launch_libvirt.rst

package info (click to toggle)
cloud-init 25.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,412 kB
  • sloc: python: 135,894; sh: 3,883; makefile: 141; javascript: 30; xml: 22
file content (30 lines) | stat: -rw-r--r-- 766 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.. _launch_libvirt:

Run cloud-init locally with libvirt
***********************************

`Libvirt`_ is a tool for managing virtual machines and containers.

Create your configuration
-------------------------

.. include:: shared/create_config.txt

Download a cloud image
----------------------

.. include:: shared/download_image.txt

Create an instance
------------------

.. code-block:: shell-session

    virt-install --name cloud-init-001 --memory 4000 --noreboot \
        --os-variant detect=on,name=ubuntunoble \
        --disk=size=10,backing_store="$(pwd)/noble-server-cloudimg-amd64.img" \
        --cloud-init user-data="$(pwd)/user-data,meta-data=$(pwd)/meta-data,network-config=$(pwd)/network-config"

.. LINKS
.. _Libvirt: https://libvirt.org/