• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 11756
  • Last Modified:

How to make QEMU/KVM full screen?

Hi Guys

How do I make the VM full screen? my monito is widescreen 16:9 but VM displays as 4:3

  • 7
  • 5
  • 3
1 Solution
just add "–std-vga" or "–std-vga –full-screen" to your KVM startup command
ridha121Author Commented:

Im using the GUI console to manage the vm.

It does go into full screen however it displays as 4:3 my laptop is widescreen and would like it full screen?

How would i use the commands above plus would it make it widescreen?
What the GUI tool do You use?
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

ridha121Author Commented:
Virtual Machine Manager
VMM is just interface, there is no virtual machine configs.
Which way do You create new virtual machine? virt-install ?
ridha121Author Commented:
ah yes using virt install

I used the method below


But used VMM based on QEMU to create the machine
Then configs may be there in XML format - /etc/libvirt/qemu/
Edit corresponded and add parameters
ridha121Author Commented:
Ive added the contents of the xml file pertaining to the vm in question dont seem to see any config regarding the video size?
domain type='kvm'>
    <type arch='i686' machine='pc-0.12'>hvm</type>
    <boot dev='hd'/>
  <clock offset='localtime'/>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/var/lib/libvirt/images/windows.img'/>
      <target dev='hda' bus='ide'/>
      <address type='drive' controller='0' bus='0' unit='0'/>
    <disk type='block' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <target dev='hdc' bus='ide'/>
      <address type='drive' controller='0' bus='1' unit='0'/>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    <interface type='network'>
      <mac address='52:54:00:9e:0a:93'/>
      <source network='default'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    <serial type='pty'>
      <target port='0'/>
    <console type='pty'>
      <target type='serial' port='0'/>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes'/>
    <sound model='ac97'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
      <model type='vmvga' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>

Open in new window

for full screen You must change line #50
from <graphics type='vnc' port='-1' autoport='yes'/>
to <graphics type='vnc' port='-1' autoport='yes' fullscreen='yes'/>

and line #55
from <model type='vmvga' vram='9216' heads='1'/>
to <model type='vga' vram='32768' heads='1'/>
This will add little bit more the vram (video memory) and change mode to the correct value.

ridha121Author Commented:
I tried the above but the display was still 4:3

Also to add the extra video memory didnt improve general speed of the vm? I am finding that youtube etc is slow.

I have a intel core 2 duo with vt technology laptop, i thought kvm was bare metal so better performace?
ridha121Author Commented:
is there a tool that qemu uses on guest os? like vmware tools etc?

I found that with viritualbox I installed its tools and the resoulution issue was fixed and os was able to pick up usb etc.

virtualbox was also alot faster?

Shouldnt qemu be running using bare metal?

I think I may have missed something? because in virtualbox os I was able to run graphic tasks very smooth whereas qemu is slow and sluggish.

vmware uses no "guest tools", has VESA BIOS and is limited to 4:3/5:4 display modes
VirtualBox/VMWare etc will be as slow withut using virtualization extension on most CPUs

ridha121Author Commented:
you mean qemu uses no guest tools?

if its limited to 4:3/5:4 then why would people want to go with that solution?

currently my windows 7 qemu using kvm hypervisor refuses to go into widescreen and is very slow with flash being slow also audio output not working even thtough ive given it a audio device its picked it up and installed it yet still no output.

I assumed qemu was the best option as it was bare metal and id get better performance however virtual box is alot better and when installing the guest tools was able to make the image full screen. its performance is very good also with no laggy video and excellent sound output.

I have enabled the vitualisation extention on my cpu which I had to do in order to get qemu kvm working.

am I missing something here ?
What is the practical purpose of having HD graphics in merely headless virtual machines?
Nobody prevents you for writing a driver for KVM graphics (both emulated hardware and windows client driver) and even profit from that.
Why not RDP, NX or VNC? They sort of use any resolution asked.
choppy video and bad sound are there because your network has random latency, and probably misses speed needed.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 7
  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now