diff options
author | Richard Jones <rjones@redhat.com> | 2009-05-08 20:16:03 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-05-08 20:16:03 +0100 |
commit | 12baf36e87c6a0968939e98b1969bc1b9d8cb0bc (patch) | |
tree | 5f6a4c9c1a2283dff13114ea5570961e9898be8a /contrib | |
parent | cead6fe22d32e8fcdb26c60fdad5db49bf3f0ec0 (diff) | |
download | libguestfs-12baf36e87c6a0968939e98b1969bc1b9d8cb0bc.tar.gz libguestfs-12baf36e87c6a0968939e98b1969bc1b9d8cb0bc.tar.xz libguestfs-12baf36e87c6a0968939e98b1969bc1b9d8cb0bc.zip |
Experimental febootstrap install script.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/README | 6 | ||||
-rw-r--r-- | contrib/febootstrap/install.html | 21 | ||||
-rwxr-xr-x | contrib/febootstrap/install.sh | 39 | ||||
-rw-r--r-- | contrib/febootstrap/install.title | 1 |
4 files changed, 67 insertions, 0 deletions
diff --git a/contrib/README b/contrib/README new file mode 100644 index 00000000..5500ef4a --- /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 00000000..5e5521b1 --- /dev/null +++ b/contrib/febootstrap/install.html @@ -0,0 +1,21 @@ +<p> +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 <a href="http://www.redhat.com/rhel/">Red Hat Enterprise +Linux</a> or <a href="http://centos.org/">CentOS</a>. +</p> + +<p> +It's fairly easy to modify this script to install Debian derivatives +too (even from a Fedora host), +using <a href="http://packages.debian.org/stable/admin/debootstrap">debootstrap</a>. +</p> + +<p> +<i>After</i> running the script, you can boot the new virtual +machine by doing: +</p> + +<pre> +qemu-kvm -m 512 -hda /tmp/vm.img +</pre> diff --git a/contrib/febootstrap/install.sh b/contrib/febootstrap/install.sh new file mode 100755 index 00000000..9d86d600 --- /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 <<EOF +#alloc $vm 8GB +add $vm +run +sfdisk /dev/sda 0 0 0 ',100 ,' +echo Size of /dev/sda1: +blockdev-getsize64 /dev/sda1 +echo Size of /dev/sda2: +blockdev-getsize64 /dev/sda2 +lvm-remove-all +pvcreate /dev/sda2 +vgcreate VG /dev/sda2 +lvcreate Root VG 6000 +lvcreate Swap VG 500 +mkfs ext3 /dev/sda1 +mkfs ext3 /dev/VG/Root +mount /dev/VG/Root / +mkdir /boot +mount /dev/sda1 /boot +tgz-in local.tar.gz / +grub-install / /dev/sda +EOF + +#rm local.tar.gz diff --git a/contrib/febootstrap/install.title b/contrib/febootstrap/install.title new file mode 100644 index 00000000..00d6b1b2 --- /dev/null +++ b/contrib/febootstrap/install.title @@ -0,0 +1 @@ +Fresh install of Fedora or a Red Hat-derived operating system
\ No newline at end of file |