From 350e1d11d5edb9265e946884e9c6b765a8a1d397 Mon Sep 17 00:00:00 2001 From: varac Date: Sun, 10 Feb 2013 12:28:39 +0100 Subject: updated README.md --- README.md | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 40c9fe3..818b8cc 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Leap Cloudadmin Tools ===================== -Tools to clone a new kvm instance from an existing baseimage +Tools to clone a new kvm instance from an existing baseimage, using LVM. Outline @@ -27,12 +27,8 @@ Cloning Images will take these steps: Setup (once) ============ -* We need util-linux from wheezy, because of the "sfdisk-feature": - https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/686124 which lets us script the growing of the root partition. - apt-get install dosfstools mtools - apt-get install -t wheezy util-linux - echo "mtools_skip_check=1">~/.mtoolsrc + echo "mtools_skip_check=1" > ~/.mtoolsrc mkdir /var/lib/libvirt/cloudinit chown libvirt-qemu /var/lib/libvirt/cloudinit @@ -47,11 +43,11 @@ Clone Instance * 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 + cp /usr/local/bin/leap_cloudadmin/vmtest.cfg.example /etc/libvirt/local/cloudinit/NAME.cfg * create new VM: - /usr/local/bin/create-guest-with-cloudinit -s 7 NAME + /usr/local/bin/create-guest-with-cloudinit -r 7 -n NAME * see /var/log/cloud-init.log on guest for information on cloudinit run @@ -73,14 +69,15 @@ Networking * 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 - address 94.103.43.9 - netmask 255.255.255.0 - network 94.103.43.0 - broadcast 94.103.43.255 - gateway 94.103.43.1 - # dns-* options are implemented by the resolvconf package, if installed - dns-nameservers 8.8.8.8 8.8.4.4 - dns-search leap.se + + allow-hotplug eth1 + iface eth1 inet static + address 94.103.43.9 + netmask 255.255.255.0 + network 94.103.43.0 + broadcast 94.103.43.255 + gateway 94.103.43.1 + # dns-* options are implemented by the resolvconf package, if installed + dns-nameservers 8.8.8.8 8.8.4.4 + dns-search leap.se -- cgit v1.2.3