From c92ede9f094d605fa349b44dea753324cf367894 Mon Sep 17 00:00:00 2001 From: varac Date: Tue, 13 Nov 2012 22:29:29 +0100 Subject: updated README.md --- README.md | 18 ++++++++++++++---- 1 file 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 -- cgit v1.2.3