craig-sanders / fakecloud

meta-data server to enable running pre-built cloud VM images with just libvirt (or kvm or xen, etc)
GNU General Public License v3.0
8 stars 0 forks source link

fakecloud

(aka 'homecloud')

fakecloud is a lightweight cloud-init metadata server that makes it easy to run pre-built cloud OS images on plain old libvirt, without having to install openstack or similar.

It serves the data that cloud-init expects to fetch from a meta-data server at http://169.254.169.254/

Run it on your VM host(s), and add an iptables rule to redirect cloud-init requests to it. e.g. if fakecloud is running on localhost:3000:

iptables -t nat -I PREROUTING -d 169.254.169.254 -p tcp --dport 80 -j REDIRECT --to-port 3000

Features:

Testing features:

Future plans:

Written with perl and Mojolicious::Lite