Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 875 Bytes

README.md

File metadata and controls

57 lines (38 loc) · 875 Bytes

Cloud Hypervisor Golang SDK

Example

Setup cloud-hypervisor.

sudo setcap cap_net_admin+ep $(which cloud-hypervisor)

Download and prepare assets.

make assets

Build the example code.

make build

Run the example code.

make run

Login using jumppad as user and cloud123 as password.

Ubuntu 24.04 LTS microvm hvc0

microvm login:

From another terminal session, confirm that the virtual machine is running.

sudo curl -s --unix-socket /tmp/cloud-hypervisor.sock \
  http://localhost/api/v1/vm.info | jq .

To exit and cleanup. Either shutdown the machine gracefully or forcefully.

# Gracefully from inside the vm.
jumppad@microvm:~$ sudo shutdown -h now

# Then after a few seconds, exit the process with CTRL+C
# Forcefully from outside the vm.
make kill