Running x86 Applications
An installed x86 application can run on both the guest and host.
- Method 1Run the exagear command to enter the guest shell. For example:
1exagear
Command output: Starting the shell in the guest image /opt/exagear/images/ubuntu-<os_version>-x86_64
In this guest session, run any x86 application (including x86 shell scripts) in interactive command line mode. For example:1 2
/usr/sbin/nginx -h nginx -h
- Method 2In the host session, add the prefix exagear -- to the command line to indicate that the subsequent x86 applications will run in the guest environment.
1 2
exagear -- /usr/sbin/nginx -h exagear -- nginx -h
This method is typically used when the host script needs to start x86 applications (including x86 shell scripts).
- Method 3
In the host session, run the x86 application binary file using a complete path.
The path contains /opt/exagear/images/ubuntu-<os_version>-x86_64, that is, the x86 operating environment.
1/opt/exagear/images/ubuntu-<os_version>-x86_64/usr/sbin/nginx -hThis method is typically used when the host script needs to start x86 application binary files. However, this method is not applicable to x86 shell scripts.
By default, x86 applications can access only files in the x86 operating environment. To access files in the host system, you can set the directories or files to be shared between the host and guest systems. For details about the configuration method, see "Sharing Directories Between the Host and Guest Systems" in Configuring ExaGear for Server on Ubuntu.
The installation and running of 32-bit and 64-bit Linux applications in the x86 architecture on the guest system are the same as those on x86 physical machines that support multiple architectures.