Skip to content

Proxmox

Convert the Ubuntu cloud image just uploaded to a disk of the VM just created.

  • Ubuntu Server 24.04 LTS (Noble Numbat) cloud image

  • Create a VM on the Web GUI

  • OS Select Do not use any media.
  • Disks Delete scsi0 on the left.
  • CPU
    • Type: host
  • Network

    • Turn off the firewall to test
  • SSH to Proxmox and login root account.

    cd /var/lib/vz/template/iso
    qm importdisk <VM_ID> <image_file> <storage_name>
    qm set <VM_ID> --virtio0 <storage_name>:vm-<VM_ID>-disk-0
    qm set <VM_ID> --boot c --bootdisk virtio0
    qm set <VM_ID> --ide0 <storage_name>:cloudinit
    

example

qm importdisk 100 noble-server-cloudimg-amd64.img local-lvm
qm set <100> --virtio0 local-lvm:vm-100-disk-0
qm set <100> --boot c --bootdisk virtio0
qm set <100> --ide0 local-lvm:cloudinit

  1. resize the disk after config Web GUI: Hardware => Hard disk => Disk Action => Resize

  2. Edit the Cloud-Init

User Password IP config

press Regenerate Image button after the change

Proxmox is the one VM of ESXi Host(nested environment)

ESXi side

port group - security policy - Allow promiscuous mode: yes - Allow forged transmits: yes - Allow MAC changes: no

Proxmox side

mandatory

add the bridge-ageing 0

validate the /etc/network/interfaces

auto lo
iface lo inet loopback

iface nic0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 172.19.30.107/24
        gateway 172.19.30.1
        bridge-ports nic0
        bridge-stp off
        bridge-fd 0
        bridge-ageing 0

source /etc/network/interfaces.d/*

ifreload -a
bridge fdb show | grep -i bc:24:11:41:6e:c1

optional

vmbr0 - VLAN aware: yes

validate the /etc/network/interfaces

auto lo
iface lo inet loopback

iface nic0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 172.19.30.107/24
        gateway 172.19.30.1
        bridge-ports nic0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094
        bridge-ageing 0

source /etc/network/interfaces.d/*

ifreload -a
bridge fdb show | grep -i bc:24:11:41:6e:c1