HypervisorCloudHypervisor - henk52/knowledgesharing GitHub Wiki
Cloud-hypervisor
Introduction
Purpose
References
Vocabuary
First run
From: Quick Start
- wget -P ~/Downloads https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
- qemu-img convert -p -f qcow2 -O raw ~/Downloads/focal-server-cloudimg-amd64.img ~/tmp/cloudhypervisor focal-server-cloudimg-amd64.raw
- wget -P ~/tmp/cloudhypervisor https://github.com/cloud-hypervisor/rust-hypervisor-firmware/releases/download/0.4.2/hypervisor-fw
- wget -P ~/tmp/cloudhypervisor https://raw.githubusercontent.com/cloud-hypervisor/cloud-hypervisor/refs/heads/main/scripts/create-cloud-init.sh
getcap ./cloud-hypervisor
It creates a FAT12 disk image used as a cloud-init NoCloud seed disk.
mkdosfs -n CIDATA -C "$OUTPUT_FILE" 8192 — creates a 8192-block FAT filesystem image with volume label CIDATA (the label cloud-init looks for) mcopy -oi "$OUTPUT_FILE" -s ... :: — copies each file into the root of that image (:: means root of the FAT image) The three files copied are the standard cloud-init NoCloud sources:
File Purpose user-data Runs on first boot: users, packages, commands meta-data Instance ID and hostname network-config Network interface configuration When the VM boots, cloud-init detects the CIDATA-labeled disk and reads these files to configure the instance — no network metadata server needed.
CONTEXT-SWITCHING
- current - download cloud-hypervisor to the tmp/cloud-hypervisor dir
- then do the setcap
- then continue with the get started from the cloud-hypervisor webpage.