diff options
author | varac <varacanero@zeromail.org> | 2013-02-10 12:28:39 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-02-10 12:28:39 +0100 |
commit | 350e1d11d5edb9265e946884e9c6b765a8a1d397 (patch) | |
tree | f3976782ffc72cbf9a8b8d264e02b524877650fa | |
parent | dd40c4b7ab13a931164c3b917474cc09a7a50f8e (diff) |
updated README.md
-rw-r--r-- | README.md | 33 |
1 files changed, 15 insertions, 18 deletions
@@ -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 |