Obtaining Server ID from Inside a ContainerThe default Parallels Cloud Server 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 Cloud Server provides access to the unique server ID via the
# vi /etc/vz/vz.conf VZPRIVRANGE="1 1000" # prlctl exec 101 cat /proc/vz/hwid 0C3A.14CB.391B.6B69.02C9.4022.3E2F.CAF6 The above example illustrates accessing the server ID from Container 101. |
||||
|