LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 06-26-2021, 07:42 AM   #1
ddenial
Member
 
Registered: Dec 2016
Distribution: CentOS, Fedora, Ubuntu
Posts: 359

Rep: Reputation: 56
How to change screen resolution of KVM virtual machine?


Hi

I want to change the initial screen resolution of KVM guest from 1024x768 to 1280x720. This screen size is not what you define when the operating system is already installed into the client. This is the size that will be used when installing the operating system; it will be 1024x768 or 800x600 by default.

VirtualBox has settings for a similar situation:
Code:
$ VBoxManage setextradata <guest name> "VBoxInternal2/EfiGraphicsResolution" "1280x720"
This will change the VirtualBox guest size from 1080x768 to 1280x720 when you are installing the OS. When the guest OS is installed, the resolution set there will take over.

I'm looking for a similar solution for KVM.

Is there any?

Thanks
 
Old 06-27-2021, 08:57 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
According to the documentation, you can set the resolution of the VM's video device.
 
1 members found this post helpful.
Old 06-29-2021, 07:54 AM   #3
ddenial
Member
 
Registered: Dec 2016
Distribution: CentOS, Fedora, Ubuntu
Posts: 359

Original Poster
Rep: Reputation: 56
I found the solution. If anyone is interested, the procedures to change screen resolution are as follows.
  1. Start the KVM Guest from the 'Virtual Machine Manager'. When it starts hit F2 (or ESC) to load BIOS Menu.
  2. Go to Device Manager -> OVMF Platform Configuration
  3. In Change Preferred, change the resolution to 1280x720, or whatever.
  4. Hit Commit Changes and Exit. Then ESC to exit.
  5. Finally hit Reset to reboot the VM with the resolution of 1280x720.

When the VM restarts, from the View menu, click the 'Resize to VM' option. Done.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel-based Virtual Machine (KVM): Switching from KVM guest to host (e.g. Linux Mint) & maximize guest screen fanoflq Linux - Newbie 2 07-13-2016 06:10 PM
[SOLVED] "No KVM, No qemu-kvm" Available error while trying to install KVM on CentOS 6.3 sriramdas Linux - Virtualization and Cloud 5 01-01-2013 10:46 AM
KVM on Redhat 5.7: KVM can ping outside network, outside network can't ping KVM svandyk Linux - Networking 1 09-23-2011 06:45 AM
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 02:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration