View Full Version : Install F12 under kvm
nothingman76
9th October 2009, 05:45 AM
Hi,
I'm currently running F11 and I have installed a F12 kvm virtual machine using virt-manager.
The installation completes but with the default configuration my F12 guest can't do any resolution higher to 1024x768 and I'd like too use my native resolution 1280x800.
With the default conf (no xorg.conf) it seems to me that Xorg is using "Cirrus" Device: do you know which xorg driver should I use under a kvm guest ?
Thanx.
nothingman76
11th October 2009, 10:14 PM
I discovered how to get 1280x800 resolution on my f12 kvm guest.
These are the steps:
Boot the vm using command line and adding -vga std option
Change the default xorg configuration in order to use vesa driver and not cirrus: in order to do this I've use the following xorg.conf
Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "InputDevice"
# keyboard added by system-config-display
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "it"
EndSection
Section "Monitor"
Identifier "Monitor0"
HorizSync 20.0 - 50.0
VertRefresh 40.0 - 80.0
EndSection
Section "Device"
Identifier "Videocard0"
Driver "vesa"
Option "UseFBDev" "true"
Option "NoDCC" "1"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1280x800"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x800"
EndSubSection
EndSection
Restart the xserver
I dind't found a way to pass the option -vga std using virt-manager so I'm booting my vm using command line
jvillain
12th October 2009, 12:04 AM
In theory. Haven't tried it yet
On your host machine you should have some xml files in /etc/libvirt/qemu. Pick the one that matches the image you are running and open it in an editor. If you modify the the video section you should be able to change 'cirrus' to 'std'. In theory.
<video>
<model type='cirrus' vram='9216' heads='1'/>
</video>
Running qemu-system-x86_64 --help from the command line gives the following. So you should be able to pick any of those.
-vga [std|cirrus|vmware|xenfb|none]
nothingman76
12th October 2009, 10:26 PM
Well I've tried to modify the file /etc/libvirt/qemu/f12-alpha.xml adding the section <video> but it seems it's totally ignored. Even if I put <model type='std' vram='16384' head='1'> when the vm start on the bios messages I see the log "cirrus-compatible VGA is detected" and I cannot do resolution higher of "1024x768". Instead when I run qemu from command line using option -vga std when the vm starts on the bios messages I see the log "Bochs VBE Display Adapter enabled" and I can do resolution 1280x800.
--
Fabio
In theory. Haven't tried it yet
On your host machine you should have some xml files in /etc/libvirt/qemu. Pick the one that matches the image you are running and open it in an editor. If you modify the the video section you should be able to change 'cirrus' to 'std'. In theory.
<video>
<model type='cirrus' vram='9216' heads='1'/>
</video>
Running qemu-system-x86_64 --help from the command line gives the following. So you should be able to pick any of those.
-vga [std|cirrus|vmware|xenfb|none]
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.