summaryrefslogtreecommitdiff
path: root/README
blob: 318fff4ecadf54fba68fda2b4f1c03f13ed55269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# packages required:
pacman -S archiso qemu syslinux darkhttpd

# we build a live arch distribution, customized to contain the 
# CFEngine packages from AUR and some scripts doing an automatic
# basic install
export http_proxy=http://192.168.1.12:3128
mkdir archlive
cp -r /usr/share/archiso/configs/releng/* archlive/.
cd archlive

# always had problem with keys, switch of signing (not good, I know)
sed 's/SigLevel = PackageRequired/SigLevel = Never/g' pacman.conf

./build.sh -v build single
mkdir -p /mnt/archiso
mount -o loop,ro out/archlinux-2013.02.14-x86_64.iso /mnt/archiso
darkhttpd /mnt/archiso/ --port 8080

cp /mnt/archiso/arch/boot/x86_64/vmlinuz tftproot/boot/x86_64/
cp /mnt/archiso/arch/boot/x86_64/archiso.img tftproot/boot/x86_64/

mkdir tftproot
cp /usr/lib/syslinux/pxelinux.0 tftproot
mkdir -p tftproot/boot/x86_64

qemu-img create arch.img 4G

qemu-system-x86_64 -hda arch.img -net nic \
	-net user,tftp=$PWD/tftproot,bootfile=pxelinux.0 \
	-m 386 -nographic \
	-machine accel=kvm -redir tcp:222::22

passwd
systemctl start sshd

# Links:
# https://wiki.archlinux.org/index.php/Archiso
# https://wiki.archlinux.org/index.php/PXE
# https://wiki.archlinux.org/index.php/Archiso_as_pxe_server
# https://kroweer.wordpress.com/2011/09/07/creating-a-custom-arch-linux-live-usb/
# http://pxeknife.erebor.org/