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