HMC Configuration
HMC Configuration
HMC Configuration
http://aixwiki.org/wiki/Installing_HMC_in_VirtualBox_o...
Download:
HMC V7R7.1.0M0 - MH01205 HMC V7R7.1.0M1 - MH01213
Do NOT download:
Mandatory efix for HMCV7R710 - MH01214 (Service Pack 1 superceeds this efix)
Download using DownloadDirector or FTP . You will get the following les:
HMC_Recovery_V7R710_1.iso HMC_Recovery_V7R710_2.iso HMC_Update_V7R710_SP1.iso
1 of 9
01/22/2013 08:18 PM
http://aixwiki.org/wiki/Installing_HMC_in_VirtualBox_o...
KNOPPIX-ADRIANE_V6.2CD-2009-11-18-EN.iso
ftp://ftp.knoppix.nl/pub/os/Linux/distr/knoppix/ 3. Download & Install MagicISO and enter license code (v5.5 Build 0281 at the time of writing). http://www.magiciso.com/download.htm 4. Download and install latest VirtualBox (v3.1.6 at the time of writing) http://www.virtualbox.org/ 5. Create a Linux Prole with at least 512M of memory wilmette kochman (http://en.wikipedia.org/wiki/Cary_Kochman) and IDE controller (1024 MB RAM recommended like original HMCs).
Name: HMC Operating System: Linux Version: Linux 2.6 Memory: 1024 MB (Recommended, 512 MB minimum) Harddisk: Dynamic, 160 GB (Installed HMC size is 12-13GB (with SP1)) Controller: IDE (default in this profile)
6. Extract the le initrd.gz from rst HMC install-DVD using MagicISO (or WinRAR, 7-Zip): CDROM:/isolinux/initrd.gz to a local directory. 7. Add Knoppix to VirtualBox and boot Linux 2.6 from this ISO. 8. Start sshd and transfer initrd.gz from the local computer to the virtual computer: Choose Option 10: Shell Run the following commands to start sshd:
su /etc/init.d/ssh start
2 of 9
01/22/2013 08:18 PM
http://aixwiki.org/wiki/Installing_HMC_in_VirtualBox_o...
In our case: 10.0.2.15 Set root password: passwd Enter 'abc123' twice. 9. Modify initrd using Knoppix. Copy the le initrd.gz using a SCP-client to the IP-address of virtual machine. Use account login: root with password 'abc123'. Be aware that you might not be able to connect when the network adapter of the virtualbox is not set to Bridged Adapter or Host-only Adapter. Bridge Adapter is the most useful especially if you want to be able to connect to real POWER-systems. If you did not specify the target directory then your le will be transferred your home-directory (in our case gunzip the le and mount it:
gunzip /root/initrd.gz losetup /dev/loop0 /root/initrd mkdir /mnt/initrd mount /dev/loop0 /mnt/initrd
Please edit the le 'Install' within this directory using vi or nano. Add the following line (line-number 22):
VPDINFO="7042CR4"
Between
CMDLINE=`cat /proc/cmdline`
And
cd /
3 of 9
01/22/2013 08:18 PM
http://aixwiki.org/wiki/Installing_HMC_in_VirtualBox_o...
Then, copy the le back to your workstation using scp/winscp. 9. Modify rst HMC install-dvd using MagicISO: HMC_Recovery_V7R710_1.iso Remove the original initrd.gz: CDROM:/isolinux/initrd.gz And add the modied version you just copied over from the knoppix-virtualbox. Use 'Save As ..' to save the modied iso (HMC_Recovery_V7R710_1_modied.iso for example) 10. Boot from the modied dvd and install HMC v7.7. After the installation you will be prompted for a login. Enter the default hmc username/password: hscroot/abc123 Now, you can get root access using 'su -'. The password is 'passw0rd'. 11. Change the start-up check le 'getHMCVPD' using nano or vi.
vi /opt/hsc/bin/getHMCVPD
http://aixwiki.org/wiki/Installing_HMC_in_VirtualBox_o...
echo "7042CR4*10-1234A"
Save the le and reboot using the command 'reboot'. 12. Once your HMC is started, congure it. Logon using hscroot/abc123. You can install the service pack (HMC_Update_V7R710_SP1.iso) without any checks.
What about XF86Cong? Well, it seems not to be needed for VirtualBox. It is possible that it is needed for VMWare but I did not test this. Download modied les HMC v7.7 For the people that were not able to modify the les using the instructions above or for the ones that are just to lazy, download here (http://www.aixwiki.org/les/hmc_7_7.zip) the modied les for HMC v7.7.
Special thanks to the pseriestech.org forum and all contributors to thread: Running HMC in VMware (http://www.pseriestech.org/forum/hardware-managementconsole/running-hmc-in-vmware-1052.html) Without them it would have been more dicult to get HMC v7.7 working in VirtualBox.
For the people who get "A critical error has prevented normal HMC startup. Please reboot the HMC and try again. If the problem persists, contact your support personnel. 1901: HMC Startup aborted due to a malfunction of a required module."
5 of 9
01/22/2013 08:18 PM
http://aixwiki.org/wiki/Installing_HMC_in_VirtualBox_o...
As far as I understand in the last release (R7.1.0) or can be last build of this release, VPD check is not only using the script /opt/hsc/getHMCVPD, but also the class of ccfw.jar (/opt/ccfw/ccfw.jar). Which directly calls dmidecode from the java code. GetInfo (com/ibm/hwmca/fw/util/GetInfo in ccfw.jar) class formed le /opt/ccfw/data/pciinfo /sys_info.out, which is used to validate the hardware. In the log le /opt/ccfw/ccfw.out we see an error
"Java.lang.StringIndexOutOfBoundsException at java.lang.String.substring (String.java: 1092) at com.ibm.hwmca.fw.managed.HMC.getVpdInfo (HMC.java: 1358) at com.ibm.hwmca.fw.managed.HMC.getBiosMachineType (HMC.java: 1088) ... "
indicating that improper handling of type String. This error arises from the fact that the "dmidecode - string system-product-name"/"dmidecode - string bios-version" returns are not what is expected. Accordingly, the need to give what is expected of us. For those with an error can help the following decision: 1) Move the original dmidecode
cd /usr/sbin mv dmidecode dmidecode.orig
4) Reboot the HMC. I've tested this solution on VMWare Server and old SuperMicro server. P Please, someone correct my grammatical mistakes ) .S. I think I found an easier way to install in Virtualbox, I used 3.2.8 r64453 for
6 of 9
01/22/2013 08:18 PM
http://aixwiki.org/wiki/Installing_HMC_in_VirtualBox_o...
windows.
>Download the in 7.7.2 code from fix central >Create a linux VM in virtualbox (I used generic linux 2.6) > 1gb memory, 64bg disk
Edit the XML le located, in windows xp, at: C:\Documents and Settings\<your user>\.VirtualBox\Machines\<VM name> In the <ExtraData> section add the following to fake out the HMC code. It will think the VM is now a 7310-CR3 :-)
<ExtraDataItem name="VBoxInternal/Devices/pcbios/0/Config/DmiSystemProduct" value="7310CR3"/> <ExtraDataItem name="VBoxInternal/Devices/pcbios/0/Config/DmiSystemVendor" value="IBM CORPORATION"/>
"not sure the second line is needed" you could probalby add more "pcbios" options but less is always better. I added a second ethernet to the VM cong after the initial install But the best thing is that I did not have to muck around inside of the .iso les. Bryan Thx Bryan, it is so easy, but... In the new version of VirtualBoxes the path is dierent: C:\Documents and Settings\<your user>\.VirtualBox\VirtualBox.xml Must be switched o all virtual machines - sleeping/standby is also not good. Exit from the software, save a copy from the xml le, modify the original, save and try. That is all, I hope it helps for someone. Laksi BryanThis procedure is genius. Thank you. I would like contribute a little to this body of work: July 30, 2011: I successfully installed HMC into a 32-bit virtual machine on a VMware ESXi 3.5 build 123628 server. I used the following images from ibm.com:
MH01255: HMC Recovery V7R730 MH01256: HMC Update V7R730 HM01257: HMC Mandatory eFix V7R730
When initially creating the VM prole, I selected 'Other 32-bit linux' and among other
7 of 9
01/22/2013 08:18 PM
http://aixwiki.org/wiki/Installing_HMC_in_VirtualBox_o...
things, 'Flexible' ethernet adapter type. Unfortunately, the 'Flexible' adapter type doesn't work with this procedure and there are no other options available to you in the GUI. To get around this, I had to change the ethernet adapter type to 'e1000' by editing the .vmx le directly. 1. After creating the initial VM prole using the vSphere client, remove the VM from the inventory (don't delete from the disk). The reason for this step is you will want to force VMware to re-read the prole later after editing the prole manually.
Right-click on the VM and select 'Remove from Inventory'
2. Log in as root to the local ESXi console or connect to it via ssh. 3. cd into the directory where the HMC VM's les are located and edit the .vmx le with vi. In my case,
cd /vmfs/volumes/datastore1/hmc-vm vi hmc-vm.vmx
3. Add the following entry to the .vmx le and save it, adjusting for the actual ethernet# you have created. If you only have one ethernet, then ethernet0 is correct for you.
ethernet0.virtualDev = "e1000"
5. Done. Now proceed to Bryan's procedure. One last note, I got the error that Bryan mentions at the end of his procedure regarding dmidecode. Following Bryan's dmidecode bypass procedure cleared that up. -Henri I recently tested initrd procedure with 7.3.0 and work ok. Also, after reboot you get only restriced shell So, comment the "set -r" command to get rid of restricted shell
cd /opt/hsc/data/ssh/ chmod 755 hmcsshrc vi hmcsshrc
8 of 9
01/22/2013 08:18 PM
http://aixwiki.org/wiki/Installing_HMC_in_VirtualBox_o...
Add # before "set -r" -Mr.Toth Retrieved from "http://aixwiki.org/wiki/Installing_HMC_in_VirtualBox_or_VMWare" Category: Tutorials This page was last modied on 12 July 2012, at 16:05.
9 of 9
01/22/2013 08:18 PM