Installing x86 Applications
Do not install the x86 and Arm versions of the same service on the same server. In addition, it is strongly recommended that you do not run the host service on the guest system, because this operation is not tested and is not supported.
x86 or x86_64 applications and dependent libraries must be installed in the guest environment. You are advised to use the apt tool to install x86 applications. You need to enter the guest environment and configure the apt repo first. Related operations are the same as those on the x86 server.
If you use the proxy configuration in the local network through /etc/environment, ensure that you have copied the configuration to the guest system by running the following command (for details, see Configuring ExaGear for Server on Ubuntu).
sudo cp /etc/environment /opt/exagear/images/ubuntu-<os_version>-x86_64/etc/environment
Use the x86 Nginx as an example. Run the exagear command to enter the guest environment:
exagear
Command output: Starting the shell in the guest image /opt/exagear/images/ubuntu-<os_version>-x86_64
Run apt-get to perform installation.
sudo apt-get update sudo apt-get install nginx
When you install an x86 application in a guest environment and find that the path is /path/to/binary, the actual path is /opt/exagear/images/ubuntu-<os_version>-x86_64/path/to/binary.
For example, if the Nginx path in the guest environment is /usr/sbin/nginx, the actual path in the host environment is /opt/exagear/images/ubuntu-<os_version>-x86_64/usr/sbin/nginx.
If an x86 application is installed through the .deb package, copy the installation package to a directory visible to the guest system. The home directory ~/ is recommended. Go to the guest environment and run apt-get to install the package. The following uses the x86 xxx.deb package as an example:
exagear
Command output: Starting the shell in the guest image /opt/exagear/images/ubuntu-<os_version>-x86_64
Run apt-get to perform installation.
sudo apt-get install xxx