diff --git a/create.sh b/create.sh index 749dcf4..ad000f8 100644 --- a/create.sh +++ b/create.sh @@ -124,7 +124,7 @@ DISKTYPE=$(pvesm status | awk -v storage="$STORAGE" 'NR>1 && $1 == storage {prin case $OSKEUZE in 1|2|3|4) # Debian en Ubuntu virt-customize --install qemu-guest-agent,htop,curl,avahi-daemon,console-setup,cron,cifs-utils,mtr,bash-completion,bind9-utils,lsof,mc,mlocate,screen,sysstat,tmux,wget,zabbix-agent -a /tmp/"$IMAGE_NAME" - virt-customize --run-command "systemctl enable qemu-guest-agent" -a /tmp/"$IMAGE_NAME" + virt-customize --run-command "systemctl enable --now qemu-guest-agent" -a /tmp/"$IMAGE_NAME" case $SSH_KEYS_PATH in '') # leeg @@ -143,8 +143,8 @@ case $OSKEUZE in virt-customize --install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -a /tmp/"$IMAGE_NAME" virt-customize --install qemu-guest-agent,htop,curl,cifs-utils,firewalld,mtr,bash-completion,bind-utils,lsof,mc,mlocate,perl,perl-Date-Calc,perl-Data-Dumper,perl-Getopt-Long,perl-libs,screen,sysstat,tmux,wget,zabbix-agent -a /tmp/"$IMAGE_NAME" virt-customize --selinux-relabel -a /tmp/"$IMAGE_NAME" - virt-customize --run-command "systemctl enable firewalld" -a /tmp/"$IMAGE_NAME" - virt-customize --run-command "systemctl enable qemu-guest-agent" -a /tmp/"$IMAGE_NAME" + virt-customize --run-command "systemctl enable --now firewalld" -a /tmp/"$IMAGE_NAME" + virt-customize --run-command "systemctl enable --now qemu-guest-agent" -a /tmp/"$IMAGE_NAME" case $SSH_KEYS_PATH in '') # leeg @@ -228,7 +228,7 @@ qm start $VMID # ip ophalen # Maximum aantal pogingen (1 minuut / 5 seconden = 12 pogingen) -MAX_ATTEMPTS=48 # Aantal pogingen voordat de foutmelding wordt weergegeven +MAX_ATTEMPTS=24 # Aantal pogingen voordat de foutmelding wordt weergegeven ATTEMPT=0 ETH0_STATS="" # Zorg ervoor dat ETH0_STATS wordt geleegd bij elke iteratie