VMmanager 5 KVM: Administrator guide
Do you make friends with the documentation?
Share your opinion and complete a small poll
Take a survey

OS template macros

This articles describes macros that can be used in the OS installation configuration files. Enable the  "Debug" logging level to view the parameter values in the control panel log (by default in /usr/local/mgr5/var/vmmgr.log) .

  • ($AFTER_INSTALL_SCRIPT_HTTP) —  URL to the script that starts through http after installation;
  • ($AFTER_INSTALL_SCRIPT_HTTPS) — URL to the script that starts through https after installation;
  • ($AFTER_INSTALL_SCRIPT_HTTPSv4) — URL to the script that starts through https and IPv4 after installation;
  • ($AFTER_INSTALL_SCRIPT_HTTPSv6) —  URL to the script that starts through https and IPv6 after installation;
  • ($AFTER_INSTALL_SCRIPT_HTTPv4) —  URL to the script that starts through http and IPv4 after installation;
  • ($AFTER_INSTALL_SCRIPT_HTTPv6) —  URL to the script that starts through http and IPv6 after installation;
  • ($FINISH) — URL that will open after OS installation;
  • ($FINISHv4) — URL that will open after OS installation through IPv4;
  • ($FINISHv6) — URL that will open after OS installation through IPv6;
  • ($GATEWAY) — default gateway;
  • ($GATEWAYv4) — IPv4 default gateway;
  • ($GATEWAYv6) — IPv6 default gateway;
  • ($HOSTNAME) —hostname;
  • ($HTTPPROXYv6) — HTTP-proxy for  IPv6. This macro is used for package cache during OS deployment;
  • ($HTTPPROXYv4) — HTTP-proxy for IPv4. This macro is used for package cache during OS deployment;
  • ($HTTPPROXY) — HTTP-proxy. This macro is used for package cache during OS deployment;
  • ($IP) — primary IP address;
  • ($IPv4) — IPv4-address;
  • ($IPv6ALIASES) — alias IPv6-addresses (separated by spaces); 
  • ($IPv6) — IPv6-address;
  • ($IPv4ALIASES) — alias IPv4-addresses (separated by spaces); 
  • ($MGR_IP) — primary IP address of the control panel;

    • vmmgr — VMmanager;
    • dcimgr — DCImanager.
  • ($MGR_IPv6) — IPv6 address of the control panel; 
  • ($MGR_NAME) — a short name of a control panel:
  • ($MGR_IPv4) — IPv4 address of the control panel;  
  • (($MGR_VERSION) — control panel version;
  • ($MIRROR) — OS repository mirror;
  • ($NAMESERVER) — primary DNS-server;
  • ($NAMESERVERv6) — DNS-server for IIPv6;
  • ($NAMESERVERv4) — DNS-server for IPv4;
  • ($NAMESERVERS) — DNS-servers;
  • ($NETMASK) — network mask of the primary IP address;
  • ($NETMASKv6) — IPv6 network mask;
  • ($NETMASKv4) — IPv4 network mask;
  • ($NETMASK_SHORT) — network mask in the form of a prefix;
  • ($OSINSTALLINFO_HTTP) — a URL to get the information for OS deployment through http;
  • ($OSINSTALLINFO_HTTPv4) —   a URL to get the information for OS deployment through HTTP and IPv4;
  • ($OSINSTALLINFO_HTTPSv6) —  a URL to get the information for OS deployment through HTTPS and IPv6;
  • ($OSINSTALLINFO_SHORT_HTTP) — a short URL to get the information for OS deployment through HTTP;
  • ($OSINSTALLINFO_HTTPSv4) —  a URL to get the information for OS deployment through HTTPS and IPv4;
  • ($OSINSTALLINFO_HTTPSv6) —  a URL to get the information for OS deployment through HTTPS and IPv6;
  • ($OSINSTALLINFO_HTTPS) —  a URL to get the information for OS deployment through https;
  • ($PASS) — root-user password;
  • ($PASS_CRYPT) — md5 password hash;
  • ($SHAREDIR_FILE) — directory URL through HTTP;
  • ($SHAREDIR_FILEv6) — directory URL through HTTP and IPv6;
  • ($SHAREDIR_FILEv4) — directory URL through HTTP and  IPv4;
  • ($SSHPUBKEYS) —  list of SSH keys. The keys are added in /root/.ssh/authorized_keys;
  • ($TIMEZONE) — timezone;

    • "true" — use;
    • "false" — do not use.
  • ($TMPIPv4) — temporary IPv4 address that will be used during OS deployment::
  • ($VOL_SIZE_M) — main disk size in Mb.