K
K
Konstantin Rudenkov2012-10-11 13:38:21
linux
Konstantin Rudenkov, 2012-10-11 13:38:21

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

6 answer(s)
S
Sergey Cherepanov, 2012-10-11
@fear86

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?

K
Konstantin Rudenkov, 2012-10-11
@rudenkovk

Yes, it's no problem.
But I think it will be a crutch, and crutches have a habit of breaking.

S
Sergey Cherepanov, 2012-10-11
@fear86

Well, it already looks like a crutch)

V
vsespb, 2012-10-11
@vsespb

And the option to configure the software in virtual machines so that it reconnects at startup is not considered?

S
shadowalone, 2012-10-11
@shadowalone

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

S
SarganSaor, 2012-10-12
@SarganSaor

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 question

Ask a Question

731 491 924 answers to any question