LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-27-2016, 02:57 PM   #1
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Rep: Reputation: 78
VirtualBox - how to get VM to have a larger screen


I'm brand new to VirtualBox. I've just recently installed VirtualBox (downloaded from virtualbox.org) on my Ubuntu 14.04 workstation and I've created a VM running Ubuntu Server 16.04 LTS. Sadly, the one single terminal window available for me to interact with that machine is only 800x600 or so. I've looked through all the settings, especially those related to Display, and cannot seem to find any way to make the terminal window larger. Can anyone point me in the right direction?
 
Old 11-27-2016, 03:02 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
Use SSH to log into your headless virual server.
 
Old 11-27-2016, 06:12 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,489

Rep: Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091
You need to install guest additions.

https://help.ubuntu.com/community/Vi...GuestAdditions
 
3 members found this post helpful.
Old 11-28-2016, 03:32 PM   #4
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
Quote:
Originally Posted by Emerson View Post
Use SSH to log into your headless virual server.
This doesn't really answer my question. In particular, it doesn't help if I want to interact with the GUI on the VM. Also, I'm still trying to sort out how to set up networking for this VM. I will likely post that elsewhere.
 
Old 11-28-2016, 03:36 PM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
Quote:
Originally Posted by sneakyimp View Post
This doesn't really answer my question. In particular, it doesn't help if I want to interact with the GUI on the VM. Also, I'm still trying to sort out how to set up networking for this VM. I will likely post that elsewhere.
I didn't think you had a GUI for server, you certainly did not mention this. You said: terminal window.
 
Old 11-28-2016, 03:36 PM   #6
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
Quote:
Originally Posted by michaelk View Post
You need to install guest additions.

https://help.ubuntu.com/community/Vi...GuestAdditions
Thanks for this. Should this always be done for a VM? Or just if you want extra features?

I found this documentation which looks helpful:
https://www.virtualbox.org/manual/ch04.html
 
Old 11-28-2016, 03:50 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,489

Rep: Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091
For VMs without a GUI it does not matter but the add features like auto sizing the window and mouse integration are nice to have.
 
Old 11-28-2016, 04:09 PM   #8
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
Quote:
Originally Posted by Emerson View Post
I didn't think you had a GUI for server, you certainly did not mention this. You said: terminal window.
You are (mostly) correct that server doesn't have GUI...it does have a terminal window. I agree that ssh window from host to VM is probably going to be more convenient for talking to the VM as Ubuntu has pretty nice terminal program. I was rather hoping to address the smallness of the "native" terminal window as it gets displayed in the VirtualBox application window on my workstation. I will be installing VMs with GUIs at some point I think.
 
Old 11-28-2016, 05:30 PM   #9
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
Quote:
Originally Posted by michaelk View Post
You need to install guest additions.

https://help.ubuntu.com/community/Vi...GuestAdditions
I have read this document. I would point out for any interested parties that I was unable to get anything by trying Devices->Insert Guest Additions CD Image... in the VirtualBox menu. I got an error dialog:
Quote:
Unable to insert the virtual optical disk /usr/share/virtualbox/VBoxGuestAdditions.isointo the machine My-First-VM
.
I was able to copy this error
Code:
Unable to insert the virtual optical disk /usr/share/virtualbox/VBoxGuestAdditions.iso into the machine My-First-VM-Ubuntu-16.04.



Could not mount the media/drive '/usr/share/virtualbox/VBoxGuestAdditions.iso' (VERR_PDM_MEDIA_LOCKED).

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: ConsoleWrap
Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
Callee: IMachine {b2547866-a0a1-4391-8b86-6952d82efaa0}
 
Old 11-28-2016, 05:32 PM   #10
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
I was able to find the right ISO for my installation here:http://download.virtualbox.org/virtualbox/5.1.10/

No idea how to get it onto the VM though...
 
Old 11-28-2016, 05:53 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,489

Rep: Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091
Use the device pull down menu, click on the optical drive and select the iso image. This will mount the file. As root cd to the cdrom drive which I assume is /media/cdrom0 and run the command

sh VBoxLinuxAdditions.run

Last edited by michaelk; 11-28-2016 at 05:56 PM.
 
1 members found this post helpful.
Old 11-28-2016, 06:03 PM   #12
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
Quote:
Originally Posted by michaelk View Post
Use the device pull down menu, click on the optical drive and select the iso image. This will mount the file.
I have tried this:
Devices->Optical Drives->Choose Disk Image...
(select ~/VBoxGuestAdditions_5.1.10.iso on my workstation)

And the resulting error is nearly identical to the previous error:
Quote:
Unable to insert the virtual optical disk /home/sneakyimp/VBoxGuestAdditions_5.1.10.iso into the machine My-First-VM

Would you like to try to force insertion of this disk?
I've tried 'cancel' and 'Force Unmount' buttons on that dialog, neither of which does anything. I've tried listing the contents of /media/cdrom and it's empty.

I did try installing the virtualbox iso deb package by running this command on the VM:
Code:
sudo apt-get install virtualbox-guest-additions-iso
The command ran successfully but I can detect no difference at all. No changes in the screen's size or mouse behavior, no change in the VirtualBox application's options to affect the display size.
 
Old 11-28-2016, 06:09 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,489

Rep: Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091
You might have to restart the VM. Now try to insert the 5.0.10 iso file and see if it mounts.
 
Old 11-28-2016, 06:30 PM   #14
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
Quote:
Originally Posted by michaelk View Post
You might have to restart the VM. Now try to insert the 5.0.10 iso file and see if it mounts.
I have restarted the VM twice now and the errors are still identical for both approaches. Starting to think that one must have a GUI running on the virtual machine to take advantage of the Guest Additions.
 
Old 11-28-2016, 07:59 PM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,489

Rep: Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091Reputation: 4091
I got the same error on my CentOS 7 VM but it actually did show inserted. Not sure between forcing insert or just repeatedly trying did it work.

You also need to install the gcc, kernel-devel and bzip2. After that I could mount the CD and install guest additions.

Also make sure your VM is updated first.

Update:
After all that.. With just a GUI only the terminal window does not appear to be capable of resizing.

Last edited by michaelk; 11-28-2016 at 08:14 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] maximized window larger than screen width rusyd Linux - Desktop 2 08-24-2010 12:07 AM
Desktop is larger than viewable screen Slackware 12 chrislski Slackware 7 07-09-2007 06:32 AM
larger screen resolution than 1024x768 Crayoneater Slackware - Installation 9 09-13-2005 05:17 PM
XF86-ldesktop's screen larger than monitor's screen zymos Linux - Software 1 03-07-2005 08:16 AM
Abiword larger than screen. How to reduce it ? javeree Linux - Software 1 09-13-2004 04:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:04 AM.

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