summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md18
1 files changed, 14 insertions, 4 deletions
diff --git a/README.md b/README.md
index 80467bb..40c9fe3 100644
--- a/README.md
+++ b/README.md
@@ -36,10 +36,19 @@ Setup (once)
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
@@ -59,9 +68,10 @@ Configure new guest
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