Answer the question
In order to leave comments, you need to log in
KVM+libvirt guest boot order
Colleagues, all good health and picosecond ping!
Such a problem, I broke my whole head and rummaged through Google with a child's spatula, but I did not find an answer to my question. Is it possible to adjust the boot order of guest systems with a regular installation of libvirt+kvm on ubuntu 12.04?
Arrange any variants (load delay, queue, dependencies).
While I have an idea to make a crutch through hooks, which does not seem to me an acceptable solution for production.
PS I have about a dozen virtual machines on a server, and some of the services on some depend on the start-up of services on others. For example, queue processing workers (virtual 1) must connect to a message broker (virtual 2) and a database (virtual 3), respectively. I want to start the backend first and only then start the rest.
Answer the question
In order to leave comments, you need to log in
Of course, I don’t understand much in this matter, but how about writing a bash script that will start them according to the right rules?
Yes, it's no problem.
But I think it will be a crutch, and crutches have a habit of breaking.
And the option to configure the software in virtual machines so that it reconnects at startup is not considered?
Here it is written that it is enough to rename the config files of virtual machines. Or rather, not even the files themselves, but links to them, which are located in /etc/libvirt/qemu/autostart/ Otherwise
, they invented bicycles ...
10-db-server.xml -> /etc/libvirt/qemu/rhel5.6-db- psql.xml
20-web-server.xml -> /etc/libvirt/qemu/rhel5.6-web-wiki.xml
There is no standard way.
Here is a good script for organizing the loading of instances
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question