Skip to content

sk4zuzu/vm-pool

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