The configuration of a virtual server includes the configuration
of properties, such as a name, system resources, such as CPUs, memory,
and a boot device, and devices, such as storage, and network devices.
Procedure
- Create a domain configuration-XML file.
- Specify a name for the virtual server.
Use
the name element to specify a unique name according to your naming
conventions.
- Configure system resources, such as virtual CPUs, or the
virtual memory.
- Configure a boot process.
- Configure virtual CPUs.
- Configure memory.
- Optional: Configure the collection of QEMU
core dumps.
- In the domain configuration-XML file,
enter the virtual server device
configuration.
- Optional: Configure the user space.
- Configure persistent devices.
- Configure the console device.
- Optional: Configure a watchdog
device.
- Optional: Disable the generation
of cryptographic wrapping keys and the use of protected key management
operations on the virtual server.
- Optional: Libvirt automatically
generates a default memory balloon device for the virtual server.
- Save the domain configuration-XML file according
to your virtual server administration
policy.
What to do next
Define the virtual server to
libvirt based on the created domain configuration-XML file as described
in Defining a virtual server.