From e16ef52b794eecb582fc27399f1671e8a19572d8 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Tue, 5 Sep 2017 19:39:12 +0200 Subject: we should really install on a Pentium II with virt-install! --- README | 3 ++- archauto.sh | 2 ++ createvm.sh | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README b/README index 8b44898..734d155 100644 --- a/README +++ b/README @@ -7,7 +7,7 @@ rsync -av rsync://mirror.archlinux32.org/archlinux32/i686/community/community.db rsync -av rsync://mirror.archlinux32.org/archlinux32/* mirror/. mkdir archiso -mount -o loop mirror/archisos/archlinux-2017.08.01-i686.iso archiso +mount -o loop mirror/archisos/archlinux-2017.09.03-i686.iso archiso TODO FROM HERE: @@ -24,6 +24,7 @@ ip addr add dev br0 192.168.130.1/24 # We mount it and make it accessible over the 'darkhttpd' webserver: +guestmount -a /data/libvirt/arch32.qcow2 -m /dev/sda2 --ro /mnt/tmp TFTP root (for PXE boot) --------- diff --git a/archauto.sh b/archauto.sh index 55f1abc..52fa638 100755 --- a/archauto.sh +++ b/archauto.sh @@ -117,4 +117,6 @@ echo "Powering off.." sleep 10 +exit 0 + systemctl poweroff diff --git a/createvm.sh b/createvm.sh index 73dcef0..541428b 100755 --- a/createvm.sh +++ b/createvm.sh @@ -22,7 +22,7 @@ wait_for_vm_to_stop() { done } -mount -o loop,ro mirror/archisos/archlinux-2017.08.01-i686.iso archiso +mount -o loop,ro mirror/archisos/archlinux-2017.09.03-i686.iso archiso cp archiso/arch/boot/i686/vmlinuz . cp archiso/arch/boot/i686/archiso.img . @@ -31,7 +31,7 @@ darkhttpd . --port 8080 & virt-install --name ${NAME} -r 2048 --vcpus=1 --os-type=linux --os-variant=virtio26 \ --disk pool=default,size=2,format=qcow2 --network bridge=br0,model=virtio \ - --vnc --vncport=5901 --noreboot \ + --vnc --vncport=5901 --noreboot --arch i686 --cpu pentium2 \ --boot kernel=vmlinuz,initrd=archiso.img,kernel_args="archisobasedir=archiso/arch archiso_http_srv=http://${HOST}:8080/ script=http://${HOST}:8080/archauto.sh ip=${CLIENT}:::${NETMASK}:arch32::off nomodeset i915.modeset=0" & # --noautoconsole sleep 5 -- cgit v1.2.3-54-g00ecf