summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-08-20 11:40:01 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-08-20 11:40:01 +0200
commit02c8077e4bbf473eb1dfca55afd2eba4def5c003 (patch)
treeeb4e482933c32e8bffa205a6ca46cca631101ecd /README
downloadarchauto32-02c8077e4bbf473eb1dfca55afd2eba4def5c003.tar.gz
archauto32-02c8077e4bbf473eb1dfca55afd2eba4def5c003.tar.bz2
initial version for ArchLinux32 (forked from archauto)
Diffstat (limited to 'README')
-rw-r--r--README100
1 files changed, 100 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..e242566
--- /dev/null
+++ b/README
@@ -0,0 +1,100 @@
+wget archlinux-2017.08.01-i686.iso
+mkdir cdrom
+mount -o loop archlinux-2017.08.01-i686.iso cdrom
+
+wget -m mirror.archlinux32.org
+
+mv mirror.archlinux32.org mirror
+
+TODO FROM HERE:
+
+
+
+# We mount it and make it accessible over the 'darkhttpd' webserver:
+
+
+TFTP root (for PXE boot)
+---------
+
+# Copy PXE bootstrap files to a TFTP root:
+
+cp archiso/arch/boot/i686/vmlinuz tftproot/boot/i686/
+cp archiso/arch/boot/i686/archiso.img tftproot/boot/i686/
+
+cp /usr/share/syslinux/pxelinux.0 tftproot/
+cp /usr/share/syslinux/linux.c32 tftproot/
+
+Local kernel and RAMdisk (for libvirt direct kernel boot)
+------------------------
+
+cp archiso/arch/boot/i686/vmlinuz .
+cp archiso/arch/boot/i686/archiso.img .
+
+Install Archlinux (PXE and qemu directly)
+-----------------
+
+Create a Qemu image with Archlinux (automatically). The main
+work is done by the 'archauto.sh' script which is given to
+the archiso kernel as script to execute after auto-login:
+
+qemu-img create arch32.img 2G
+
+qemu-system-i386 -drive file=arch32.img,index=0,media=disk,format=raw,if=virtio -net nic \
+ -enable-kvm \
+ -net user,id=net0,net=192.168.130.2/24,host=192.168.130.1,tftp=$PWD/tftproot,bootfile=pxelinux.0 \
+ -m 2048 \
+ -machine accel=kvm -redir tcp:2222::22
+
+# fails somehow to start script
+# 10.0.2.0 network is quite stuborn, how to set explicitely?
+# -nographic -serial mon:stdio \
+
+qemu-system-i386 -drive file=arch32.img,index=0,media=disk,format=raw,if=virtio -net nic \
+ -enable-kvm \
+ -net user,id=net0,net=192.168.130.2/24,host=192.168.130.1 \
+ -m 2048 \
+ -machine accel=kvm -redir tcp:2222::22
+
+Install Archlinux (libvirtd and virt-install)
+-----------------
+
+There are quite some steps here, so they are wrapped into a shell script:
+
+./createvm.sh
+
+TODOs
+-----
+
+# remote install (manually), then follow docu
+# (this gives a rough idea of what should be automatized)
+#passwd
+#systemctl start sshd
+#sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config
+
+# automatic installation frameworks for ArchLinux
+# - AIF
+# - ArchBlocks
+# - ArchBang
+# - backpac: snapshots, not really the cfengine philosophy
+# load them after boot of base system or customize the installation medium?
+
+# EFI, later
+# wget 'http://wiki.qemu.org/download/efi-bios.tar.bz2'
+# qemu with efi
+# efi partition etc
+
+# manual minimal installation or "what's needed in a CFengine bootstrap
+# script"?
+# - boot loader
+# - grub2
+# - virtio ramdisk hooks
+# - partitioning
+# - sgdisk scripting (ArchBlocks does it nicely)
+# - RAID, LVM, LUKS and friends
+# - size, swap, filesystem, chunking
+# - file system layout
+
+# via cfengine
+
+# packages net-tools gdisk
+