LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 11-13-2015, 11:54 AM   #1
miclevette
LQ Newbie
 
Registered: Nov 2015
Posts: 2

Rep: Reputation: Disabled
Question RHEL KVM auto boot order?


I am trying to get 2 separate guests to boot one after another. One has databases the other needs to start. Is there a way to do this? Maybe adding a 10 second delay at startup or something like that.

Thanks
 
Old 11-16-2015, 07:47 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
According to the last comment here https://access.redhat.com/discussions/685243 a time delay between guests is possible, although it doesn't say if you specify which guests.. probably not.
In any case, time delay is inherently risky.

I'd go with disabling the auto-start of the KVMs on boot up of the underlying host and instead add to eg /etc/rc.local (or equiv) some kind of test to use eg db connect to kvm1 before starting kvm2..
Alternately, maybe you can add something like that into kvm2 itself, so it doesn't start the dependent processes until the DB on kvm1 is already up.
The latter is better for eg restarts that don't involve the underlying host.
 
Old 11-16-2015, 08:38 PM   #3
miclevette
LQ Newbie
 
Registered: Nov 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for the reply. The only issue with that is the databases are on a Windows box and the one that needs to start later is Ubuntu. We have a few apps made for them to talk nicely except for this one problem.
 
Old 11-16-2015, 08:53 PM   #4
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
Along the lines of what Chris said, couldn't you create your own startup script using virsh to start each vm in your desired order, with your own tests between starting each vm, rather than relying on the autostart setting?

I don't have RHEL, but on CentOS 7 virt-manager allows you to specify the order that vm's start.
 
Old 11-18-2015, 09:36 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You could steal a test from Nagios most likely or write your own.
I've worked at a place where we installed the nagios tests so we could borrow a few for our own purposes.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
forcing RHEL to name NICs in certain order jagdip Linux - Networking 1 01-30-2012 01:31 PM
kvm-qemu-img: qcow2 disk image format changes to raw format in RHEL-KVM 5.6 rajivdp Linux - Virtualization and Cloud 2 09-19-2011 11:23 AM
RHEL 5 - force eth order czezz Linux - Networking 1 06-04-2010 03:04 PM
fstab.order alternative in RHEL 5.x jkboys Linux - Software 3 07-14-2008 10:18 PM
order of auto-started programs yosato_uk Linux - Desktop 1 07-06-2008 09:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration