mkdir /var/lib/libvirt/cloudinit
chown libvirt-qemu /var/lib/libvirt/cloudinit
+* Clone repository
+
+ git clone git://code.leap.se/leap_cloudadmin /usr/local/bin/leap_cloudadmin
+ ln -s /usr/local/bin/leap_cloudadmin/create-guest-with-cloudinit /usr/local/bin/create-guest-with-cloudinit
+
+
Clone Instance
==============
-* edit /etc/cloudinit/NAME.cfg, using vmtest.cfg.example from this repository as template
+* edit /etc/cloudinit/NAME.cfg, using vmtest.cfg.example from this repository as template:
+
+ cp /usr/local/bin/leap_cloudadmin/vmtest.cfg.example /etc/cloudinit/NAME.cfg
+
* create new VM:
/usr/local/bin/create-guest-with-cloudinit -s 7 NAME
Networking
----------
-* By default, eth0 uses NATed networking through the host virbr0. It gets an dynamic IP throught dhcp, and can access the internet through that.
-* To assign a static IP, add according entry to /etc/network/interfaces, i.e.:
-
+* By default, eth0 uses NATed networking through the host virbr0.
+ It gets an dynamic IP throught dhcp, and can access the internet through that.
+* To assign a static IP, either configure it in the condig file (recommended), or
+ add it later after logging into the vm. Add according entry to /etc/network/interfaces, i.e.:
allow-hotplug eth1
iface eth1 inet static