AREDN VM Install: Difference between revisions

From Useful notes
Jump to navigation Jump to search
(Created page with "VM_NAME=K0RAP-AUR-SUPERNODE VM_ID=$(pvesh get /cluster/nextid) RAM=1024 CORES=1 BRIDGE=vmbr0 STORAGE=local-lvm IMAGE=./aredn-3.23.12.0-x86-64-generic-ext4-combined.img qm cre...")
 
No edit summary
Line 1: Line 1:
<pre>
VM_NAME=K0RAP-AUR-SUPERNODE
VM_NAME=K0RAP-AUR-SUPERNODE
VM_ID=$(pvesh get /cluster/nextid)
VM_ID=$(pvesh get /cluster/nextid)
Line 17: Line 18:
qm set $VM_ID --serial0 socket --vga serial0
qm set $VM_ID --serial0 socket --vga serial0
qm set $VM_ID --boot c --bootdisk virtio0
qm set $VM_ID --boot c --bootdisk virtio0
</pre>

Revision as of 00:43, 1 January 2024

VM_NAME=K0RAP-AUR-SUPERNODE
VM_ID=$(pvesh get /cluster/nextid)
RAM=1024
CORES=1
BRIDGE=vmbr0
STORAGE=local-lvm
IMAGE=./aredn-3.23.12.0-x86-64-generic-ext4-combined.img

qm create --name $VM_NAME \
  $VM_ID --memory $RAM \
  --cores $CORES --cpu cputype=kvm64 \
  --net0 virtio,bridge=$BRIDGE \
  --scsihw virtio-scsi-pci --numa 1

qm set $VM_ID --scsihw virtio-scsi-pci --virtio0 $STORAGE:$VM_ID/vm-$VM_ID-disk-0.raw

qm set $VM_ID --serial0 socket --vga serial0
qm set $VM_ID --boot c --bootdisk virtio0