HPVM fun. Make a machine start when the daemon starts. (756 Views)
Reply
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 1 of 15 (756 Views)

HPVM fun. Make a machine start when the daemon starts.

Shalom all,

Built an hpvm machine running Linux.

It won't auto start.

Tried:
hpvmmodify -P -B auto

Got:

root@hpvmhst1:/etc/rc.config.d # hpvmstatus -P ditlinsb -V | more
[Virtual Machine Details]
Virtual Machine Name : ditlinsb
Virtual Machine UUID : 74cbd80a-1654-11df-8807-0017a4770054
Virtual Machine ID : 7
Virtual Machine Label :
VM's Model Name : server Integrity Virtual Machine
VM's Serial Number : VM01006002
VM's Config Version : 4.0.0
VM's Config Label : HPVM B.04.00 clearcase opt Wed Jul 02 2008 08h24m40s P
DT
Operating System : LINUX
OS Version Number :
State : Off
Start type : Auto
Console type : vt100-plus
Guest's hostname :
Guest's IPv4 address : 10.8.128.198
Guest's IPv6 address : fe80::e8ba:89ff:feaf:b771
EFI location : /opt/hpvm/guest-images/common/efi
Pattern File location : /opt/hpvm/guest-images/common/patterns.vmmpat
Guest revision : 1
Running on serverid : 0
Running on pid : 0
Application controllers : NONE
Distributed : 0
Effective serverid : 0
Graceful stop timeout : 30
Runnable status : Enabled

[Authorized Administrators]
Oper Groups:
Admin Groups:
Oper Users:
Admin Users:

[Virtual CPU Details]
Number Virtual CPUs : 1
Minimum Virtual CPUs : 1
Maximum Virtual CPUs : 8
Percent Entitlement : 10.0%
Maximum Entitlement : 100.0%

[Memory Details]
Total memory : 4 GB
Minimum memory limit : 512 MB
Maximum memory limit : 64 GB
Reserved memory : 64 MB
Minimum reserved limit : 32 MB
Maximum reserved limit : 64 GB
VHPT Size : 1 MB

[Storage Interface Details]
Guest Device type : dvd
Guest Adaptor type : scsi
Ioscan format : 0/0/0/0.0.0
Bus : 0
Device : 0
Function : 0
Target : 0
Lun : 0
Physical Storage type : file
Physical Device : /var/opt/hpvm/ISO-images/linux/rhel-server-5.4-ia64-dv
d.iso

Guest Device type : disk
Guest Adaptor type : scsi
Ioscan format : 0/0/0/0.1.0
Bus : 0
Device : 0
Function : 0
Target : 1
Lun : 0
Physical Storage type : lv
Physical Device : /dev/vg_01/rlvol1


[Network Interface Details]
Physical Storage type : vswitch
Guest Adaptor type : lan
Backing : landem
Vswitch Port : 1
Ioscan format : 0/0/1/0
Bus : 0
Device : 1
Function : 0
Mac Address : ea-ba-89-af-b7-71


[Misc Interface Details]
Guest Device type : serial
Guest Adaptor type : com1
Physical Storage type : tty
Physical Device : console

So whats the magic secret here.

/etc/rc.config.d/hpvmconf does correctly auto start the service but not the machines.


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Please use plain text.
Honored Contributor
VK2COT
Posts: 921
Registered: ‎01-17-2006
Message 2 of 15 (756 Views)

Re: HPVM fun. Make a machine start when the daemon starts.

Hello,

The command that you ran simply means that
the next time the VM host is rebooted, the VM guest will autoboot:

# hpvmmodify -P -B auto

What you actaully need to start it now (without
the reboot of the VM host) is:

# hpvmstart -P

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Please use plain text.
Honored Contributor
Emil Velez
Posts: 1,450
Registered: ‎05-17-2000
Message 3 of 15 (756 Views)

Re: HPVM fun. Make a machine start when the daemon starts.

You could create a rc script that starts the virtual machines at the end of the boot cycle

cd /sbin/init.d
cp template start_vm

edit the file to define a start command
and a stop command to stop the vm in the right sections of the script

ln -s /sbin/init.d/start_vm /sbin/rc4.d/S500start_vm

ln -s /sbin/init.d/start_vm /sbin/rc3.d/K500start_vm

Then when you boot the system the rc script will be executed when you move to run level4 and when you shut the system down it should shtudown the VM.

Please use plain text.
Honored Contributor
Kapil Jha
Posts: 1,478
Registered: ‎01-23-2006
Message 4 of 15 (756 Views)

Re: HPVM fun. Make a machine start when the daemon starts.

Hi SEP
Any error you have seen which ur host is starting up, any thing u saw which is stopping VMs to start, Configuration seems to be fine here.
I have never seen any problem before my VMs silently used to come up.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Please use plain text.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 5 of 15 (756 Views)

Re: HPVM fun. Make a machine start when the daemon starts.

Shalom,

Tried this:

# hpvmmodify -P -B auto

Did not work at all.

Will try the idea in post two on Thursday.

Thanks.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Please use plain text.
Acclaimed Contributor
Torsten.
Posts: 23,212
Registered: ‎10-02-2001
Message 6 of 15 (756 Views)

Re: HPVM fun. Make a machine start when the daemon starts.

Hi SEP,

the "-B auto" option will power on the guest, but if the OS will boot or not depends on the settings "inside" the machine.

man page:

-B auto ...

This option does not set the virtual machine's console to
enable booting when the virtual machine is started. This
function must be set with the virtual machine's console.

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! star in the left column!   
Please use plain text.
Honored Contributor
Kapil Jha
Posts: 1,478
Registered: ‎01-23-2006
Message 7 of 15 (756 Views)

Re: HPVM fun. Make a machine start when the daemon starts.

I think post two would kill the idea of having auto option in HPVM,

Manually we can do it anytime what is the issue here is why its not comin up on its own.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Please use plain text.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 8 of 15 (756 Views)

Re: HPVM fun. Make a machine start when the daemon starts.

I just want the flipping machine to start.

If I have to do an init script then so be it.

I have to open a call with support anyway because the windows VM can't get networking, nor does it offer me the chance to set that up. DHCP is apparently too good for windows.

Once again Linux is superior. It is up and running easily.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Please use plain text.
Acclaimed Contributor
Torsten.
Posts: 23,212
Registered: ‎10-02-2001
Message 9 of 15 (756 Views)

Re: HPVM fun. Make a machine start when the daemon starts.

If this guest cannot start for any reason, I would assume some messages in the logs. Are there any?

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! star in the left column!   
Please use plain text.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 10 of 15 (756 Views)

Re: HPVM fun. Make a machine start when the daemon starts.

The point is the hpvm machines do not start, nor does there appear to be any log messages.

I did a reboot recently and am going back to change.

Also: Can I run HPVM inside a vpar or are the technologies mutually exclusive.

Back with information on those logs shortly..

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Please use plain text.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 11 of 15 (756 Views)

Re: HPVM fun. Make a machine start when the daemon starts.

hmmm....

Feb 10 15:06:15 hpvmhst1 vmunix: hpvmntdvr_install successful (hpvmntdvr_install
=e0000001a385b8a0)
Feb 10 15:06:15 hpvmhst1 vmunix: hpvmdvr: handle=0xe0000001a3b00080
Feb 10 15:06:15 hpvmhst1 vmunix: hpvmdvr: vector=0x00000000000000d4
Feb 10 15:06:15 hpvmhst1 vmunix: (hpvmdvr) hpvmdvr_load=0xe000000165324180
Feb 10 15:06:15 hpvmhst1 vmunix: hpvmdvr: AVIO VSD driver registered successfull
y, VSD version = 2:2:1



Feb 10 15:06:51 hpvmhst1 hpvmmonlogd[1530]: hpvm monitor logging daemon started
Feb 10 15:06:51 hpvmhst1 hpvmmonlogd[1530]: Max. log size is set to 1024 kb


/var/opt/hpvm/common/hpvm_mon_log

Has no real indication of any attempt to auto start.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Please use plain text.
Honored Contributor
Kapil Jha
Posts: 1,478
Registered: ‎01-23-2006
Message 12 of 15 (756 Views)

Re: HPVM fun. Make a machine start when the daemon starts.

for HPVM on vpar
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1403882

and is it happening for all your VMs or just for this one.

well your log does not shows anything bad :(

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Please use plain text.
Acclaimed Contributor
Torsten.
Posts: 23,212
Registered: ‎10-02-2001
Message 13 of 15 (756 Views)

Re: HPVM fun. Make a machine start when the daemon starts.

>> Also: Can I run HPVM inside a vpar or are the technologies mutually exclusive.


Both are exclusive - no HPVM inside a vPar.

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! star in the left column!   
Please use plain text.
Honored Contributor
Duncan Edmonstone
Posts: 5,678
Registered: ‎08-05-2000
Message 14 of 15 (756 Views)

Re: HPVM fun. Make a machine start when the daemon starts.

so is there anything useful being written to the VMs console - maybe the VM is starting itself, but the EFI isn't configured toi auto-boot Linux... anything useful from:

hpvmconsole -P ditlinsb -c cl

HTH

Duncan

HTH

Duncan
Please use plain text.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 15 of 15 (756 Views)

Re: HPVM fun. Make a machine start when the daemon starts.

Shalom,

Self solved.

See http://hpux.ws for the answer.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation