Operating System - HP-UX
1827279 Members
2627 Online
109717 Solutions
New Discussion

IVM : command to get the VM guest operating system version.

 
raja_stm
Occasional Contributor

IVM : command to get the VM guest operating system version.

Hello there,
Could you please let me know the command to find out the VM guest operating system version?

I am using the "hpvmstatus -P -V " command , but operating system version number field is blank(shown below).

Any other command which will show this info?

#################

bash-4.1# hpvmstatus -V -P avenger
[Virtual Machine Details]
Virtual Machine Name : avenger
Virtual Machine UUID : ec6f44e8-4a36-11e0-b202-002481d12364
Virtual Machine ID : 9
Virtual Machine Label :
VM's Model Name : server Integrity Virtual Machine
VM's Serial Number : VM01110001
VM's Config Version : 4.20.5
VM's Config Label : HPVM B.04.20.05 PATCH_HPVM4.2.5_PK2 clearcase opt Thu Sep 16 2010 17h38m50s PDT
Operating System : HPUX
OS Version Number :
State : Off
Start type : Manual
Console type : vt100-plus
Guest's hostname :
Guest's vNIC IP Preference :
Guest's IPv4 address : 15.154.54.138
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 : Runnable
Modify status : Modify
Visible status : Visible

#######################################

Thanks
TMR
4 REPLIES 4
Shibin_2
Honored Contributor

Re: IVM : command to get the VM guest operating system version.

Are you sure, you can see the OS version with this? I think, you need to login to the guest first.
Regards
Shibin
Viktor Balogh
Honored Contributor

Re: IVM : command to get the VM guest operating system version.

the "Operating System" and "OS Version Number" fields are only there for informational purposes. If you want to see the OS version in your hpvmstatus output, you need to create those VMs with:

# hpvmcreate -O os-type[:version]

see man 1m hpvmcreate


-O os-type[:version]

Specifies the type and version of the operating system running on the virtual machine. The response will affect the default selection of certain virtual machine attributes, such as amount of memory and CPU power. The os_type is one of the following: HPUX, WINDOWS, or LINUX. This parameter is not case-sensitive.

The version is specific to the operating system type. The version specifies a descriptive text string of the version of the operating system. The version string can consist of up to 256 alphanumeric characters, including A-Z, a-z, 0-9, the dash (â ), the underscore (_), and the period (.). If white space is desired then version must be quoted.
****
Unix operates with beer.
Emil Velez
Honored Contributor

Re: IVM : command to get the VM guest operating system version.

ssh "uname -a"

remember the VM can be accessed through network services the same way as a physical machine.

If I remember right the version string is something you set when you create the VM.
Cortes Albertino
Trusted Contributor

Re: IVM : command to get the VM guest operating system version.

Hi,

If lucky,

# grep "Revision: vmunix:" /var/opt/hpvm/guests/*/console/conslog
$Revision: vmunix: B.11.31_LR FLAVOR=perf