home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

Valid memory element identifier and multiplier values

The 'unit' attribute for the <memory> element in the libvirt domain XML file for provisioning guests automatically accepts specific identifiers and multiplier values.

If you do not allocate accepted values, such as those shown in the following table, the system displays an error message about an unrecognized allocation unit.

For example, the <memory unit='G'>4</memory> XML snippet attempts to allocate 4,294,967,296 bytes of memory (4,294,967,296 = 4 * 1,024 * 1,024 * 1,024) for the guest. The default memory allocation unit is 1,024 bytes.

Table 1. Valid memory element identifier and multiplier values
Identifier Value
b 1 byte
bytes 1 byte
KB 1000 bytes
k 1024 bytes
KiB 1024 bytes
MB 1000 * 1000 bytes
M 1024 * 1024 bytes
MiB 1024 * 1024 bytes
GB 1000 * 1000 * 1000 bytes
G 1024 * 1024 * 1024 bytes
GiB 1024 * 1024 * 1024 bytes
TB 1000 * 1000 * 1000 * 1000 bytes
T 1024 * 1024 * 1024 * 1024 bytes
TiB 1024 * 1024 * 1024 * 1024 bytes