Operating System - HP-UX
1751894 Members
5252 Online
108783 Solutions
New Discussion юеВ

Re: Integrity VM A.03.50 on HPUX 11iv23

 
Tom Haddad
Super Advisor

Integrity VM A.03.50 on HPUX 11iv23

Im creating some new virtual machines.
I created the first (HPVMCREATE) which assigned an VM ID of 1 fo the vmachine.
I created a second vmachine then removed it.
Upon creating the second one again, it was assigned a VM ID of 3. How can I modify the ID of the second machine to '2' ??

Its my first atttempt in working with virtual mahcines!! thanks..
8 REPLIES 8
Ramesh S
Esteemed Contributor

Re: Integrity VM A.03.50 on HPUX 11iv23

Hi

How did you remove that 2nd VM? i guess it was not deleted properly.

You could try this,

You will different directories for each guest under /var/opt/hpvm/uuids...

File called ".vmid" which holds the vmid ( your case 2) under each directory. Delete that directory which holds vmid 2.

Note: Do not delete other directory. That may corrupt the 1st VM.

Best Regards,
Ramesh
Tom Haddad
Super Advisor

Re: Integrity VM A.03.50 on HPUX 11iv23

This second machine was not running when I removed it and it was removed with
hpvmremove -P vmachinename

thanks
Eric SAUBIGNAC
Honored Contributor

Re: Integrity VM A.03.50 on HPUX 11iv23

Bonsoir,

As far as I know, there is no way to specify the ID of a VM Guest. What you see is normal behavior.

Maybe you could reset this number by restarting the hpvm monitor after deleting a VM ? Process your hpvmremove, restart the VM Host, the create again the VM and tell us ...

But why do you want to take control on this ID ?

ERic
melvyn burnard
Honored Contributor

Re: Integrity VM A.03.50 on HPUX 11iv23

This is entrirely normal. Whenever you delete or remove a VM, the numbering scheme does NOT release the old number back, and as of yet I have been unable to find out why. This will not affect your VM configurations in any way.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Torsten.
Acclaimed Contributor

Re: Integrity VM A.03.50 on HPUX 11iv23

The ID is assigned by the system while you create the HPVM and stored in

/var/opt/hpvm/uuids/....../.vmid



I would NEVER change this ... I'm lucky enough I have this ID (whatever it is) instead of the UUID.

;-)

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!   
Rita C Workman
Honored Contributor

Re: Integrity VM A.03.50 on HPUX 11iv23

I feel I'm cheating since I know you Tom...but...

On a playbox I did this:

Edit
/var/opt/hpvm/uuids//.vmid
..Should see the VM# id -Change it to the number you want
Edit
/var/opt/hpvm/common/guest_id
..Should see the same VM# id as above -Change it to the number you want

Reboot your host server

Now I'm not which one absolutely makes it change. I just found it under these two and change and rebooted and voila:
hpvmstatus....showed the number changed.

Would it a problem. You say your just creating, and nothing loaded yet. So it might be fun, to put it to the test.

Rgrds,
Rita
Ramesh S
Esteemed Contributor

Re: Integrity VM A.03.50 on HPUX 11iv23

Hi

/var/opt/hpvm/common/guest_id -- It has the id of last created VM. For example: if it has id : 3. when you create VM, it will create with id 4.

So, You need to edit the /var/opt/hpvm/common/guest_id with value 1.

Try this, it worked for me.

Best Regards,
Ramesh S
Tom Haddad
Super Advisor

Re: Integrity VM A.03.50 on HPUX 11iv23

Issue has been resolved thanks to you help!