summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xarchauto.sh4
-rwxr-xr-xcreatevm.sh21
2 files changed, 12 insertions, 13 deletions
diff --git a/archauto.sh b/archauto.sh
index 55f1abc..f1a09c1 100755
--- a/archauto.sh
+++ b/archauto.sh
@@ -11,11 +11,11 @@ PARTITION_ROOT=2
LABEL_ROOT=ROOT
MOUNT_PATH=/mnt
HOST=192.168.130.1
-HTTP_SERVER=http://${HOST}:8080
+HTTP_SERVER=http://${HOST}:8088
IP=192.168.130.2
NETMASK=255.255.255.0
PREFIX=24
-HOSTNAME=arch32
+HOSTNAME=arch32-testing
# create early SSH access
diff --git a/createvm.sh b/createvm.sh
index 74e8977..fe2113b 100755
--- a/createvm.sh
+++ b/createvm.sh
@@ -2,7 +2,7 @@
# configuration
-NAME=arch32
+NAME=arch32-testing
HOST=192.168.130.1
NETMASK=255.255.255.0
PREFIX=24
@@ -22,23 +22,23 @@ wait_for_vm_to_stop() {
done
}
-mount -o loop,ro mirror/archisos/archlinux-2017.11.01-i686.iso archiso
+mount -o loop,ro mirror/archisos/archlinux-2017.12.01-i686.iso archiso
-cp archiso/arch/boot/i686/vmlinuz .
-cp archiso/arch/boot/i686/archiso.img .
+#cp archiso/arch/boot/i686/vmlinuz .
+#cp archiso/arch/boot/i686/archiso.img .
-darkhttpd . --port 8080 &
+#darkhttpd . --port 8088 &
virt-install --name ${NAME} -r 1536 --vcpus=1 --os-type=linux --os-variant=virtio26 \
- --disk pool=default,size=4,format=qcow2 --network bridge=br0,model=virtio \
+ --disk pool=default,size=32,format=qcow2 --network bridge=br0,model=virtio \
--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" &
+ --boot kernel=archiso/arch/boot/i686/vmlinuz,initrd=archiso/arch/boot/i686/archiso.img,kernel_args="archisobasedir=archiso/arch archiso_http_srv=http://${HOST}:8088/ script=http://${HOST}:8088/archauto.sh ip=${CLIENT}:::${NETMASK}:${NAME}::off nomodeset i915.modeset=0" &
# --noautoconsole
-sleep 5
+sleep 15
virsh start ${NAME}
-sleep 5
+sleep 15
wait_for_vm_to_stop ${NAME}
@@ -52,5 +52,4 @@ virsh start ${NAME}
rm -f ${NAME}-new.xml ${NAME}.xml
-pkill darkhttpd
-umount archiso
+#pkill darkhttpd