On Wed, Sep 01, 2010 at 12:08:27PM +0300, Mihamina Rakotomandimby wrote:
Manao ahoana, Hello, Bonjour,
>From the host, I would like to perform a batch operation on the guests.
For example:
# virsh list
1 001
2 002
3 003
All guests are KVM, Debian Lenny
I want to
for GUEST in $(virsh list | awk '{<blah blah>}')
do
????? ${GUEST} apt-get update
????? ${GUEST} apt-get upgrade
done
And then I just have to *read* and answer "yes" or "no" to the apt
questions.
The host is a Debian Lenny, but I can backport some packages if needed.
What would be your suggestions?
- libguestfs? (I see an unstable debian package existing)
- ...?
This is basically a job for Func[1] or a proper configuration management
tool like Puppet[2]
Daniel
[1]
https://fedorahosted.org/func/
[2]
http://www.puppetlabs.com/
--
|: Red Hat, Engineering, London -o-
http://people.redhat.com/berrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org -o-
http://deltacloud.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|