Skip to content

Ansible for generating KVM virtual machines in Raspberry Pi 4

License

Notifications You must be signed in to change notification settings

mabeett/generate-libvirt-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

generate-libvirt-vm

KVM virtual Machines for Raspberry Pi 4 hosts via Ansible, libvirt and cloud templates.

This role creates a virtual machine which is then accesible via cloud-init drive setup.

Requirements

Raspberry pi Running linux in 64 bits mode.

Currently this development has been done for Ubuntu 20.04.6 LTS but support to other targets might be done.

Role Variables

See defaults/main.yml for optional and mandatory settings.

You may add a file local-rpi4-${your-best-name}.yml specifing the source for your preferred VM OS, see vars/ files for the variables keys.

Dependencies

This development has been made with ansible 2.10.5.

Example Playbook

---
- hosts: all
  become: yes
  gather_facts: no
  vars:
    host_machine: rpi4
    guest_os: ubuntu-jammy
    vm_title: "ubuntu jammy 2023-10-15"
    cinit_password: h4ck3r!2
    cinit_authorized_keys:
      - ssh-rsa AAAAB3NzaC1ajNVw== foo@moon


  tasks:
    - include_role:
        name: generate-libvirt-vm

License

BSD

Author Information

for -vvv info

Matías Pecchia https://github.com/mabeett/

About

Ansible for generating KVM virtual machines in Raspberry Pi 4

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages