summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2012-11-13 22:29:29 +0100
committervarac <varacanero@zeromail.org>2012-11-13 22:29:29 +0100
commitc92ede9f094d605fa349b44dea753324cf367894 (patch)
tree13405f2f916f961960b45ef70b799552d0576094
parent06cd09bccf833ef7f1ade0d452b657f390c4e5fb (diff)
updated 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