Hallo,
we want to install some VM's automatically.
For this we have created a shell script which use the qm create command to create the VM.
qm create $ID -name $NAME -bootdisk scsi0 -scsi0 NVME:$DISK1SIZE -scsihw virtio-scsi-pci -scsi1 HDD:$DISK2SIZE -memory 8192 -ostype l26 -sockets $SOCKETS -cores $CORES -cpu host -numa 1 -net0 virtio,bridge=vmbr112 -net1 virtio,bridge=vmbr$VLAN2
Now to our question:
After we created the VM with this script, we want to start the VM and boot over PXE to install the OS.
We already saw "--boot n" for the qm create command but don't want to use is because this will set the networkboot permanent.
Is there a way to tell the VM to boot only one time from network?
(PS: I don't want to start the VM and start the networkboot manually from the one time boot menu )
Greeting,
Tobi
we want to install some VM's automatically.
For this we have created a shell script which use the qm create command to create the VM.
qm create $ID -name $NAME -bootdisk scsi0 -scsi0 NVME:$DISK1SIZE -scsihw virtio-scsi-pci -scsi1 HDD:$DISK2SIZE -memory 8192 -ostype l26 -sockets $SOCKETS -cores $CORES -cpu host -numa 1 -net0 virtio,bridge=vmbr112 -net1 virtio,bridge=vmbr$VLAN2
Now to our question:
After we created the VM with this script, we want to start the VM and boot over PXE to install the OS.
We already saw "--boot n" for the qm create command but don't want to use is because this will set the networkboot permanent.
Is there a way to tell the VM to boot only one time from network?
(PS: I don't want to start the VM and start the networkboot manually from the one time boot menu )
Greeting,
Tobi