Skip to content

Commit

Permalink
Enable QEMU Agent
Browse files Browse the repository at this point in the history
  • Loading branch information
whiskerz007 committed Mar 20, 2020
1 parent f05378b commit 46af8a3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 46af8a3

Please sign in to comment.