Operating System - HP-UX
1834480 Members
3540 Online
110067 Solutions
New Discussion

Re: Starting hpvm after reboot.

 
SOLVED
Go to solution
Nate Wert
Occasional Advisor

Starting hpvm after reboot.

I am having an issue with starting 2 hpvm's after rebooting my hp-ux 11.23 host system for completely unrelated reasons. When I go to start them I get the following.

root@cmapp01:/opt/hpvm/bin# ./hpvmstart -p 2
hpvmstart: ERROR (host): Unable to open device file '/dev/hpvmntdvr' - No such device.
hpvmstart: ERROR (host): Fail to get max number of ports.
hpvmstart: ERROR (host): Unable to get max number of ports.
hpvmstart: Unable to continue.

From my research thus far it appears to have something to do with the virtual switch, but up to this point I have been unable to resolve this.

Any suggestions at this point would help.
14 REPLIES 14
Avinash20
Honored Contributor
Solution

Re: Starting hpvm after reboot.

Post the output of

hpvmstatus -v
hpvmnet -v
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Nate Wert
Occasional Advisor

Re: Starting hpvm after reboot.

Command results below.

root@cma:/opt/hpvm/bin# ./hpvmstatus -v
Version A.03.00.00
[Virtual Machines]
Virtual Machine Name VM # OS Type State #VCPUs #Devs #Nets Memory Runsysid
==================== ===== ======= ========= ====== ===== ===== ======= ========
vmauto 3 HPUX Off 2 1 1 2 GB 0
vmqa 2 HPUX Off 2 1 1 2 GB 0


root@cm:/opt/hpvm/bin# ./hpvmnet -v
Version A.03.00.00
hpvmnet: ERROR (host): Unable to open device file '/dev/hpvmntdvr' - No such device.
hpvmnet: ERROR (host): Fail to get max number of ports.
hpvmnet: ERROR (host): Unable to get max number of ports.
hpvmnet: ERROR (host): Unable to parse hpvmnet 'localnet's config file.
hpvmnet: Unable to get vswitch list.
hpvmnet: Unable to continue.
root@cmapp01:/opt/hpvm/bin#

Avinash20
Honored Contributor

Re: Starting hpvm after reboot.

root@host # ls -la /dev/hpvm*
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Nate Wert
Occasional Advisor

Re: Starting hpvm after reboot.

Posted below:

root@cmapp01:/etc/rc.config.d# ls -al /dev/hpvm*
crw-r--r-- 1 root root 118 0x000000 Feb 2 16:01 /dev/hpvmdvr
crw-r--r-- 1 root root 118 0x0fffff Feb 2 16:01 /dev/hpvmdvri
crw-r--r-- 1 root root 121 0x000000 Feb 2 16:01 /dev/hpvmntdvr
Avinash20
Honored Contributor

Re: Starting hpvm after reboot.

Hi,

Check in /etc/rc.log if you have recieved any error

Could you post /etc/rc.log , /var/adm/syslog/syslog.log
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Nate Wert
Occasional Advisor

Re: Starting hpvm after reboot.

I tailed both logs when I tried to start the VM and got nothing. Commands that I used are below:

root@cmapp01:/opt/hpvm/bin# tail -f /etc/rc.log &

root@cmapp01:/opt/hpvm/bin# tail -f /var/adm/syslog/syslog.log &

root@cmapp01:/opt/hpvm/bin# ./hpvmstart -p 2
hpvmstart: ERROR (host): Unable to open device file '/dev/hpvmntdvr' - No such device.
hpvmstart: ERROR (host): Fail to get max number of ports.
hpvmstart: ERROR (host): Unable to get max number of ports.
hpvmstart: Unable to continue.
root@cmapp01:/opt/hpvm/bin#


Avinash20
Honored Contributor

Re: Starting hpvm after reboot.

I like to check if the all the component of hpvm has started sucessfully

rc.log is only for the start-up script after rebooting the server

# cat /etc/rc.log

There would be somthing like hpvm start.. etc..

Also by inserting "&" You are running the job in the background.

Probably you should use

# tail -f /var/adm/syslog/syslog.log
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Nate Wert
Occasional Advisor

Re: Starting hpvm after reboot.

There are only two references similar to that in the /etc/rc.log. They are below:

-------------------------------------

Start HP Virtual Machine Monitor
Output from "/sbin/rc2.d/S529hpvm start":
----------------------------
vm_fssagt pid 1420
ERROR: Unable to load module 'hpvmdvr': No such file or directory
ERROR: Unable to load module 'hpvmntdvr': No such file or directory
Unable to open /dev/hpvmdvri: No such device
hpvmnet: ERROR (host): Unable to open device file '/dev/hpvmntdvr' - No such device.
hpvmnet: ERROR (host): Fail to get max number of ports.
hpvmnet: ERROR (host): Unable to get max number of ports.
hpvmnet: ERROR (host): Unable to parse hpvmnet 'localnet's config file.
hpvmnet: Unable to start all the vswitches.
hpvmnet: Unable to continue.
"/sbin/rc2.d/S529hpvm start" FAILED


-----------------------------

Start HP Virtual Machine Guest Libraries
Output from "/sbin/rc3.d/S829hpvmguestlib start":
----------------------------

Thank-you for you continued help.
Avinash20
Honored Contributor

Re: Starting hpvm after reboot.

Ah !! The hpvm is not started.

Let me check the kernel parameter which should be checked
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Avinash20
Honored Contributor

Re: Starting hpvm after reboot.

find /stand -name hpvmdvr -> Output should be there.. If not then it is not available in the kernel
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Avinash20
Honored Contributor

Re: Starting hpvm after reboot.

If the hpvmdvr module is missing from the current kernel configuration, then check if you find any kernel which is having the hpvmdvr module.

The following procedure was used to create a new kernel configuration:
# mk_kernel
# find . -name hpvmdvr -> now correctly shows the module under /stand/hpux_test
# kconfig -n hpux_test
# shutdown

Keep the backup of the present kernel handly before performing the above action plan
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Avinash20
Honored Contributor

Re: Starting hpvm after reboot.

Hi,

Since you are new to forum, just like to remind you to not forget to assign points to all the posts

http://forums13.itrc.hp.com/service/forums/helptips.do?#33

"Late nite here.. Gonna sleep.."
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Nate Wert
Occasional Advisor

Re: Starting hpvm after reboot.

Thank you very, very much. Once is rebuilt the kernel and rebooted it worked fine. I will assign points and close thread.
Johnny Stinnett
New Member

Re: Starting hpvm after reboot.

I just ran into this same thing. I have done the rebuilt the kernel and ran kconfig and am rebooting right now. Is there anything else that needs to be done as far as the kernel is concerned after the system is back up? Thank you.