VirtualBox - Import OVA file¶
To import downloaded file from UI:
- Select File → Import appliance….
- In the File field, type the path to the downloaded
.ova
file, or click the folder icon to navigate and open it. - Click Continue.
- On the Appliance settings page, review the settings and click Import.
- Click Start.
- When the guest has booted, note the IP address in the guest console.
To import downloaded file from CLI:
-
Open a terminal and change directory to where the downloaded
.ova
file is. -
(Optional) Do a ‘dry run’ import to see what values will be used.
VBoxManage import pmm-server-3.0.0.ova --dry-run
-
Import the image.
Choose one of:
-
With the default settings.
VBoxManage import pmm-server-3.0.0.ova
-
With custom settings (in this example, Name: “PMM Server”, CPUs: 2, RAM: 8192 MB).
VBoxManage import --vsys 0 --vmname "PMM Server" \ --cpus 2 --memory 8192 pmm-server-3.0.0.ova
-
Reconfigure interface¶
Reconfigure with UI¶
To reconfigure the interface with the UI:
- Click Settings.
- Click Network.
- In the Adapter 1 field, click Attached to and change to Bridged Adapter.
- In the Name field, select your host’s active network interface (e.g.
en0: Wi-Fi (Wireless)
). - Click OK.
Reconfigure via CLI¶
To reconfigure via the CLI:
-
Show the list of available bridge interfaces.
VBoxManage list bridgedifs
-
Find the name of the active interface you want to bridge to (one with Status: Up and a valid IP address). Example:
en0: Wi-Fi (Wireless)
-
Bridge the virtual machine’s first interface (
nic1
) to the host’sen0
ethernet adapter.VBoxManage modifyvm 'PMM Server' \ --nic1 bridged --bridgeadapter1 'en0: Wi-Fi (Wireless)'
-
Redirect the console output into a host file.
VBoxManage modifyvm 'PMM Server' \ --uart1 0x3F8 4 --uartmode1 file /tmp/pmm-server-console.log
Start guest and get IP address from UI¶
To start the guest and get the IP address from the UI:
- Select the PMM Server virtual machine in the list.
- Click Start.
- When the guest has booted, note the IP address in the guest console.
Start guest and get IP address from CLI¶
To start the guest and get the IP address from the CLI:
-
Start the guest.
VBoxManage startvm --type headless 'PMM Server'
-
(Optional) Watch the log file.
tail -f /tmp/pmm-server-console.log
-
Wait for one minute for the server to boot up.
-
Choose one of:
- Read the IP address from the tailed log file.
-
Extract the IP address from the log file.
grep -e "^IP:" /tmp/pmm-server-console.log | cut -f2 -d' '
-
(Optional) Stop the guest:
VBoxManage controlvm "PMM Server" poweroff
Get expert help¶
If you need assistance, you can find comprehensive and free database knowledge on our community forum or blog posts. For professional support and services, contact our Percona Database Experts.