Operating System - HP-UX
1826331 Members
3938 Online
109692 Solutions
New Discussion

Unable to use dynamic memory on hpvm guest deployed from Ignite golden image.

 
Bjoern Myrland
Advisor

Unable to use dynamic memory on hpvm guest deployed from Ignite golden image.


I'm trying to do deploy a HP-UX golden image to a hpvm guest.
But after successful deployment I'm unable to use dynamic memory functionality from within the virtual machine even tho the souce machine from which the golden image was created, had HPVM-Guest tools installed.

The workaround I've found is to reinstall HPVM-Guest software. This triggers a rebuild of the kernel and a reboot. After this everything works fine.
Is there any way to get this to work without having to reinstall HPVM-Guest software?

VMHOST: vm1
VMGUEST: vmguest03
HP-UX: B.11.31.1003
IGNITE: C.7.10.472
HPVM: 4.20

I had to add this to the IGNITE config file:
set_kernel += "module hpvmdynmem loaded"

so the module is loaded on the new vm:
[root@vmguest03 /]# kcmodule hpvmdynmem
Module State Cause Notes
hpvmdynmem loaded explicit auto-loadable, unloadable



This is what I see on the guest:
[root@vmguest03 /]# hpvmmgmt
Type Guest Control
====== =============
ram no
cpus yes
[root@vmguest03 /]# hpvmmgmt -l ram
Dynamic memory driver not found on guest.
hpvmmgmt: Unable to continue.
[root@vmguest03 /]# hpvmmgmt -x ram_target=6144M
Failed to open dynamic memory driver, error: No such device.
Failed to set dynamic value error: No such device
hpvmmgmt: Unable to continue.

Problem even after doing:
# hpvmmodify -x dynamic_memory_control=1 -P vmguest03


From hpvm host it works fine:
[root@vm1 /]# hpvmstatus -P vmguest03 -V|grep -i current
Current memory : 6138 MB
[root@vm1 /]# hpvmmodify -x ram_target=4096M -P vmguest03
[root@vm1 /]# hpvmstatus -P vmguest03 -V|grep -i current
Current memory : 4154 MB

And hpvmstatus says driver is enabled:
# hpvmstatus -P vmguest03 -V|grep Driver
Driver Mode(s) : STARTED ENABLED GUESTCTL
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Unable to use dynamic memory on hpvm guest deployed from Ignite golden image.

Shalom,

Memory changes should be done on the host machine, not the guest.

hpvmmgmt -x ram_target=6144M
Should not be run on the guest.

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
Bjoern Myrland
Advisor

Re: Unable to use dynamic memory on hpvm guest deployed from Ignite golden image.

why? The functionality to do this from a guest is fully available, and works perfectly if i reinstall the guest tools.