Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Go to the configuration folder:

    Code Block
    cd /opt/abiquo/tomcat/conf/Catalina/localhost/
  2. Edit the api.xml file

  3. Check 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>
  4. Remove the ${server.database.host} dataSource.url value and replace it with the virtual IP value

    Code Block
    dataSource.url="jdbc:mariadb://${virtual.ip}:${database.port}/kinton"
  5. Restart the tomcat service

    Code Block
    service abiquo-tomcat restart

...