VM scripts automate the creation and configuration of virtual machines on Proxmox VE. These scripts are ideal for operating systems and applications that require full virtualization.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/community-scripts/ProxmoxVE/llms.txt
Use this file to discover all available pages before exploring further.
Running VM Scripts
Configure VM Options
The script will prompt you to configure:
- VM ID
- VM name/hostname
- Disk size
- CPU cores
- RAM allocation
- Network bridge
- MAC address
- Storage location
Available VM Scripts
VM scripts are located in thevm/ directory:
Complete VM Script List
All available VM scripts:archlinux-vm.sh- Arch Linuxdebian-vm.sh- Debian 12debian-13-vm.sh- Debian 13docker-vm.sh- Docker VMhaos-vm.sh- Home Assistant OSmikrotik-routeros.sh- MikroTik RouterOSnextcloud-vm.sh- Nextcloud VMopenwrt-vm.sh- OpenWrtopnsense-vm.sh- OPNsenseowncloud-vm.sh- ownCloudpimox-haos-vm.sh- Home Assistant OS for Pitruenas-vm.sh- TrueNASubuntu2204-vm.sh- Ubuntu 22.04 LTSubuntu2404-vm.sh- Ubuntu 24.04 LTSubuntu2504-vm.sh- Ubuntu 25.04umbrel-os-vm.sh- Umbrel OS
VM Script Features
Automatic Image Download
VM scripts automatically download the latest official images:Hardware Configuration
Scripts configure appropriate hardware settings:- BIOS: UEFI or SeaBIOS depending on the OS
- Machine Type: q35 or i440fx
- SCSI Controller: VirtIO SCSI or other as needed
- Network: VirtIO network adapter
- Display: VGA, Serial, or SPICE
Storage Options
Choose where to store the VM disk:VM disks are typically stored as qcow2 or raw images depending on your storage backend.
Customizing VM Creation
Pre-set Variables
Some VM scripts accept environment variables:Post-Creation Configuration
After VM creation, you may need to:- Start the VM from Proxmox web UI
- Access the console to complete OS setup
- Configure network settings
- Install additional software
VM vs Container
When to use a VM script instead of a container script:| Use VM When | Use Container When |
|---|---|
| Need full OS isolation | Want lightweight deployment |
| Require kernel modules | App runs in user space |
| Need different OS kernel | Debian/Ubuntu base is fine |
| Hardware passthrough needed | Don’t need PCI devices |
| Running Windows/BSD | Running Linux apps |
Example: Home Assistant OS
The Home Assistant OS VM script demonstrates advanced features:- Detects available storage
- Downloads the latest HAOS qcow2 image
- Creates a VM with optimal settings
- Imports the disk
- Configures boot order
- Provides access information
Troubleshooting
VM Won’t Start
Check the VM hardware settings:Network Not Working
Verify the network bridge exists:Insufficient Storage
Check available space before creating VMs:Next Steps
- Configure VM backups in Proxmox VE
- Set up snapshots for easy rollback
- Configure cloud-init for automated setup (on supported VMs)
- Add VMs to High Availability groups