VirtualBox won't expand guest system's window - virtualbox

I have a problem with VirtualBox - my guest system is ubuntu 10.10 and after update, some of the VirtualBox's Guest additions functions stopped working. For example - before the update whole window of VB was occupied by guest's desktop, and now it's only like 70%. I had the same problem on my other computer with same guest OS, and it's update.

Sometimes you can pick the wrong script file for guest additions. You must use the Linux ones and NOT the .sh Guest Additions hope my tutorial helps you

If you run "apt-get dist-upgrade" then it might update the kernel. This can mess with the guest additions. You will have to re-install guest additions after doing the update. Then everything should be fine.

Related

Ubuntu on VirtualBox with small screen

After installing Ubuntu 18.04 on Virtual Box 6.1 the screen is small and we are unable to install Guest Additions.
If you try to access the mounted guest additions ISO image directly, you get mount errors.
Changing the Screen resolution of the Ubuntu worked for me.
Go to Displays Setting and change Resolution.
On the internet people are giving different solutions that could end up corrupting the installed guest OS. After trying multiple times to have the screen size resolved with Ubuntu 18.04, Virtual Box 6.1 running on Windows 10, here are exact steps that will help:
Make sure to install VirtualBox Extension pack from -
https://www.virtualbox.org/wiki/Downloads
Opt to do "normal installation" with following selected - "Download updates while installing Ubuntu" and "Install third-party software for graphics and Wi-fi hardware and additional media formats"
After installation, system will restart but the screen will be small
IMPORTANT STEP: If you click on 9 dots (Show Applications), you should see icon for "Software Update" (spinning circle with A on it). Click on it and ensure all the pending updates are installed
Once all the software updates are completed, open terminal and run following command - sudo apt install gcc make perl
Then click on Devices > Insert Guest Additions CD image
While guest addition is being installed keep focused eye on the output. If any dependencies is missing, you will see it on the screen. If all dependencies are resolved the auto-run should install the guest additions for you and clearly state that install additions will not activate until restart.
Restart the OS and you should see full screen on load.
With latest VirtualBox version 6.1.4, the above did not work as the issue was in Guest Additions 6.1.4. Installing Guest Additions 6.1.5 from https://www.virtualbox.org/wiki/Testbuilds solved the problem. For details refer -https://www.virtualbox.org/ticket/19336
Also I had to assign more display memory. After logging in I have to press Ctrl + F or view > full screen to let the screen scale.
Hope this helps!

Limited resolution in CentOS7 VirtualBox despite successful install of guest additions

I've spent all week trying to find an answer to this issue through google
I have installed VirutalBox 6.0.0 on a Windows 10 64-bit host, and I have created a VM and installed the latest CentOS 7 iso (CentOS-7-x86_64-DVD-1810). I have installed VirutalBox Guest Additions in the guest; there were no errors during the installation, and I'm enjoying some of the VirtualBox features that require Guest Additions (e.g. shared clipboard, shared folders, drag-and-drop, etc).
My only problem is that my resolution is limited to sizes no greater than 1024x768 and the "auto-resize guest display" option in VirutalBox is greyed out. I've tried setting up new VMs. I've tried reinstalling guest additions. I've tried reinstalling guest additions after updating the kernel to the latest version, and without updating the kernel at all. I've verified that I have all of the necessary packages to build against my current version of the kernel (e.g. kernel-headers, kernel-devel, etc). I've verified that systemctl shows the guest additions services as starting successfully. I've tried modifying my grub configuration to use vga=ask and selecting one of the alternative resolutions available there, but CentOS never finishes booting if I do that.
I am at wit's end. Does anyone have any other ideas?
Versions:
Windows 10 64-bit host
VirtualBox 6.0.0
CentOS 7 guest using CentOS-7-x86_64-DVD-1810.iso
After trying an insane number of combinations, I was able to get this working with the following procedure
1) Install clean CentOS7
2) Update to latest kernel
3) Remove all kernel packages for the old kernel version
4) Build VBoxLinuxAdditions
What was weird was that this procedure didn't work for the older kernel (e.g. the one that came with my fresh CentOS7 install, prior to updating it with yum); the CentOS7 installer was installing the headers for the newer kernel even if I hadn't installed the newer kernel yet. So there was some sort of version mismatch between what VirtualBox thought it was building against vs what it was actually building against, resulting in nothing working until I had removed all traces of the old kernel.

Are any changes made to the host Operating System upon installing any package in virtualbox?

My host OS is windows and I installed CentOS in virtualbox. Will the packages that I install in the virtual box, be accessible/modified in windows?
Are any changes made to the host Operating System upon installing any package in virtualbox?
No.
Will the packages that I install in the virtual box, be accessible/modified in windows?
You should also be able to read and write files in the guest file system's disk image from the host system. With the caveat that the guest probably needs to be "off" while you do that, otherwise there is a risk of either corrupting the guest file system or seeing an inconsistent guest file system state from the host.
Installing packages in the guest does not modify the host operating system ... if that is what you were asking.

Vagrant documentation confusing to me

I am trying to create custom vagrant box file. I plan to use VirtualBox and I am reading this documentation: https://docs.vagrantup.com/v2/virtualbox/boxes.html
When the doc says,"VirtualBox Guest Additions must be installed so that things such as shared folders can function. Installing guest additions also usually improves performance since the guest OS can make some optimizations by knowing it is running within VirtualBox.
Before installing the guest additions, you'll need the linux kernel headers and the basic developer tools ...", but it doesn't say if this is to be done on the guest OS or host OS where I installed vargant and VirtualBox.
So I am guessing that I need to install a VM on VirtualBox and install the "VirtualBox Guest Addtitions" on this VM. Am I right?
The guest additions need to be installed on the guest OS. The host operating system only needs Virtualbox and vagrant installed. There are various descriptions out there for different operating systems and versions. It depends a bit on what your guest os looks like, so without a hint on what guest OS you are installing, I cannot provide more information.
Just FYI: You can use the boxes from vagrantcloud.com as a base, boot it and install softwareon top, exporting it to create "your" base box. In most cases, this works pretty well and you don't need to set up a whole new box. Take a look at the featured boxes, e.g. from chef. Chef boxes are the most basic setup one can create with really just the OS and the things vagrant need (ssh key, guest additions and so on).
I got a repo where I take a chef box and add some of my standard software stack (using chef) and export it as a new box. Have a look at Sgoettschkes/va for more information.

Looking for Virtual PC or VMware Guest O/S with Linux already installed

I wanted to play around with Linux and do some testing. I've tried installing Linux on a Virtual PC (2004) guest but couldn't get it to work.
I figured with all the folks out there proselytizing about Linux maybe someone had made an guess file that I could just download and open up in Virtual PC (ideally) or VmWare.
PS - I asked question on ExpertsExchange about 2 years ago and all I got was people telling me I should use VMware (but not suggestions of where to find a pre-made Guest record.)
The VMWare library of pre-installed guests is at http://www.vmware.com/appliances/ - it seems to be currently down for maintenance though.
VMware player: http://www.vmware.com/products/player/
Vmware images: http://www.vmware.com/appliances/
The appliances website was down for me, but you can download premade images of various operating systems and run them using the vmware player or vmware server.
Ubuntu 8.04: http://www.vmware.com/appliances/directory/1224
Also, just look at the popular section on the right-hand side. I have found that when you want to use Linux, vmware is the way to go. I have had issues trying to install it on virtual pc, but that might have changed since I tried it back in 2006 with Fedora.
The VMWare appliance site is down as I write this but there is a very useful appliance that is about 60K that allows you to mount an ISO as a VM.
This is great because you don't have to install the distribution in a VM. You can load up the ISO into the VM every time as new or simply reload a suspended image.
When you feel comfortable - try installing the version of Linux in the VM.
You could also simply burn an ISO to a CD/DVD and boot it up to play with it - no install required.
You should also take a look at Sun's VirtualBox VM manager. Its free and pretty good.
Try http://elasticserver.com/
They have a a la carte approach for linux VM's.
Virtual Hosted Linux is a pain. If you MUST do this, then use Sun's VirtualBox - it starts up faster and really is easier to use than anything else .. You can get Ready To Use VDI images from VirtualBoxImages too... But, if you just wanna 'play around' with linux, then why not boot up a LiveCD ..