Have to say that even with the initial disappointment about hpvmclone, cloning IVMs was a very funny task but I believe that the after cloning tasks weren’t very clear, at least for me, so I decided to write this follow up post to clarify that part.
Let’s assume we already have a cloned virtual machine, in this particular case I used dd to clone the virtual disk and later I created the IVM and added the storage device and the other resources but it also applied to the other method with minor changes.
We start the virtual machine an access its console.Now we are going to follow some of the final steps of the third method described in my previous post. From the main EFI Boot Manager select the Boot option maintenance menu option.
Select Boot from a file and the select the first partition:
Enter the EFI directory then the HPUX directory and finally select hpux.file. Like I said before this part is very similar to the final steps of Method 3.
After this the machine will boot.
When the VM is up login as root. The first tasks as always are to change hostname and network configuration to avoid conflicts.
Next we are going recreate lvmtab since the current one contains the LVM configuration of the source virtual machine. Performing a simple vgdisplay will show it.
To correct this remove the /etc/lvmtab file and execute a new vgscan.
Follow the recommended steps in vgscan output, the first step only applies if there are any other VGs in the system, if there is only vg00 it is already active so this step is not necessary.
Running lvnlboot -R is mandatory since we need to recover and update the links to the logical volumes in the Boot Data Reserved Area of the booting disk.
Now the LVM configuration is fixed, try again the vgdisplay command.
With the LVM configuration fixed the next step is to indicate the booting disk to the system.
Finally reboot the virtual machine and if we did everything correctly a new boot option will be available in EFI Boot Manager.
Let the system boot by itself through the new default option HP-UX Primary Boot and we are done.