2021-06-18 08:56:10 +00:00
|
|
|
# How to build and test Cloud Hypervisor on AArch64
|
2020-06-09 13:04:58 +00:00
|
|
|
|
2021-12-24 05:26:09 +00:00
|
|
|
This document introduces how to build and test Cloud Hypervisor on AArch64.
|
|
|
|
Currently, Cloud Hypervisor supports 2 methods of booting on AArch64: UEFI
|
|
|
|
booting and direct-kernel booting. The document covers both methods.
|
2021-06-18 08:56:10 +00:00
|
|
|
|
2021-12-01 03:25:28 +00:00
|
|
|
All the steps are based on Ubuntu. We use the Ubuntu cloud image for guest VM
|
|
|
|
disk.
|
2021-06-18 08:56:10 +00:00
|
|
|
|
|
|
|
### Booting the guest VM
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ pushd $CLOUDH
|
2021-12-01 03:25:28 +00:00
|
|
|
$ sudo $CLOUDH/cloud-hypervisor/target/debug/cloud-hypervisor \
|
|
|
|
--api-socket /tmp/cloud-hypervisor.sock \
|
|
|
|
--kernel $CLOUDH/linux/arch/arm64/boot/Image \
|
|
|
|
--disk path=focal-server-cloudimg-arm64.raw \
|
|
|
|
--cmdline "keep_bootcon console=ttyAMA0 reboot=k panic=1 root=/dev/vda1 rw" \
|
|
|
|
--cpus boot=4 \
|
|
|
|
--memory size=4096M \
|
|
|
|
--net tap=,mac=12:34:56:78:90:01,ip=192.168.1.1,mask=255.255.255.0 \
|
|
|
|
--serial tty \
|
|
|
|
--console off
|
2021-06-18 08:56:10 +00:00
|
|
|
$ popd
|
|
|
|
```
|