2013-01-08 07:05:31 -05:00
---
2015-04-10 16:17:45 -04:00
layout: doc
2015-10-13 23:31:03 -04:00
title: Linux HVM Tips
2015-10-28 18:14:40 -04:00
permalink: /doc/linux-hvm-tips/
2015-10-11 03:04:59 -04:00
redirect_from:
2015-10-28 18:14:40 -04:00
- /en/doc/linux-hvm-tips/
2015-10-11 03:04:59 -04:00
- /doc/LinuxHVMTips/
- /wiki/LinuxHVMTips/
2013-01-08 07:05:31 -05:00
---
Tips for Linux in HVM domain
============================
Screen resolution
-----------------
Some kernel/Xorg combination use only 640x480 in HVM, which is quite small. To enable maximum resolution, some changes in Xorg configuration are needed:
1. Force "vesa" video driver
2. Provide wide horizontal synchronization range
To achieve it (all commands run as root):
2016-01-10 18:41:30 -05:00
1. Generate XOrg configuration (if you don't have it):
2013-01-08 07:05:31 -05:00
2015-09-26 19:00:33 -04:00
~~~
2013-01-08 07:05:31 -05:00
X -configure :1 & & mv ~/xorg.conf.new /etc/X11/xorg.conf
2015-09-26 19:00:33 -04:00
~~~
2013-01-08 07:05:31 -05:00
2015-04-21 20:07:29 -04:00
2. Add HorizSync line to Monitor section, it should look something like:
2013-01-08 07:05:31 -05:00
2015-09-26 19:00:33 -04:00
~~~
2013-01-08 07:05:31 -05:00
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 30.0 - 60.0
EndSection
2015-09-26 19:00:33 -04:00
~~~
2013-01-08 07:05:31 -05:00
3. Change driver to "vesa" in Device section:
2015-09-26 19:00:33 -04:00
~~~
2013-01-08 07:05:31 -05:00
Section "Device"
# (...)
Identifier "Card0"
Driver "vesa"
VendorName "Technical Corp."
BoardName "Unknown Board"
BusID "PCI:0:2:0"
EndSection
2015-09-26 19:00:33 -04:00
~~~
2013-01-08 07:05:31 -05:00
Now you should get at least 1280x1024 and be able to choose other modes.
Qubes agents
------------
2015-05-08 09:17:21 -04:00
Linux Qubes agents are written with PV domain in mind, but it looks to be possible to run them also in HVM domain. However some work is required to achieve it. Check [this thread ](https://groups.google.com/group/qubes-devel/browse_thread/thread/081df4a43e49e7a5 ).