create_vm
Create a new QEMU virtual machine on a Proxmox node with configurable CPU, memory, disks, network, and boot settings.
Instructions
Create a new QEMU virtual machine.
Args: node: The node name. vmid: The VM ID number. name: VM name. memory: Memory in MB (default 2048). cores: Number of CPU cores per socket (default 1). sockets: Number of CPU sockets (default 1). cpu: CPU type (default 'host'). ostype: OS type: l26 (Linux 2.6+), win10, win11, wxp, other, etc. scsihw: SCSI controller: virtio-scsi-single, virtio-scsi-pci, lsi, megasas, pvscsi. scsi0: First SCSI disk (e.g. 'local-lvm:32' for 32GB on local-lvm). ide2: IDE device, often used for CD-ROM (e.g. 'local:iso/ubuntu.iso,media=cdrom'). net0: Network device (e.g. 'virtio,bridge=vmbr0'). boot: Boot order (e.g. 'order=scsi0;ide2;net0'). bios: BIOS type: seabios, ovmf (UEFI). machine: Machine type (e.g. 'q35', 'i440fx'). cdrom: CD-ROM ISO image path. agent: QEMU guest agent: '1' to enable, 'enabled=1,fstrim_cloned_disks=1'. start: Start the VM after creation. onboot: Start on host boot. description: VM description. pool: Resource pool to add the VM to. tags: Semicolon-separated tags.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | ||
| vmid | Yes | ||
| name | No | ||
| memory | No | ||
| cores | No | ||
| sockets | No | ||
| cpu | No | host | |
| ostype | No | l26 | |
| scsihw | No | virtio-scsi-single | |
| scsi0 | No | ||
| ide2 | No | ||
| net0 | No | ||
| boot | No | ||
| bios | No | seabios | |
| machine | No | ||
| cdrom | No | ||
| agent | No | ||
| start | No | ||
| onboot | No | ||
| description | No | ||
| pool | No | ||
| tags | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |