3 Install Your Oracle Blockchain Platform Instance
Deploy Your Virtual Machine
Load Oracle Blockchain Platform Enterprise Edition on your Virtual Machine Hosting Software
- Download the blockchain package; it consists of an OVA image called
obpee_19_3_4.ova
. - Import the VM into your virtual machine hosting software. For example on Oracle
VirtualBox, complete the following steps. For information about using VMWare
ESXi, see Load Oracle Blockchain Platform Enterprise Edition on VMWare ESXi.
- Select File then Import Appliance, and browse to the directory where the OVA has been extracted.
- On the Appliance settings page, you may check Reinitialize the MAC address of all network cards if you plan on running more than 1 VM in your setup. You can create multiple VMs by either importing the appliance multiple times, or cloning the VM immediately after it's imported. Click Import.
- After a few minutes, the VM will be displayed in the list of machines in VirtualBox Manager. Right-click on the VM and select Settings:
- Under System on the Motherboard tab, select Hardware Clock in UTC Time to ensure the guest VM and the host's clocks are consistent in terms of timezones.
- Under Network on the Adapter tab connected to the network you want the VM to be on, ensure Enable Network Adapter is selected, and select Bridged Adapter.
The VM is now ready to be used.
Load Oracle Blockchain Platform Enterprise Edition on VMWare ESXi
- In the VMWare ESXi navigator, select the Virtual Machines page, and then click Create / Register VM.
- Under Select creation type, select Deploy a virtual machine from an OVF or OVA file and then click Next.
- Enter a name for the virtual machine and select the blockchain package (OVA file) that you downloaded and then click Next.
- Accept the default values and click Next for the remaining pages.
- Click Finish, and then wait for the VM to be provisioned.
- Once the VM is running, open a console to the VM and log in using
the default user name
oracle
and the default passwordWelcome1
. You'll be prompted to change the password. After you change the password, log in again using the new password. - To enable DHCP to obtain an IP address, use the
sudo
command to change to the root account and then complete the following steps:- Copy the file
/etc/sysconfig/network-scripts/ifcfg-enp0s3
to a new file in the same directory calledifcfg-ens160
. - Edit the
ifcfg-ens160
file to change the adapter name from enp0s3 to ens160. - Power off the VM.
- Change the network adapter type from E1000 to VMXNET 3.
- Copy the file
- Power on the VM.
The VM is now ready to be used.
Expand the Available Space for the Ledger
Because the ledger and logs for Oracle Blockchain Platform are persistent, you need to expand the root volume to ensure you don't run out of space.
- Add a hard disk for the SCSI controller. In VirtualBox click Settings then select Storage. Add a new hard disk. The recommended file type is VHD (Virtual Hard Disk); select either fixed or extensible mode.
- Create the logical volume partition:
sudo fdisk -c -u /dev/sdb
Enter the following subcommands sequentially:n Create new partition Press p Choose primary partition use p 1 Choose 1 for the primary partition after this press return key twice for max allocation t Change the type 8e Change the partition type to Linux LVM p Print the partition w write the changes
- Create the new physical volume:
sudo pvcreate /dev/sdb1
- Restart the system.
- Verify the physical volume:
sudo pvs PV VG Fmt Attr PSize PFree /dev/sda2 vg00 lvm2 a-- 96.66g <25.41g /dev/sdb1 lvm2 ¿ <200.00g <200.00g
- Add
/dev/sdb1
tovg00
to extend the size to get more space for expanding the logical volume:sudo vgextend vg00 /dev/sdb1
- Check the size of the volume group:
In this example, 225.4 GB are free.sudo vgs VG #PV #LV #SN Attr VSize VFree vg00 2 5 0 wz-n <296.66g 225.40g
- After extending, resize the file system:
sudo resize2fs /dev/vg00/root
\ - Check the logical volume:
/dev/vg00/root df -h /dev/mapper/vg00-root 194G 18G 169G 10% /
Start Oracle Blockchain Platform
Once your network and sytem settings are configured, start the VM by selecting it and clicking Start. It should start within a minute.
Once the VM has started, hit the Enter key to get a login prompt.
Update Your Docker Root CA Certificate
The Docker root CA certificates included with Oracle Blockchain Platform Enterprise Edition must be updated on each of the Oracle Blockchain Platform Enterprise Edition virtual machines.
Log on to Oracle Blockchain Platform for the First Time
After you've deployed and started Oracle Blockchain Platform Enterprise Edition on your VM hosting software, you can log on to Blockchain Platform Manager to create an instance.
https://<hostname of your VM>:7443/console/index.html
The initial user name is obpadmin
and the password is welcome1
. This user is only meant for performing initial configuration and does not have instance creation privileges.
In order to use the internal LDAP server, the admin
password must first be changed. Blockchain Platform Manager will not allow you to use an internal LDAP configuration with the default password.
Set the Blockchain Platform Manager Name
On the Configuration page Platform Settings tab of Blockchain Platform Manager, you can set a name for the Platform Manager.
Note:
Once the name for the Platform Manager has been set, any users added to the LDAP server will be associated with this name. If you change the name after adding users, those users will lose access to Blockchain Platform Manager and any Oracle Blockchain Platform instances.Set the Notification and Console Idle Timeouts
- Console Idle Timeout: in minutes, how long the console can be idle before it logs out the current user.
- Notification Timeout: in seconds, how long notifications will remain visible on the browser. Select -1 if you want notifications to remain visible until you close them.