Skip to content
Search Oracle Linux

    Browse this documentation

    OL cloud images on your own KVM/PVE: qcow2 import and direct boot measured, plus the cloud-init provisioning pit

    Running the official Oracle cloud image on your own KVM/PVE: the import-and-boot part is fully measured and working; the cloud-init provisioning stage hit a real pit — the seed was not consumed by either method — and both the symptoms and the troubleshooting path are recorded honestly.

    Import: three steps to a direct boot (measured, working)

    Section titled “Import: three steps to a direct boot (measured, working)”

    After qm importdisk, VM 382 boots straight to the login prompt (live screenshot)

    Terminal window
    # 1. Download (yum.oracle.com template page, U-generation naming)
    wget https://yum.oracle.com/templates/OracleLinux/OL10/u1/x86_64/OL10U1_x86_64-kvm-b291.qcow2
    # 1,073,872,896 bytes ≈ 1GB
    # 2. Import as a VM disk (PVE)
    qm create 382 --name ol10-cloud --cores 2 --memory 2048 --cpu host --net0 virtio,bridge=vmbr0
    qm importdisk 382 OL10U1_x86_64-kvm-b291.qcow2 local-lvm
    qm set 382 --scsi0 local-lvm:vm-382-disk-0,discard=on,ssd=1 --boot order=scsi0
    # 3. Start
    qm start 382

    Measured result: direct boot works — the console shows the Oracle Linux Server 10.1 / Kernel 6.12.0-202.76.4.4.el10uek login prompt. Import note: the qcow2 download is 1GB but the virtual disk is 37GiB (sparse) — size your thin pool by the latter.

    Provisioning: neither method was consumed (honest record)

    Section titled “Provisioning: neither method was consumed (honest record)”

    The whole value of a cloud image is hands-off cloud-init provisioning. Both routes measured:

    Route 1: a self-built NoCloud seed (genisoimage volid=cidata, user-data with chpasswd/runcmd) → after reboot the hostname is still localhost and Login incorrect.

    Route 2: PVE native cloudinit (qm set --ide2 local-lvm:cloudinit --ciuser root --cipassword …) → also did not take effect.

    Symptom summary: the image boots, networking works (a DHCP address was acquired), but the root password / hostname / runcmd were all ignored — cloud-init consumed neither seed. Ruled out: a wrong seed volume label (volid=cidata is correct) and PVE drive mounting (the ide2 cloudinit seed disk was generated).

    1. Boot into rescue mode and read datasource_list in /etc/cloud/cloud.cfg — the OL KVM template may enable only ConfigDrive/OCI data sources, not NoCloud;
    2. Read /var/log/cloud-init.log — confirm whether cloud-init even senses the seed disk;
    3. Compare against Oracle’s official ‘Oracle Linux KVM template’ usage — the template may ship oracle-cloud-agent rather than the standard cloud-init flow;
    4. The hard path: mount the qcow2 (guestfish/libguestfs) and inject an SSH public key directly before boot.

    Honest boundary: the provisioning section of this page is ‘an observed failure + a troubleshooting plan’, not ‘solved’ — the page will be updated once the rescue-mode investigation is completed on the same VM.