Operating System - HP-UX
1752297 Members
4808 Online
108786 Solutions
New Discussion юеВ

How to remove HPVirtual machine configuration

 
Adam Noble
Super Advisor

How to remove HPVirtual machine configuration

Hello,

I decided to make an ignite image of a system which had virtual machines running so that I could clone to another server. The problem is that although the ignite element went rather well I have no idea how to get the virtual machine element working. Clearly it's in a state as the guests have no storage assigned etc. I don't want the guests I just want to use the system. Is there anyway of just deleting all configuration so I can start again.

Thanks
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: How to remove HPVirtual machine configuration

Shalom,

Need more specifics.

You probably need make_net_recovery images of the guest systems in order to replicate them.

I've also successfully duplicated guest systems by running hpvmclone on the new guest system and then using dd through ssh to duplicate an entire system across the network.

Ignite however is the approved tool for doing this.

To delete the configuration of a guest, try hpvmremove

See the man page for specific switches.

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
Hakki Aydin Ucar
Honored Contributor

Re: How to remove HPVirtual machine configuration

Basically, In order to remove a virtual partition, it must be in a down state. After shutdown, we can remove the partition quite simply with vparremove:
first find the partition to remove and make a note;
#vparstatus
then delete;
# vparremove -p vPar1

melvyn burnard
Honored Contributor

Re: How to remove HPVirtual machine configuration

not sure why vpars are being mentioned here, as you say they ar evirtual machines
just do hpvmremove for each vm
man hpvmremove

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Adam Noble
Super Advisor

Re: How to remove HPVirtual machine configuration

The problem is guys in essence I just want to start from scratch. I can't delete individual guests because I can't see them as the configuration is effectively corrupt. I guess I could remove the software and try again but hoped I would not have to. I can't do a hpvmstart for example. It makes sense that I can't do these things I just hoped I would be able to delete all configuration.
Hakki Aydin Ucar
Honored Contributor

Re: How to remove HPVirtual machine configuration

I just misunderstood the issue,
you do not need to assign point for this post as you did before.
melvyn burnard
Honored Contributor

Re: How to remove HPVirtual machine configuration

ok, so is teh HPVM software installed?
what does hpvmstatus report?
If you go look under /var/opt/hpvm, that is where the configuration information is held, so simply removing /var/opt/hpvm/guests/ would remove all definitions that are currently there, although you may also need to remove some other files under /var/opt/hpvm
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Adam Noble
Super Advisor

Re: How to remove HPVirtual machine configuration

right Melvyn. I am getting somewhere if slowly. As per your comments I removed software but critivally needed to remove the guest areas so thanks. I then re-installed but hpvm failed to start with the following error:-

RROR: Unable to load module 'rng': No locks available

What I found is this if I copied /stand/last_install/mod/rnd to /stand/current/mod then it would start.

The issue however is when I reboot it does not seem to remain loaded and fails again.
Bhadresh
Trusted Contributor

Re: How to remove HPVirtual machine configuration

Hi,

>>>ERROR: Unable to load module 'rng': No locks available

Have a looking at following thread to resolve the above error:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1303303


Regards,
Bhadresh