Create a Virtual Machine
This document walks you through creating your first Virtual Machine in IBM Power for Google Cloud.
LPAR vs Virtual Machine (VM): This document uses the term Virtual Machine (VM) instead of LPAR when referring to AIX, IBM i, or Linux on Power LPAR’s running in IBM Power for Google Cloud (IP4G). All Virtual Machines deploying in IP4G run on native IBM Power hardware as an LPAR. The term Virtual Machine is used because the IP4G control plane manages the compute templates and metadata that turn that LPAR into a Virtual Machine for the customer to manage.
Prerequisites
- An active subscription with completed registation. See Subscribe to IBM Power for Google Cloud
- An active user that has completed registration. See Add New Users
Accessing Your IP4G VMs with pcloud
pcloud is the command-line tool for managing IP4G (list/create VMs, open consoles, etc.).
Docs: https://docs.converge.cloud/docs/cli/
Install pcloud
Option A — Google Cloud Shell (fastest, no local install)
- Go to Downloads
- Right-click the linux/amd64 URL and copy
- Open Cloud Shell: https://console.cloud.google.com/welcome?cloudshell=true
- Download and extract the Linux/amd64 build:
# Tip: paste the latest linux/amd64 URL from the downloads page wget https://pforg.converge.cloud/downloads/cli/pcloud-linux-amd64-vX.Y.Z.tar.gz tar -zxvf pcloud-linux-amd64-vX.Y.Z.tar.gz mkdir -p ~/bin mv pcloud ~/bin/ # Ensure ~/bin is in your PATH echo $PATH - Authenticate (see below).
Option B — Your workstation (Linux/macOS or Windows via WSL)
- Go to Downloads
- Download the package for your OS/arch and extract it.
- Put the
pcloudbinary in yourPATH(e.g.,/usr/local/bin).
Windows tip: Install WSL for a Linux-like environment, then follow the Linux steps in your distro.
Authenticate pcloud
# Tip: If pcloud is not in PATH but is in the current directory, use ./pcloud
pcloud auth login
- Open the shown URL, paste the device code, complete sign-in.
NOTE: Service Accounts: Using Google Cloud Service Accounts with IP4G is supported for the API/Python client, but not with the
pcloudCLI.
Create a VM
# List stock images
pcloud compute images list -a
# copy and paste the ID of the desired stock image
pcloud compute images create <image ID>
# view the image being created, repeat until it is ready
pcloud compute images list
# list networks
pcloud compute networks list
# create VM
pcloud compute instances create <vm_name> -c .25 -m 8 -i <image_name_or_id> -n <network_name_or_id> -t shared -T ssd -k <ssh_key_name_optional>
# view VM status
pclodu compute instances list
# open console to VM, may take few minutes until the VM has provisioned enough to be successful
pcloud compute instances console <vm_name>
# copy the generated URL into your web browser, log in as root
Verify & Explore Help
pcloud --version
pcloud help
pcloud compute help
pcloud compute instances help
Common discovery:
pcloud compute instances list
pcloud compute images list
pcloud compute networks list
pcloud compute sshkeys list
NOTE: Every
pcloudlevel has contextual help (e.g.,pcloud compute instances create --help).
Everyday Tasks
List VMs
pcloud compute instances list
Open early boot console (best for troubleshooting)
pcloud compute instances console <vm_name>
# Copy the generated URL into your browser
Hard reboot (keep the console tab open to capture full boot)
pcloud compute instances reboot --hard <vm_name>
Manage SSH keys
pcloud compute sshkeys create <keyname> -p "ssh-rsa AAAA... my_pubkey"
pcloud compute sshkeys list
Where to Learn More
- pcloud CLI home: https://docs.converge.cloud/docs/cli/
- Add images to catalog: https://docs.converge.cloud/docs/cli/cli-add-images-to-catalog/
- Add new users (GUI access flow): https://docs.converge.cloud/docs/getting-started/add-new-users/
- IP4G docs hub: https://pforg.converge.cloud/docs/
Network & Connectivity
IBM Power for Google Cloud is connected to your Google Cloud environment via Private Service Access (PSA). There is no external or direct internet access to IBM Power for Google Cloud unless the access is provided by your organizations VPC Network. To allow internet access in IBM Power for Google Cloud you must do one of the following:
- Advertise a 0.0.0.0/0 default route from a Google Cloud Interconnet or Cloud VPN.
- Create a Google Cloud Secure Web Proxy in your peered VPC Network. See Google Cloud Secure Web Proxy
- Create a custom Proxy VM (e.g., Squid on a small GCE VM with egress via external IP / Cloud NAT).
- Create a firewall or router appliance (Palo Alto, Fortinet, or Linux) in the peering VPC Network and advertise a default route to IP4G.
Other Considerations:
- Google Cloue VPC Flow Logs and Google Cloud Firewall are applied to traffic between IP4G and Google Cloud. Not between Virtual Machines in IP4G.
Docs:
- VPC Flow Logs: https://cloud.google.com/vpc/docs/flow-logs
- Firewalls: https://cloud.google.com/firewall/docs/firewalls
- Routes: https://cloud.google.com/vpc/docs/routes
- Advanced VPC walkthrough: https://cloud.google.com/vpc/docs/advanced-vpc#detailedconnectionwalkthrough
Additional Peerings
The initial peering to IBM Power for Google Cloud is created during signup. Customers using multiple VPC Networks or other Google Cloud services such as Google Cloud VMware Engine or Bare Metal Service may need to create additional peering connections to IBM Power for Google Cloud. Additional VPC Network peerings can be created by opening a support ticket. When opening the support ticket, please provide the following information.
- Peered Project Name: The Google Cloud Service Producer Project Name of the existing Private Servies Access peering that is associated with the
ibm-power-for-gcpVPC Network. - Peer VPC Network: The target VPC Network name that you would like to peer with IBM Power for Google Cloud.
- Peer Project Name: The target Google Cloud Project Name that contains the Peer VPC Network you would like to peer with IBM Power for Google Cloud.
Connect to Virtual Machines
Connect to virtual machines from your existing data center or from Google Cloud. We recommend deploying a jumphost in Google Compute Engine.
- Create a small Google Compute Engine (GCE) Linux VM
- Enable IAP and use:
gcloud compute ssh <user>@<vm> --project <proj> --zone <zone> --tunnel-through-iap - Port-forward as needed:
gcloud compute ssh <user>@<vm> --tunnel-through-iap --ssh-flag "-L localport:destip:destport" - Optional SOCKS proxy for browser:
gcloud compute ssh <user>@<vm> --tunnel-through-iap --ssh-flag "-D 8080"
Helpful Links
- IP4G Console (bookmark): https://pforg.converge.cloud
- Docs hub: https://docs.converge.cloud/docs/
- Add users: https://docs.converge.cloud/docs/getting-started/add-new-users/
pcloudCLI: https://docs.converge.cloud/docs/cli/pclouddownloads: https://pforg.converge.cloud/downloads/cli/- Status page (subscribe): https://status.gcp.converge.cloud/
- Marketplace product: https://console.cloud.google.com/marketplace/product/ibm-sg/ibm-power-cloud-for-gcp