Proxmox , VMs and VLan´s

Nach einer Neuinstallation eines Proxmox-Servers wollte ich einer VM ein VLAN-Tag zuweisen. Daraufhin bekam ich aber folgende Fehlermeldung beim Starten dieser VM:

error: start failed: QEMU exited with code 1 
1. Die Bridge ist nicht "VLAN aware" (Häufigster Grund)
Wenn du in den VM-Einstellungen ein VLAN-Tag einträgst, Proxmox aber auf der Netzwerkbrücke (vmbr0) nicht erlaubt hat, VLANs zu verarbeiten, bricht der Startvorgang mit genau diesem Fehler ab.

So behebst du es:

1. Gehe zu deinem Node -> System -> Network.

2. Wähle die Brücke aus (meist vmbr0) und klicke auf Edit.

3. Setze den Haken bei VLAN aware.

4. Klicke auf OK und dann unbedingt oben auf Apply Configuration.
Das Problem blieb leider bestehen. Also schlug Gemeni vor:
In der shell die VM durch den Befehl starten:

qm start <VM-ID>

Da bekam ich einen neuen Hinweis, den Fehler : failed with status 6400

cat /etc/network/interfaces

iface vmbr0 inet static
    address  192.168.1.10/24
    bridge-ports eth0
    bridge-stp off
    bridge-fd 0
    bridge-vlan-aware yes    <-- Das muss hier stehen!
Da stand der letzte Punkt echt nicht drin, obwohl ich vorher mit „apply“ bestätigt hatte. Also die Zeile geändert, und nun gab es beim Zuweisen des VLAN-Tag auch keinen Fehler mehr beim Starten der VM.

HomeAssistant on Proxmox install

Hier gibt es es eine sehr gute Anleitung wie man eine VM mit Homeassistant unter Proxmox aufsetzt: LINK


Obtain the VM image

- Navigate to the installation page on the HA website: https://www.home-assistant.io/installation/alternative

- Simply right-click the KVM/Proxmox link and copy the address

- In your Proxmox console, use wget to download the file

Bash:
wget <ADDRESS>

- Expand the compressed image

Bash:
unxz </path/to/file.qcow2.xz>



Create the VM

General:
- Select your VM name and ID
- Select 'start at boot'

OS:
- Select 'Do not use any media'

System:
- Change 'machine' to 'q35'
- Change BIOS to OVMF (UEFI)
- Select the EFI storage (typically local-lvm)
- Uncheck 'Pre-Enroll keys'

Disks:
- Delete the SCSI drive and any other disks

CPU:
- Set minimum 2 cores

Memory:
- Set minimum 4096 MB

Network:
- Leave default unless you have special requirements (static, VLAN, etc)


Confirm and finish. Do not start the VM yet.



Add the image to the VM

- In your node's console, use the following command to import the image from the host to the VM

Bash:
qm importdisk <VM ID> </path/to/file.qcow2> <EFI location>

For example,

Bash:
qm importdisk 205 /home/user/haos_ova-12.0.qcow2 local-lvm


- Close the node's console and select your HA VM

- Go to the 'Hardware' tab

- Select the 'Unused Disk' and click the 'Edit' button

- Check the 'Discard' box if you're using an SSD then click 'Add'

- Select the 'Options' tab

- Select 'Boot Order' and hit 'Edit'

- Check the newly created drive (likely scsi0) and uncheck everything else


Finish Up

- Start the VM

- Check the shell of the VM. If it booted up correctly, you should be greeted with the link to access the Web UI.

- Navigate to <VM IP>:8123

Proxmox – Win10 VM

Vorhanden:

HP ProLiant DL 380 Gen8 – Proxmox PVE

Problem:

  • Bei der Windows 10 VM wurde die Intel Netzwerkkarte nicht erkannt

Weg:

  • Mehrer ISOs von Windows 10 probiert, bei der VM mal die Intel Variante e1000 oder VirtIO gewählt bei Netzwerk
  • Bei einer älteren ISO hatte es geklappt, doch nach dem Windows Update, war das Netzwerk wieder weg

Lösung: