Enable QEMU Agent
This commit is contained in:
parent
f05378b509
commit
46af8a34b4
@ -24,7 +24,13 @@ homeassistant login:
|
||||
|
||||
## Show Current IP Address
|
||||
|
||||
To get the current IP address assigned to the VM
|
||||
To get the current IP address assigned to the VM from the Proxmox interface
|
||||
- Click on the VM in the list of containers at the left side panel
|
||||
- Click `Summary` tab located beside the list of containers
|
||||
- Click `More` near `IPs` in the top left section
|
||||
- You can find the assigned IP addresses on the line with the name similar to `enp0s18`
|
||||
|
||||
To get the current IP address assigned to the VM from the command line
|
||||
- At the root prompt type `nmcli -g ip4.address d sh $(nmcli -g device c)`
|
||||
- The response will be the IP address with subnet mask or nothing
|
||||
|
||||
|
@ -108,8 +108,9 @@ done
|
||||
|
||||
# Create VM
|
||||
msg "Creating VM..."
|
||||
qm create $VMID -bios ovmf -name $(sed -e "s/\_//g" -e "s/.${RELEASE_EXT}//" <<< $FILE) \
|
||||
-net0 virtio,bridge=vmbr0 -onboot 1 -ostype l26 -scsihw virtio-scsi-pci
|
||||
VM_NAME=$(sed -e "s/\_//g" -e "s/.${RELEASE_EXT}//" <<< $FILE)
|
||||
qm create $VMID -agent 1 -bios ovmf -name $VM_NAME -net0 virtio,bridge=vmbr0 \
|
||||
-onboot 1 -ostype l26 -scsihw virtio-scsi-pci
|
||||
pvesm alloc $STORAGE $VMID $DISK0 128 1>&/dev/null
|
||||
qm importdisk $VMID ${FILE%".gz"} $STORAGE ${IMPORT_OPT:-} 1>&/dev/null
|
||||
qm set $VMID -bootdisk sata0 -efidisk0 ${DISK0_REF},size=128K \
|
||||
|
Loading…
Reference in New Issue
Block a user