You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
montpelliermaalsi2024/vmcreator
gwen 3a71e5e75b vmcreator 5 months ago
..
create_vm.sh vmcreator 5 months ago
create_vm.yml vmcreator 5 months ago
hosts vmcreator 5 months ago
readme.rst vmcreator 5 months ago

readme.rst

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

VM Creator
===========

Just another ansible tool that automates a VM creation whit multipass.

It reinforces the lauching of a manual script like this one::

    multipass launch 24.04 --name XXX --cpus 8 --disk 100G  -m 30G --cloud-init cloud-init.yaml

Because this script has dependencies. it needs:

- a cloud init file
- an ssh key
- a cloud init file 

.. important:: Needs to be root to do such a thing

launch
---------

::

    ./create_vm.sh

Besides generating the VM, it generates:

- an inventory in YAML format
- a dedicated ssh key 


usage
--------

verify that the `testvm` VM is ready, launch this command in a terminal::

    multipass list | grep testvm

example output::

    multipass list | grep testvm
    testvm  Running  10.190.208.122  Ubuntu 24.04 LTS