whiskerz007 / proxmox_hassos_install

MIT License
881 stars 192 forks source link

Mount warning and VM not Start #125

Open hellresistor opened 2 years ago

hellresistor commented 2 years ago
# bash -c "$(wget -qLO - https://github.com/whiskerz007/proxmox_hassos_install/raw/master/install.sh)"
[INFO] Using 'local' for storage location.
[INFO] Container ID is 100.
Getting URL for latest Home Assistant disk image...
Downloading disk image...
Extracting disk image...
Creating VM...
Adding serial port and configuring console...
mount: /tmp/tmp.OUTPOb4HdB/mnt: /dev/mapper is not a block device.
[WARNING] Unable to configure serial port. VM is still functional.
loop deleted : /dev/loop0
[INFO] Completed Successfully! New VM ID is 100.

Unable to Start VM

()
kvm: device requires 67108864 bytes, block backend provides 131072 bytes
TASK ERROR: start failed: QEMU exited with code 1

prox1 prox2

Have tried resize disk # qm resize 100 efidisk0 +256M

But keeps the same message

kvm: device requires 67108864 bytes, block backend provides 268566528 bytes
TASK ERROR: start failed: QEMU exited with code 1
hellresistor commented 2 years ago

after a little change on script replacing Variable 'vmdk' to 'qcow2' and execute a more precise EFIdisk space 'qm resize 100 efidisk0 +65408K' I am able start the VM, BUT stays here :|

proxhanotboot

meichthys commented 2 years ago

I get this often. Not sure why. To get things going you can try this from the host machine:

# Make sure VM is disabled:
ha-manager set vm:<VMID> --state disabled
# Open GDISK to modify disk partition map
gdisk /dev/zvol/rpool/vm-<VMID>-disk-<DISK#>
# Once GDISK opens, then just use the W command to re-write the partiion map
# Re-enable (start) VM to verify the VM boots using the disk
ha-manager set vm:<VMID> --state enabled