-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Oleg Artemiev:
> Having a lot of template VMs makes updating annoying - a few times
> do the same tapping mouse..
>
> Has anyone already made a script for subj? If yes - please share.
>
> Idea is simple - execute from Dom0, take all template VMs one by
> one, update with auto-accepting packages (leaving log), if possible
> - show a popup in Dom0 when depending VMs should be rebooted. I'd
> even run this from dom0 cron..
I also do auto updates and think that every OS should come with such a
feature out of the box.
./update-script templ1 templ2 ..
(depending on the template this is more or less frequent, script is
run with different intervals depending on the template)
If you want to loop over all of them automatically you could use the
output of
qvm-ls |grep ']'|cut -d"[" -f2|cut -d"]" -f1
(quite ugly but qvm-ls has no --template switch ;)
update-script:
#!/bin/bash
for vm in $*
do
qvm-run -a -p -u root $vm 'yum -y update && sleep 3 && halt '
done
-----BEGIN PGP SIGNATURE-----
iQIcBAEBCgAGBQJUyA6tAAoJENGIB/ssoMC2A9QQALAWPFaI+wffwxCvgxjULgFj
KNfs0jDw9ZqDwakC/pTFqt6KH5bwm7L30jcKcSd3bUKAHFrX+3J4MBekzM/m7x1c
Z/bMcK/ZIxvKvsD+o1RO0tPP7mA/PZdHTpZf28Mmx+pmId6AY4EJNwViURsQKjpA
5C2DYu10R1fVEgFIrA9SPZMuDbZYvjpg1zNhNvTv5ewVTLT9W+fw0VNoaT8y1kHb
J0Qad4+F6qnyDLP68OlIp0KtDxCrwKwj6du57GNz09VLHbRN+n4Mnu6ymeImtner
RDQ3j0Xqw5sr+faT1it5q+5xCJbvReOYquTOnN4ugkVErQW2RwQyuunPgiYd8bS6
H7c5BapKTjhXp16nbx1cTknvok9ya9weLau5Zxkosn9pxTjSyJCCpXdWGFiY/g9C
fIjyABiRLZsnn3NGNOVSPWcdqDuhRz1+JjX2SVEDLUBaO1JknHPtAw/oZ3LJv9ra
o1dPOy9wHDcw3n/jChW9wYSfQFBnWGfH6agVbsQohxAgAqHrfspfRDupB2fZRMQn
E+HalW4IqakewmjmSXV477+b8nuzXpzRu1Q+26qAS/w/2rEP3/l1qqGpbxWZsV48
X/Q4mtrQwUv01mQek6X5OWStbgabqpAJ0OBKWfLEP+uYmKuGWL7zU4sRoR+m1gaZ
U/gCe7c5lLWJM4nn/Q5+
=LeuC
-----END PGP SIGNATURE-----