summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-09-05 19:39:12 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-09-05 19:39:12 +0200
commite16ef52b794eecb582fc27399f1671e8a19572d8 (patch)
tree7b1afc65b737054a0752364608421affd5214ced
parent49388d0df3fd6733e88b73d8694c82170c173ee3 (diff)
downloadarchauto32-e16ef52b794eecb582fc27399f1671e8a19572d8.tar.gz
archauto32-e16ef52b794eecb582fc27399f1671e8a19572d8.tar.bz2
we should really install on a Pentium II with virt-install!
-rw-r--r--README3
-rwxr-xr-xarchauto.sh2
-rwxr-xr-xcreatevm.sh4
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