From 46af8a34b4bfeac8932a24ad9998d2fbe9a086a4 Mon Sep 17 00:00:00 2001 From: whiskerz007 <2713522+whiskerz007@users.noreply.github.com> Date: Fri, 20 Mar 2020 15:17:58 +0100 Subject: [PATCH] Enable QEMU Agent --- README.md | 8 +++++++- install.sh | 5 +++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f54c082..d14c171 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/install.sh b/install.sh index 56d8a11..0bafa0a 100644 --- a/install.sh +++ b/install.sh @@ -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 \