V
V
Vladimir Rozhkov2012-09-12 16:57:39
virtual box
Vladimir Rozhkov, 2012-09-12 16:57:39

How to change console resolution in Ubuntu 12.04 Server running inside Oracle VirtualBox?

Rummaged through all the Internet, tried all the ways - nothing helps, the resolution remains 640x480. On the Ubuntu forum, I found a sad message from a person who has been looking for solutions for a very long time, tried everything and laments that they did not answer him.

If it's not so easy to change the resolution, then maybe you can turn on the graphical mode of the console?

How w/a you can of course connect via putty, but I would like to work natively.

Answer the question

In order to leave comments, you need to log in

7 answer(s)
A
Andrewww, 2012-09-13
@r0zh0k

I usually do this, in the grub2 config ( /etc/default/grub ), in the "GRUB_CMDLINE_LINUX_DEFAULT" line,
add the "vga=" parameter
, take the value from the table (pulled it out on the arch wiki)
+------------ -------------------------------------------+
| 640x480 800x600 1024x768 1280x1024
----+----------------------------------------- ---
256 | 0x301=769 0x303=771 0x305=773 0x307=775
32K | 0x310=784 0x313=787 0x316=790 0x319=793
64K | 0x311=785 0x314=788 0x317=791 0x31A=794
16M | 0x312=786 0x315=789 0x318=792 0x31B=795
+------------------------------------- ------------+
then
#update-grub
in the first grab similarly, only the menu.lst file in the /boot directory, and without updating
in both options, the changes will be after the reboot
as a test option - you can try to insert this value in the hornbeam menu itself when loading, the changes will be applied, but only until the next reboot.
In general, yes, as they said above, it's better to SSH into the guest machine, and then with your favorite terminal

E
Egor Ommonik, 2015-01-25
@Ommonick

I just uncommented the line in /etc/default/grub
GRUB_GFXMODE=1024x768 (I set the resolution I needed)
and then
sudo update-grub
wow :D

C
ChildrenofkoRn, 2012-09-13
@ChildrenofkoRn

Throw ssh into the host machine and don't suffer.
You can of course just ssh-port in the VM settings, but it's more convenient for me muffinresearch.co.uk/archives/2010/02/08/howto-ssh-into-virtualbox-3-linux-guests/

G
Gilan, 2016-05-24
@Gilangg

Edit /etc/default/grub
GRUB_GFXMODE=1024x768
GRUB_GFXPAYLOAD_LINUX=keep
After editing run:
sudo update-grub
After restarting the system

V
Vadim Misbakh-Soloviev, 2012-09-12
@mva

In text mode, there is no way to change the resolution to one that does not correspond to standard character scans.
In Framebuffer mode, you can set resolutions to the usual per-pixel resolution, but you have to fiddle a little with the kernel launch line in the grub config.
In general, the motive for running a non-graphical Linux in a virtual machine is not clear. On "play" usually put graphic. And on the server - usually not in virtualbox on a Windows host machine :)

V
Vampiro, 2012-09-12
@Vampiro

By the way, my native VBox client doesn’t have a clipboard, although I seem to have installed extensions ... Therefore, it’s more convenient in every way. Google how to run virtual machines in the background so that there is no extra window and, accordingly, the temptation to climb into it. =)

S
smacota, 2014-10-13
@smacota

In general, no one answered

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question