HypervisorCloudHypervisor - henk52/knowledgesharing GitHub Wiki

Cloud-hypervisor

Introduction

Purpose

References

Vocabuary

First run

From: Quick Start

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.