Obtaining Server ID From Inside a Container
The default Parallels Server Bare Metal installation does not allow users inside a Container to obtain any information specific to the Parallels server the Container is running on. The reason is that no Container shall have knowledge about the corresponding server. A Container can be transparently migrated to another server, and if this Container runs any applications depending on the particular server, these applications might fail after the migration.
In some situations, however, you need to provide a unique server ID to some applications. For example, you might want to license your application per server. In this case, after the migration your customer will need to re-apply the license for your application.
Parallels Server Bare Metal provides access to the unique server ID via the
# vi /etc/vz/vz.conf
# pctl exec 101 cat /proc/vz/hwid
The above example illustrates accessing the server ID from Container 101.