Log into user interface¶
To log in to the PMM user interface:
-
Open a web browser and visit the guest IP address.
-
The PMM login screen appears.
-
Enter the default username and password in the relevant fields and click Log in.
-
username:
admin
-
password:
admin
-
-
(Recommended) Follow the prompts to change the default password.
Note
You also can change the default password through SSH by using the
change-admin-password
command. -
The PMM Home Dashboard appears.
(optional) Change root password from UI
-
Start the virtual machine in GUI mode.
-
Log in with the default superuser credentials:
-
Username:
root
-
Password:
percona
-
-
Follow the prompts to change the password.
(optional) Set up SSH from UI/CLI
To set up SSH from UI/CLI:
-
Create a key pair for the
admin
user.ssh-keygen -f admin
-
Log into the PMM user interface.
-
Select PMM Configuration > Settings > SSH Key.
-
Copy and paste the contents of the
admin.pub
file into the SSH Key field. -
Click Apply SSH Key. (This copies the public key to
/home/admin/.ssh/authorized_keys
in the guest). -
Log in via SSH (
N.N.N.N
is the guest IP address).ssh -i admin admin@N.N.N.N
(optional) Set up static IP via CLI
When the guest OS starts, it will get an IP address from the hypervisor’s DHCP server. This IP can change each time the guest OS is restarted. Setting a static IP for the guest OS avoids having to check the IP address whenever the guest is restarted.
-
Start the virtual machine in non-headless (GUI) mode.
-
Log in as
root
. -
Edit
/etc/sysconfig/network-scripts/ifcfg-eth0
-
Change the value of
BOOTPROTO
:BOOTPROTO=none
-
Add these values:
IPADDR=192.168.1.123 # replace with the desired static IP address NETMASK=255.255.255.0 # replace with the netmask for your IP address GATEWAY=192.168.1.1 # replace with the network gateway for your IP address PEERDNS=no DNS1=192.168.1.53 # replace with your DNS server IP
-
Restart the interface.
ifdown eth0 && ifup eth0
-
Check the IP.
ip addr show eth0
-
Preserve the network configuration across reboots.
echo "network: {config: disabled}" > /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
Get expert help¶
If you need assistance, visit the community forum for comprehensive and free database knowledge, or contact our Percona Database Experts for professional support and services.