Tips using HMC for VMWare Users
Creating a Virtual Machine is a necessary step of most of software development process. The reason is that we want to optimalise our hardware use, to isolate one application instance from another application instance running in the same hardware. For that purpose I recently tried to create a VM instance in an IBM machine, a PowerVM. Creating such VM is quite different than creating such VM in VMWare, and this post will show some tips when facing challenges creating a PowerVM.
HMC Console
The resource that could be allocated are limited by resources that are not yet allocated to other partition in the system. Setting minimum and maximum to the same value will disable dynamic resource reallocation, it is better to set two different number here to allow reallocation.
(Almost) Everything is thru VIO
Configuring Disks
I should warn that while I were using HMC, errors when creating adapter result in mismatch between HMC's adapters and VIO's adapter connection, which in my case I could only resolve by going into command-line-interface level.
Creating Virtual Optical Device
Accessing the VIO from the HMC
The Profile
The UI for the Logical Partition's Profile is also quite hidden, and it is frankly very important. In the profile is the only place I was able to configure the virtual ethernet adapter being deployed in the VM. The IBM documentation for configuring virtual ethernet adapter seems to require the dynamic partition capability to be active, which it were not in my system. So in my case what I do is :
- Save current configuration into a new profile
- Add the virtual ethernet adapter from the profile's edit menu
- Activate the new profile
Then we could create new ethernet adapters. The profile stores all adapters that will exist when the partition is running. Be mindful that the VLAN id is configured here.
Accessing the Partition's Console
Method 1 - Access from vtmenu
- Connect HMC using ssh Terminal. The ssh password should be the same as HMC Web Console password.
- In the ssh prompt, type
vtmenu - From vtmenu, we could choose which partition to connect the virtual terminal to.
- To exit the connection, type ~~. (tilde-tilde-dot).
Method 2 - Access from JNLP Java App Launched from HMC Console
export JAVA_HOME=/Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home/
cd (location of IcedTea extract)/icedtea-web-image/bin
./javaws.sh ~/Downloads/vterm_application_tmp\(4\).jnlp
Note: replace jnlp file name, location of icedtea extract, and temurin home path according to the condition in your system.
Closing Remarks and Rants
Command line notes
- List system in hmc
lssyscfg -r sys - List lpar in hmc
lssyscfg -r lpar -m [system-name] - List virtual scsi adapter and connections
lshwres -m [system-name] -r virtualio --rsubtype scsi - Remove virtual scsi adapter
chhwres -m [system-name] -r virtualio -o r -p [partition-name] --rsubtype scsi -s [slot-num] - To access VIOS CLI from HMC cli
vtmenu
choose VIOS partition
login as VIOS prime administrator user (padmin) & password - List virtual devices in VIOS cli
lsdev -virtual - List adapter in VIOS cli
lsdev -type adapter - List virtual adapter and connected virtual device mapping
lsmap -all - Detach virtual disk (required as prerequisite to be able to remove the virtual scsi adapter)
rmvdev -vdev (disk-name) - Attach virtual disk
mkvdev -vdev (disk-name) -vadapter (server-virtual-scsi-adapter-name)
References
- Partitioning for Linux with an HMC https://www.ibm.com/docs/en/POWER5/iphbi_p5/iphbibook.pdf
-
Virtualizing an infrastructure with System p and Linux https://www.redbooks.ibm.com/redbooks/pdfs/sg247499.pdf
- https://www.ibm.com/docs/en/power9?topic=commands-chhwres
- https://www.ibm.com/docs/en/power5?topic=POWER5/iphcx_p5/lshwres.html
- https://www.ibm.com/docs/en/power7/9109-RMD?topic=commands-lsdev-command
- https://www.ibm.com/docs/en/power8/8335-GTA?topic=HW4M4/p8hat/p8hat_changeprofilep6.html
- https://www.ibm.com/docs/en/power9/9080-M9S?topic=networks-managing-virtual-network-connections-in-adapter-view
- https://www.ibm.com/docs/en/power8/9080-MME?topic=libraries-adding-removing-media-files-from-media-library
- https://www.ibm.com/support/pages/creating-virtual-optical-drive-hmc-managed-vios-partition
- https://www.ibm.com/support/pages/how-assign-vios-hosted-virtual-optical-device-using-new-hmc-v8-gui
- https://apple.stackexchange.com/questions/342943/in-macos-how-to-run-a-jnlp-file-with-openjdk-8
Comments