summaryrefslogtreecommitdiff
path: root/createvm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'createvm.sh')
-rwxr-xr-xcreatevm.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/createvm.sh b/createvm.sh
index 3c9dd7e..db0c870 100755
--- a/createvm.sh
+++ b/createvm.sh
@@ -3,10 +3,10 @@
# configuration
NAME=arch32
-HOST=192.168.120.1
+HOST=192.168.130.1
NETMASK=255.255.255.0
PREFIX=24
-CLIENT=192.168.120.101
+CLIENT=192.168.130.101
vm_is_running() {
if [ "$(virsh domstate $1 2>/dev/null)" == "running" ]; then
@@ -24,7 +24,7 @@ wait_for_vm_to_stop() {
mount -o loop,ro /data/arch32/mirror/archisos/archlinux-2019.03.07-i686.iso archiso
-darkhttpd . --port 8088 &
+#darkhttpd . --port 8088 &
virt-install --name ${NAME} -r 1536 --vcpus=1 --os-type=linux --os-variant=archlinux \
--disk pool=default,size=4,format=qcow2 --network bridge=br0,model=virtio \
@@ -74,5 +74,5 @@ virsh start ${NAME}
rm -f ${NAME}.xml
-pkill darkhttpd
+#pkill darkhttpd
umount archiso