Commit f74a4169 authored by Stephan Großberndt's avatar Stephan Großberndt
Browse files

[TASK] RAM_MB, DISK_SPACE_GB, CPUS and DEBIAN_RELEASE as variables

parent ff09922a
......@@ -96,18 +96,23 @@ wait_for_shutdown()
#--network bridge=br0 \
#--network bridge=br-ext,mac=${NET_IPV4_MAC},model=virtio \
RAM_MB=16384
DISK_SPACE_GB=30
CPUS=6
DEBIAN_RELEASE=stretch
virt-install \
--connect qemu:///system \
--name ${SERVER_NAME} \
--ram 2048 \
--disk pool=vgpool,size=20,bus=ide \
--vcpus 2 \
--ram ${RAM_MB} \
--disk pool=vgpool,size=${DISK_SPACE_GB},bus=ide \
--vcpus ${CPUS} \
--os-type linux \
--os-variant generic \
--network bridge=br-int,model=virtio \
--graphics none \
--console pty,target_type=serial \
--location 'http://deb.debian.org/debian/dists/jessie/main/installer-amd64/' \
--location "http://deb.debian.org/debian/dists/${DEBIAN_RELEASE}/main/installer-amd64/" \
--initrd-inject "/usr/local/virtinstaller/preseed.cfg" \
--extra-args "auto=true netcfg/get_hostname=${HOST_NAME} netcfg/hostname=${HOST_NAME} passwd/root-password=${PASSWORD} passwd/root-password-again=${PASSWORD} netcfg/get_ipaddress=${NET_IPV4_ADDRESS} netcfg/get_netmask=${NET_IPV4_NETMASK} netcfg/get_gateway=${NET_IPV4_GATEWAY} console=ttyS0,115200n8 serial"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment