# How to change vm VGA compatible controller

**URL:** <https://forum.opennebula.io/t/how-to-change-vm-vga-compatible-controller/9630>\
**Category:** Installation & Configuration\
**Created:** [June 11, 2021, 1:15pm UTC](https://forum.opennebula.io/t/how-to-change-vm-vga-compatible-controller/9630 "2021-06-11T13:15:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![czd](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/czd/32/7021_2.png) [@czd](https://forum.opennebula.io/u/czd)\
**Post date:** [June 11, 2021, 1:15pm UTC](https://forum.opennebula.io/t/how-to-change-vm-vga-compatible-controller/9630/1 "2021-06-11T13:15:28Z")

</div>

Hi,  
Recently I have setup a Ubuntu 18.04 kvm vm machine with gui successfully, but I can’t make it on Ubuntu 20.04. Anyway VNC doesnt work on Ubuntu 20.04 but works on 18.04. Can someone clarify the issue? So my question is how can I change vms vga controller?  
In Ubuntu 20.04, here is the output of the display driver.

```auto
root@ubuntu2004:~# lspci -v | grep -i vga
00:02.0 VGA compatible controller: Cirrus Logic GD 5446 (prog-if 00 [VGA Controller]) 

```

Regards.

---

<div class="post-metadata">

**Author:** ![atodorov\_storpool](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/atodorov_storpool/32/5327_2.png) [@atodorov\_storpool](https://forum.opennebula.io/u/atodorov_storpool)\
**Post date:** [June 11, 2021, 6:05pm UTC](https://forum.opennebula.io/t/how-to-change-vm-vga-compatible-controller/9630/2 "2021-06-11T18:05:15Z")

</div>

Hi @czd,

> [@czd](#):
>
> So my question is how can I change vms vga controller?

AFAIK OpenNebula does not manage the _\<[video](https://libvirt.org/formatdomain.html#video-devices)\>_ element in the domain xml.

You could define a definition of a video device in the RAW section of the VM. There are some validations implemented in recent version of OpenNebula that could need to be disabled, though.

Alternative that I prefer is to use a module to tweak the video definition implemented with the deploy-tweaks from [addon-storpool](https://github.com/OpenNebula/addon-storpool). This piece of code could be extracted and used as an independent script.

Best Regards,  
Anton Todorov

---

<div class="post-metadata">

**Author:** ![czd](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/czd/32/7021_2.png) [@czd](https://forum.opennebula.io/u/czd)\
**Post date:** [June 14, 2021, 8:39pm UTC](https://forum.opennebula.io/t/how-to-change-vm-vga-compatible-controller/9630/3 "2021-06-14T20:39:22Z")

</div>

Thanks Anton for the info and reply.  
Regards.
