Skip to content

retpolanne/cloud-vm-sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloud VM Simulator

This app simulates a cloud VM such as EC2. It can receive some user-data for cloud-init and it will provision a QEMU VM. It can also monitor the VM state and other things.

To specify a cloud image different than bionic, set this env var:

export CLOUD_VM_IMG_PATH=$PWD/whatever.qcow2

For append options, set these variables (make sure you have a vmlinuz file or a valid kernel as well):

export KERNEL_APPEND="root=/dev/sda"
export KERNEL_VMLINUZ_PATH="./vmlinuz"

TODO

  • Create function to start QEMU with the provided user-data
  • Serve user-data to QEMU
  • If planning on running multiple VMs, copy the .img to tmp .img file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published