Update create.sh
This commit is contained in:
parent
cc6c36c9a2
commit
2cbfbc4f0f
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue