1825512 Members
2022 Online
109681 Solutions
New Discussion юеВ

VM Guest autoreboot

 
Michael Boul
Occasional Advisor

VM Guest autoreboot

How do I set a VM Guest to automatically reboot after the VM Host reboots
mike
7 REPLIES 7
Geoff Wild
Honored Contributor

Re: VM Guest autoreboot

You have to do that in the virtual machine console..

hpvmconsole -P YOURVMGUESTNAME -fi

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Michael Boul
Occasional Advisor

Re: VM Guest autoreboot

What I want to happen is the VM Guest to autoreboot after the VM Host has rebooted. I do not want to manually start the Guest using the hpvmstart command every time.
I have the HPVM_ENABLE=1 flag set in the /etc/rc.config.d/hpvmconf file. I tried to find a flag in the hpvmconsole and looked for an autoreboot flag in the Guest GSP.
mike
melvyn burnard
Honored Contributor

Re: VM Guest autoreboot

autoboot:
A characteristic of a virtual machine whereby it is set to start whenever Integrity VM starts.
Virtual machines can be set to either auto or manual boot using the тАФb option to the
hpvmcreate, hpvmmodify, hpvmmigrate, or hpvmclone commands.

So you do not set it in the virtual console, but use the above commands.
For example:
Set the autoboot attribute for the virtual machine myguest1:
# hpvmmodify -P myguest1 -B auto
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Michael Boul
Occasional Advisor

Re: VM Guest autoreboot

Thank you, that was what I was looking for. This is information that is not included in the Install and Creation of VM Guest docs.
mike
Torsten.
Acclaimed Contributor

Re: VM Guest autoreboot

"hpvmcreate/hpvmmodify -B start_attr
Specifies the startup behavior of the virtual machine. Starting a virtual machine is equivalent to
powering on a physical system. To cause the guest operating system to boot automatically, the guest
must have autoboot set, and a default boot device must be specified at its virtual console..."

page 146/156 in

HP Integrity Virtual Machines
Installation, Configuration, and
Administration
HP Integrity Virtual Machines Version 2.0

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
melvyn burnard
Honored Contributor

Re: VM Guest autoreboot

Actually what I stated was a direct copy from the manual
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Geoff Wild
Honored Contributor

Re: VM Guest autoreboot

Hang on, from:

http://docs.hp.com/en/T2767-90067/T2767-90067.pdf

3.1.8 Specifying the Virtual Machine Boot Attribute
The ├в b option specifies the startup behavior of the virtual machine. The start_attr attribute
can have the following (case-insensitive) values:
├в ┬в auto: Automatically start the virtual machine when Integrity VM is initialized on the host.
├в ┬в manual: Manually start the virtual machine.

That just means that the vm starts - it doesn't mean the OS on it will. You still have to configure the Guest to boot the OS on startup - else it will only boot to the EFI...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.