Skip to main content
Community Scripts logo
VM Scripts

Virtual machine scripts

Which VM scripts exist, what each one creates, and how they differ from container scripts.

A VM script runs on the host, asks a few questions, downloads a disk image or an installer ISO, and creates a virtual machine from it. On Proxmox VE that means qm; on Incus it means incus init --vm.

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/vm/debian-vm.sh)"

Run it in the Proxmox VE host shell as root. The script needs a terminal of at least 60x18 for its dialogs, and a host with /dev/kvm.

How VM scripts differ from container scripts

Container script (ct/)VM script (vm/)
Files per appct/<app>.sh on the host plus install/<app>-install.sh in the guestOne file, vm/<name>-vm.sh. There is no install script.
Engine loadedcore/build.funcpve/vm-core.func (Proxmox VE) or incus/vm-core.func (Incus)
What is createdAn LXC container from a templateA QEMU/KVM guest from a vendor cloud image, an appliance image, or an installer ISO
How software gets inThe install script runs inside the running containerThe image is modified offline with virt-customize before import, a first-boot unit is staged into it, or the user finishes an installer in the console
Settingsvar_* variables, defaults files, the shared wizardThe script's own default_settings and advanced_settings functions; unattended runs use VM_* variables
UpdateRun the ct/ script again inside the containerNo update function. The guest is updated with its own tools.
One script for both platformsYes, core/build.func picks the backendNo. Proxmox VE and Incus each have their own vm/ directory.
Failure after creationThe container is removedDepends on the script: see failure handling

Proxmox VE scripts

These are the scripts in ProxmoxVE/vm/.

Architecture. The engine's arch_check stops every script on a host that is not amd64 unless the script sets var_arm64="yes". Two scripts do. Several others already build an arm64 image URL with vm_arch_resolve, but still stop at that check; they are listed as amd64.

Cloud-Init. "Optional" means the script asks. "Required" means the image has no other way in, so the script only asks for the credentials. "No" means the VM is never given a Cloud-Init drive.

ScriptWhat it createsImage sourceArchitectureCloud-Init
allstarlink-vm.shDebian 13 or 12 with AllStarLink (asl3) installed into the image, optionally Allmon3Debian nocloud qcow2, cloud.debian.orgamd64No
almalinux-vm.shAlmaLinux 10, 9 or 8, with a TPM 2.0 state diskGenericCloud qcow2, repo.almalinux.orgamd64Required
alpine-vm.shAlpine (latest stable), with a TPM 2.0 state diskgeneric_alpine-*-x86_64-uefi-cloudinit qcow2, dl-cdn.alpinelinux.orgamd64Required
archlinux-vm.shEmpty disk plus the Arch Linux installer ISOarchlinux-x86_64.iso, geo.mirror.pkgbuild.comamd64No
cachyos-vm.shEmpty disk plus the CachyOS desktop installer ISOSourceForge, cachyos-arch projectamd64No
debian-vm.shDebian 13, 12 or 11genericcloud qcow2 with Cloud-Init, nocloud without, cloud.debian.orgamd64Optional
docker-vm.shDebian 13/12 or Ubuntu 26.04/24.04/22.04 with Docker installed into the imageDebian generic or nocloud qcow2; Ubuntu server-cloudimgamd64 and arm64Optional on Debian, always on for Ubuntu
fedora-vm.shNewest Fedora release, with a TPM 2.0 state diskFedora-Cloud-Base-Generic qcow2, dl.fedoraproject.orgamd64Required
haos-vm.shHome Assistant OS, stable, beta or devhaos_ova-*.qcow2.xz, GitHub releases (dev: os-artifacts.home-assistant.io)amd64No
mikrotik-routeros.shMikroTik RouterOS CHR, no EFIchr-*.img.zip, download.mikrotik.comamd64No
nextcloud-vm.shEmpty disk plus the TurnKey Nextcloud installer ISO, SeaBIOSmirror.turnkeylinux.orgamd64No
openwrt-vm.shOpenWrt with a LAN and a WAN NIC, configured through qm sendkeygeneric-ext4-combined.img.gz, downloads.openwrt.orgamd64No
opnsense-vm.shA FreeBSD VM that is turned into OPNsense by the upstream bootstrap, typed in through qm sendkeyFreeBSD qcow2.xz VM image, download.freebsd.orgamd64No
owncloud-vm.shEmpty disk plus the TurnKey ownCloud installer ISO, SeaBIOSmirror.turnkeylinux.orgamd64No
pimox-haos-vm.shHome Assistant OS for ARM hosts, machine type virthaos_generic-aarch64-*.qcow2.xz, GitHub releasesarm64 onlyNo
truenas-vm.shEmpty SATA disk plus a TrueNAS installer ISO; can pass through onboard disksdownload.truenas.comamd64No
ubuntu-vm.shUbuntu 26.04, 24.04 or 22.04server-cloudimg image, cloud-images.ubuntu.comamd64Optional
umbrel-os-vm.shEmpty disk plus the umbrelOS installer ISOdownload.umbrel.comamd64No
unifi-os-server-vm.shDebian 13 or Ubuntu 24.04 with the UniFi OS Server installer staged to run on first bootDebian generic qcow2 or Ubuntu server-cloudimgamd64Required
zimaos-vm.shEmpty disk plus the ZimaOS installer ISOGitHub releases, IceWhaleTech/ZimaOSamd64No

Scripts that attach an installer ISO leave the installation to you: open the VM console, install onto the empty disk, then detach the ISO with qm set <vmid> --ide2 none. The boot order already puts the disk before the ISO (scsi0;ide2, on TrueNAS sata0;ide2), so the disk wins as soon as something is on it.

Scripts in testing (DevScripts)

DevScripts/vm/ holds VM scripts that are still being tested. They use the same engine.

ScriptWhat it createsImage sourceArchitectureCloud-Init
blissos-vm.shEmpty disk plus the BlissOS (Android x86) installer ISOSourceForge, blissos-x86 projectamd64No
k3s-vm.shDebian or Ubuntu with K3s and Helm installed into the imageDebian or Ubuntu cloud imageamd64Optional on Debian, required on Ubuntu
netbird-server.shDebian or Ubuntu with Docker; NetBird is set up on first bootDebian or Ubuntu cloud imageamd64Optional on Debian, required on Ubuntu
nextcloud-aio-vm.shDebian or Ubuntu with Docker; Nextcloud AIO is set up on first bootDebian or Ubuntu cloud imageamd64Optional on Debian, required on Ubuntu
owncloud-ocis-vm.shDebian or Ubuntu with Docker; ownCloud Infinite Scale is set up on first bootDebian or Ubuntu cloud imageamd64Optional on Debian, required on Ubuntu
waydroid-vm.shUbuntu 24.04 or Debian 13 with WaydroidUbuntu noble-server-cloudimg or Debian generic qcow2amd64Required

owncloud-vm.sh, pimox-haos-vm.sh and umbrel-os-vm.sh exist in both repositories.

Incus scripts

The Incus repository has its own vm/ directory. Those scripts load incus/vm-core.func and end in one call, incus_vm_create.

KindScriptsImage
Launched from the images: remotealmalinux-vm.sh, alpine-vm.sh, alt-vm.sh, archlinux-vm.sh, debian-vm.sh, fedora-vm.sh, freebsd-vm.sh, gentoo-vm.sh, nixos-vm.sh, openeuler-vm.sh, opensuse-vm.sh, openwrt-vm.sh, rockylinux-vm.sh, ubuntu-vm.shvar_image, for example images:debian/13
Downloaded and imported as an Incus imagedocker-vm.sh, haos-vm.sh, mikrotik-routeros-vm.sh, umbrel-os-vm.shA vendor disk image, fetched with vm_fetch_image

There is no Incus version of the installer-ISO scripts or of the two scripts that type into the console with qm sendkey. The engine page lists what exists on which platform.