Operating System - HP-UX
1834679 Members
3056 Online
110069 Solutions
New Discussion

add resource to virtual machine

 
SOLVED
Go to solution
navin
Super Advisor

add resource to virtual machine

Hello All,

I have a box as a vmhost.And i have 2 guests runs on it. I have to add one more GB memory to one of the guest . How do i do that. I was familier in using vm manager ...but now i have some issues with that.Can some one suggest me how can i do that in command line - and can i do that online with out brining the server down.
Thanks so much
Appreciate your help
Learning ...
2 REPLIES 2
Steve Lewis
Honored Contributor
Solution

Re: add resource to virtual machine

Navin,
You can only do it online if you are running 11iv3 on the host and guest, plus IVM 3.5.

So to add the resource, firstly you have to check that you have enough swap on the VM host to hold the extra memory for the guest.
Once you have sorted the swap space, whilst the VM guest is up, on the VM host run
hpvmmodify -P vm_name -r new_total_memG

The capital G on the end is important because it means size is specified in gigabytes. You could instead specify the mem in megabytes and use M.

If you need to bounce the VM guest then do it now (log in to the guest and shutdown -r 0). When it comes back up, it will see the new memory.

You may also need to add more swap to the VM guest.


Eric SAUBIGNAC
Honored Contributor

Re: add resource to virtual machine

Bonsoir,

No many more things to add to Steve's answer

1) Make sure that total memory allocated to VM Guests does not exceed pysical host capacity. In summary total overhead is 7.5% of free host memory beyond the first GB + additional 7% of aggregate guest memory for overhead for guests. More details for memory computation rules in chapter "VM Host System Requirements" under "Memory" at http://docs.hp.com/en/T2767-90105/ch02s01.html#hw_require

2) "firstly you have to check that you have enough swap on the VM host to hold the extra memory for the guest"
When you install the VM Host you are supposed to configure swap space size at least as large as physical memory plus 4 GB. So if you don't add physical memory, you should not need to extend host's swap space.

Regards

Eric