I currently have small VM to do certain tests (it has multiple benefits - like testing on another distribution, Fedora 15, as well as running
make distcheck without the problem of polluting
However I'd like to automate tests and I'd like to be able to programatically (eg., using sh, python, c, ...) do the following:
- Boot headlessly a VM (
qemu) from local image
- Wait till VM is fully booted (that's hardest part - initially I thought about magic sleep)
- Sync the repository between host and guest (not necessary at this point)
./autogen && make && sudo make install && sudo make distcheckon machine
- Download the generated tarballs from machine
I started to read about
libvirt and it might allow me to use an API for that. While this would require guest support and I cannot find documentation regarding it, such ability would seem to be a logical element of
Is it possible to check if machine is fully booted? Is there a ready tool to do this?
EDIT: By fully booted I mean that the system rc scripts have finished execution/all systemd services which were suppose to start have started. I know that qemu cannot know when it happens but I assume the support on guest side.