Set screen resolution in FreeBSD on KVM

This commit is contained in:
Anthony Rose 2019-11-20 10:46:26 +00:00
parent 918c774b73
commit ee8ef12881
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,10 @@
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768"
EndSubSection
EndSection

View file

@ -16,3 +16,9 @@
copy: copy:
src: keyboard-gb.conf src: keyboard-gb.conf
dest: /usr/local/etc/X11/xorg.conf.d/keyboard-gb.conf dest: /usr/local/etc/X11/xorg.conf.d/keyboard-gb.conf
- name: Set xorg screen size for kvm/qemu
become: true
copy:
src: screen-qemu.conf
dest: /usr/local/etc/X11/xorg.conf.d/screen-qemu.conf
when: ansible_virtualization_role == "guest" and ansible_virtualization_type == "kvm"