Skip to content

Commit

Permalink
Update ubuntu-jammy-22.04-lts.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
azdolinski authored Nov 9, 2023
1 parent 1632482 commit 66c815d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ubuntu-jammy-22.04-lts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ fi
echo "[ TZ] set timezone UTC"
virt-customize -a $file_path --timezone UTC

echo "[ACCESS] set root password"
virt-customize -a $file_path --root-password password:$root_pasword


echo "[ SSH] enable password auth to yes"
virt-customize -a $file_path --run-command 'sed -i s/^PasswordAuthentication.*/PasswordAuthentication\ yes/ /etc/ssh/sshd_config'
Expand Down Expand Up @@ -76,5 +75,8 @@ virt-customize -a $file_path --install ifenslave,ntp,unzip,zip,mc,screen,gcc,mak
echo "[ GUEST] Install guest agents"
virt-customize -a $file_path --install qemu-guest-agent,open-vm-tools

echo "[ACCESS] set root password"
virt-sysprep -a $file_path --root-password password:$root_pasword

echo "[ DONE] Done.."
mv $file_path virtioa.qcow2

0 comments on commit 66c815d

Please sign in to comment.