Engineering & AI
Boot a Linux VM on KVM with Cloud Hypervisor
Use Cloud Hypervisor to boot an Ubuntu cloud image on KVM and verify the virtual machine’s console, CPUs, memory, and disk.
Summary
- Use Cloud Hypervisor to boot a Linux VM on a host with KVM.
- Prepare firmware, an Ubuntu disk image, and a cloud-init disk for console access.
- Check the guest’s CPUs, memory, and disk against the boot configuration.

If you have a Linux host and want to check an Ubuntu cloud image, Cloud Hypervisor can boot it in a separate virtual machine. This small test helps pinpoint whether a failure comes from the host, firmware, or disk image. v55.0 README
HubCom reviewed the v55.0 documentation on November 27, 2026. We have yet to run this trial or use this configuration on a client project.
What does it solve?
- Try a disk image in a VM. Boot a copy of the Ubuntu image and inspect it before wider use.
- Control the test configuration. Choose how many CPUs, how much memory, and which disks the VM gets. v55.0 README
Features
- Runs on KVM or MSHV. This trial uses KVM on an x86-64 Linux host.
- Supports firmware boot and direct kernel boot. The project documents firmware boot for the Ubuntu cloud image. Firmware boot guide
When to use it
Try it when your team needs to verify that a Linux disk image boots with a planned CPU, memory, and device configuration.
A dedicated VM for each AI agent session
Cloud Hypervisor can provide the VM layer for a sandbox that runs automated tests or reviews code and dependencies. Give each session a fresh VM and its own writable disk to separate its workspace. Kata Containers integrates Cloud Hypervisor as a backend for running workloads in VMs. Kata Containers · Example EKS architecture for AI agent sandboxes
The orchestrator creates and boots the VM through the API, limits network access, and sets a timeout. When the task finishes, fails, or times out, it saves the reports it needs, deletes the VM, and clears the temporary disk and other session resources. The vm.delete API deletes the VM instance. Report collection and temporary-file cleanup are orchestrator tasks. VM lifecycle API · vm.delete specification
What to watch for
- Check KVM first. The account running the VMM needs access to
/dev/kvm. If the host is itself a VM, check that the environment supports nested KVM. - Prepare a console account. The Ubuntu cloud image needs initialization data for login. Create a NoCloud disk with credentials for this trial. NoCloud
Trial setup
Use an x86-64 Linux host with KVM. Boot one Ubuntu VM configured with 2 vCPUs and 1 GiB of memory. Use the host console and check boot, disk, and guest resources.
Steps
- Prepare the image and firmware. Get the x86-64
cloud-hypervisor-staticandhypervisor-fw. Download an Ubuntu 24.04 cloud image and convert it from QCOW2 to RAW as shown in the project example. Release · Disk image guide - Prepare the cloud-init disk. Make a NoCloud
seed.isowith console login configured for the guest. NoCloud - Boot and watch the console. Run
chmod +x cloud-hypervisor-staticto make the binary executable, then run the command below in the trial directory.
./cloud-hypervisor-static --firmware ./hypervisor-fw --disk path=cloudimg-amd64.raw,image_type=raw path=seed.iso,image_type=raw --cpus boot=2 --memory size=1024M --console ttyCommon mistakes
- Attaching the wrong image format. Confirm that
cloudimg-amd64.rawwas converted before specifyingimage_type=raw. - Confusing firmware output with the guest console. To see firmware or bootloader messages, the README describes
--serial ttyand distinguishes it from virtio-console. README
Verify the result
- Log in at the console. Confirm the guest finishes booting.
- Check the main resources. Run
nproc,free -h, andlsblkto inspect CPUs, memory, and disks. Guest-visible memory can be below the configured 1 GiB. - Shut down cleanly. Shut down from Ubuntu and confirm the VM process exits.
Out of scope
Networking, performance benchmarks, live migration, and production deployment.
Terms in this article (4)
- Cloud Hypervisor
- A Rust virtual machine monitor that runs on KVM or MSHV.
- KVM
- Linux kernel virtualization support for running virtual machines.
- Cloud image
- A prebuilt operating system disk image for booting in a cloud environment or VM.
- NoCloud
- A cloud-init data source that can read initialization data from an attached disk.
Frequently asked questions
Should I use the original cloud image for this trial?
Use a copy so you can start again with the original image.
The VM boots but I cannot log in. What should I check first?
Confirm the NoCloud disk is attached and its user data configures a console account.
Sources
- Cloud Hypervisor README v55.0, Cloud Hypervisor
- Cloud Hypervisor v55.0, Cloud Hypervisor
- Quick Start, Cloud Hypervisor
- Rust Hypervisor Firmware, Cloud Hypervisor
- Ubuntu 24.04 cloud images, Canonical
- NoCloud, cloud-init
- Cloud Hypervisor API, Cloud Hypervisor
- Cloud Hypervisor OpenAPI v55.0, Cloud Hypervisor
- Kata Containers with Cloud Hypervisor, Kata Containers
- Isolation backends for AI agent sandboxes on Amazon EKS, AWS Samples