From 12baf36e87c6a0968939e98b1969bc1b9d8cb0bc Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Fri, 8 May 2009 20:16:03 +0100 Subject: [PATCH] Experimental febootstrap install script. --- HACKING | 3 +++ contrib/README | 6 ++++++ contrib/febootstrap/install.html | 21 +++++++++++++++++++++ contrib/febootstrap/install.sh | 39 +++++++++++++++++++++++++++++++++++++++ contrib/febootstrap/install.title | 1 + 5 files changed, 70 insertions(+) create mode 100644 contrib/README create mode 100644 contrib/febootstrap/install.html create mode 100755 contrib/febootstrap/install.sh create mode 100644 contrib/febootstrap/install.title diff --git a/HACKING b/HACKING index f77defe..7d235bc 100644 --- a/HACKING +++ b/HACKING @@ -31,6 +31,9 @@ Please test any changes. Directories ---------------------------------------------------------------------- +contrib/ + Outside contributions, experimental parts. + daemon/ The daemon that runs inside the guest and carries out actions. diff --git a/contrib/README b/contrib/README new file mode 100644 index 0000000..5500ef4 --- /dev/null +++ b/contrib/README @@ -0,0 +1,6 @@ +centos5.3-libguestfs.spec + CentOS 5.3 specfile. + +febootstrap/ + An experimental, non-working attempt to use febootstrap + to install operating systems. diff --git a/contrib/febootstrap/install.html b/contrib/febootstrap/install.html new file mode 100644 index 0000000..5e5521b --- /dev/null +++ b/contrib/febootstrap/install.html @@ -0,0 +1,21 @@ +

+This script shows how to make a fresh virtual machine, installing an +operating system like Fedora or some Red Hat-derived operating system +such as Red Hat Enterprise +Linux or CentOS. +

+ +

+It's fairly easy to modify this script to install Debian derivatives +too (even from a Fedora host), +using debootstrap. +

+ +

+After running the script, you can boot the new virtual +machine by doing: +

+ +
+qemu-kvm -m 512 -hda /tmp/vm.img
+
diff --git a/contrib/febootstrap/install.sh b/contrib/febootstrap/install.sh new file mode 100755 index 0000000..9d86d60 --- /dev/null +++ b/contrib/febootstrap/install.sh @@ -0,0 +1,39 @@ +#!/bin/sh - + +#vm=/tmp/vm.img +vm=/mnt/share/tmp/vm.img + +modules="--group-install Core -i kernel -i grub" + +# Choose one: +#febootstrap $modules fedora-10 local +febootstrap $modules fedora-11 local +#febootstrap $modules centos-5 local http://mirror.centos.org/centos-5/5.3/os/i386/ + +tar zcf local.tar.gz local +#rm -rf local + +guestfish <