...
Go to the configuration folder:
Code Block cd /opt/abiquo/tomcat/conf/Catalina/localhost/
Edit the
api.xml
fileCheck the default configuration in this format.
Code Block <Context> <Resource name="jdbc/abiquoDB" auth="Container" type="javax.sql.DataSource" factory="com.zaxxer.hikari.HikariJNDIFactory" dataSourceClassName="org.mariadb.jdbc.MariaDbDataSource" connectionTimeout="120000" maximumPoolSize="100" username="${server.database.username}" password="${server.database.password}" dataSource.url="jdbc:mariadb://${server.database.host}:${server.database.port}/kinton" /> </Context>
Remove the ${server.database.host}
dataSource.url
value and replace it with the virtual IP valueCode Block dataSource.url="jdbc:mariadb://${virtual.ip}:${database.port}/kinton"
Restart the tomcat service
Code Block service abiquo-tomcat restart
...