20.16.13. Video Devices

A video device.
To specify the video devices configuration settings, use a management tool to make the following changes to the domain XML:

  ...
  <devices>
    <video>
      <model type='vga' vram='8192' heads='1'>
        <acceleration accel3d='yes' accel2d='yes'/>
      </model>
    </video>
  </devices>
  ...

Figure 20.58. Video devices

The graphics element has a mandatory type attribute which takes the value "sdl", "vnc", "rdp" or "desktop" as explained below:

Table 20.22. Graphical framebuffer elements

ParameterDescription
videoThe video element is the container for describing video devices. For backwards compatibility, if no video is set but there is a graphics element in domain xml, then libvirt will add a default video according to the guest virtual machine type. If "ram" or "vram" are not supplied a default value is used.
modelThis has a mandatory type attribute which takes the value vga, cirrus, vmvga, xen, vbox, or qxl depending on the hypervisor features available. You can also provide the amount of video memory in kibibytes (blocks of 1024 bytes) using vram and the number of figure with heads.
accelerationIf acceleration is supported it should be enabled using the accel3d and accel2d attributes in the acceleration element.
addressThe optional address sub-element can be used to tie the video device to a particular PCI slot.