Skip to content

sk4zuzu/vm-pool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5744edf · Jan 25, 2025
Jan 25, 2025
Jun 1, 2021
Jun 1, 2021
Jan 25, 2025
Jan 25, 2025
Jan 8, 2022
Mar 5, 2020
Jan 25, 2025
Nov 17, 2024
Mar 17, 2023
Feb 15, 2022
Jul 5, 2024

Repository files navigation

SIMPLE VM ENVIRONMENT DONE IN LIBVIRT / QEMU ON LINUX

1. PURPOSE

Use local resources (cpu, memory and disk storage) for creating fully-automated environment for research and development.

2. REQUIREMENTS

2.1 SOFTWARE

System packages:

  • cdrkit (for mkisofs)
  • cloud-utils (for preparing VM initialization media)
  • curl
  • git
  • unzip

Base software:

Terraform providers:

2.2 RUNNING VM-POOL IN UBUNTU

apt update && apt install -y \
  cloud-image-utils \
  curl \
  genisoimage \
  libvirt-clients \
  libvirt-daemon-system \
  make \
  qemu \
  qemu-kvm \
  qemu-system-x86 \
  unzip
gawk -i inplace -f- /etc/libvirt/qemu.conf <<'EOF'
/^#*user[^=]*=/ { $0 = "user = \"root\"" }
/^#*group[^=]*=/ { $0 = "group = \"root\"" }
/^#*security_driver[^=]*=/ { $0 = "security_driver = \"none\"" }
{ print }
EOF
systemctl restart libvirtd
make requirements
make alpine-disk confirm a1-destroy a1-apply

2.3 RUNNING VM-POOL IN NIXOS

If you're using NixOS you can just enter Nix shell and continue from there:

nix-shell
make requirements
make alpine-disk confirm a1-destroy a1-apply

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published