Operating System - HP-UX
1748169 Members
3994 Online
108758 Solutions
New Discussion юеВ

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

 
Steven E. Protter
Exalted Contributor

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
14 REPLIES 14
VK2COT
Honored Contributor

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
Emil Velez
Honored Contributor

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.

Kapil Jha
Honored Contributor

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......
Steven E. Protter
Exalted Contributor

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
Torsten.
Acclaimed Contributor

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! thumb below!   
Kapil Jha
Honored Contributor

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......
Steven E. Protter
Exalted Contributor

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
Torsten.
Acclaimed Contributor

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! thumb below!   
Steven E. Protter
Exalted Contributor

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