I created a 64-bit ubuntu 16.04.3 guest VM on a Windows 7 Pro 64-bit host using Oracle VirtualBox 4.3.12. (Ubuntu VMs won't even start in later versions of VirtualBox.)  However the new VM only has a max screen size of 1024 x 768 compared to my 1920 x 1080 screen resolution. It's hard to work on a VM with such a small resolution.  I tried the following steps after the install to allow me to use a higher screen resolution, but none worked:  sudo apt-get update   Restarted VM as requested.  sudo apt-get install virtualbox-guest-dkms   Restarted VM.  sudo apt-get install virtualbox-guest-x11   This failed with unmet dependencies, including xserver-xorg-core, so I did:  sudo apt-get install xserver-xorg-core sudo apt-get install virtualbox-guest-x11   Restarted VM. But now the VM starts up in an even smaller resolution (800 x 600?) and when I mouse over it the cursor disappears! Also, keyboard input is now ignored.  Does anyone know (a) how I can interact with my VM again and (b) allow me to have a larger maximum screen resolution? I don't care whether the screen re-sizes automatically; I just want a larger resolution so my VM is usable.  EDIT This isn't a duplicate of  because that says to install the latest version of VirtualBox. Here's the error I get when I installed vbox 5.1.28 and try to start one of my ubuntu VMs:    AFAIK Where I work no-one's ever succeeded in running an ubuntu VM on a version of VirtualBox > 4.3.12. Possibly due to a clash with corporate antivirus software as the error implies. Also, I first need to be able to interact with my VM via mouse or keyboard before I can install Guest Additions.
122020
What is the best way to install Guest Additions with all the resize and clipboard and file sharing features on Ubuntu 16.04?
107104
I've just installed Ubuntu 10.04 into VirtualBox on Windows 7.    Unfortunately the only options showing for screen resolution are 640x480 and 800x600 and the monitor is showing as 'Unknown'.  How would I go about upping the resolution to 1280x1024 (I'm on a 1600x1200 monitor)?   Update I tried mounting the VirtualBox 'Guest Additions' ISO (from the VBox 'Devices' menu) and doing sudo sh ./VBoxLinuxAdditions-x86.run  from the mounted drive, which gave 2 new listed resolutions after a reboot (1024x768 and the 16:9 version of that resolution). These worked when I selected them but disappeared when I switched back to another resolution. I tried rebooting and running VBoxLinuxAdditions-x86.run again but onlu the 2 low res options listed this time. I think I'm going to reinstall...    Seems to be a VBox problem rather than an Ubuntu problem as after reinstalling 10.4 overwriting the original virtual partition, sudo sh ./VBoxLinuxAdditions-x86.run now has no affect at all.
124061
I created a virtual machine to install ubuntu 14.04 on VirtualBox 4.2.12.*. I created virtual CD to install it with fixed-size virtual disk of 200GB. After successful installation, it restarted as usual. But after showing message of below, it hangs. Actually, I created virtual machines to install ubuntu at Virtual Box successfully several times. It's very easy. The installed ubuntu versions ranged from 9.10, 13.04 and even 14.04 before. I don't know why this time it hangs at restarting after successful installation. The only difference between this failure restart and previous successful ones is that the virtual disk is much larger, 200GB. It failed three times.  * Deactivating swap... [OK] * Stopping remaining crypto disks... [OK] * Stopping early drypto disks... [OK]
20868
Yesterday I was trying update my OS from 12.04 to 14.04.  This was done in my VirtualBox. I left the terminal open and continuing downloading during the night.  This morning when I came to my office, I saw the screen of my VirtualBox Ubuntu was deadlocked, I can't do any operation to it, it stays at some chromium interface I viewed last night.   So I forced restart it, and then I found I was enter into the interface of 14.04 . After I logged in, several error box popped out. But after I installed VirtualBox GuestAddtion package. No more error box popped out when I enter the GUI at the recently log-ins.  But I was still worried about if there may be some lethal bugs left when updating, at least it wasn't ended at an normal way.  So, is there a way that I can check if my update was complete?
13526
I would like to set-up a PC to run ubuntu most of the time, but also need to run XP for specific applications and testing. In the past I would have simply set up a dual boot machine and then restart and boot into windows XP as needed.    However since the machine has multiple cores and significant memory, I think I can use Virtual Box, Xen, or VMWare hypervisors. I am thinking of making Ubuntu the "host" VM and having XP as a guest VM. This would be especially nice for testing/debug/development since it is possible to run applications in both OS's simultaneously. I've never setup a virtual machine before and think that by asking the questions below I can avoid some trial-and-error.  Basically, I need to decide if a dual boot or VM setup is more appropriate for what I want to do.  Here's my questions:   I do not always need to have XP running. Do the hypervisors allow me to shut the guest VM down so that the host VM can then immediately use all memory and processor resources? When I then bring up the guest VM, is it easy to provision how much memory and other resources are used by it? Ideally, I'd like to pre-configure this in advance and then toggle the guest VM off/on without thinking about it. Is it possible or advisable to have the host OS be 64bit and the guest OS be 32bit? Alternatively, if both VM's are 32 bit and I have 8G of RAM, can the hypervisor provision each VM with 4G of RAM when they are running simultaneously? Which hypervisors are best for set-ups such as I described?
75708
I would like to do some lib testing on my OS. So I need several environment to run KVM. And I found my guest machine was not able to run KVM.  I was using virtualbox 4.2.
15997
here is ubuntu 12.10  virtual-box is somehow not working:  I was trying to install win7 on to an usb-hard-disk.  boinc is switched off and RAM-size is set to 4096 MB (too big ? of possible 8 Gibi )  report of virtual-box is:  the com-object for virtualbox could not be created.  the application is now ended.  Start tag expected, '&amp;lt;' not found.  Location: '/home/$user/.VirtualBox/VirtualBox.xml', line 1 (0), column 1.  /build/buildd/virtualbox-4.1.18-dfsg/src/VBox/Main/src-server/VirtualBoxImpl.cpp[484] (nsresult VirtualBox::init()).  Fehlercode:NS_ERROR_FAILURE (0x80004005) Komponente:VirtualBox Interface:IVirtualBox {c28be65f-1a8f-43b4-81f1-eb60cb516e66}   comment of me: why is virtualbox installing xml into folder of $user in .VirtualBox ? should it not be on usb-harddisk ? (with 500 Gibi )  first installation attempt was breaking off (with win7 in 64Bit) should I try virtual-box (ubuntu 64Bit) with win7 in 32Bit ? should I leave RAM-size of virtual-box to default 512 MB ?  thanks for reply
75634
everyone. I need to create LV for xen guest. There is only one disk of 70G. While installing, I use the default process and not the LVM. Do I need to reinstall Ubuntu to create the LV? Is there some better method? Thanks a lot.  root@vswitch-BlackfordESB2:/home/vswitch# vgdisplay   No volume groups found root@vswitch-BlackfordESB2:/home/vswitch# vgcreate vm /dev/sda1   No physical volume label read from /dev/sda1   Can't open /dev/sda1 exclusively.  Mounted filesystem?   Unable to add physical volume '/dev/sda1' to volume group 'vm'. root@vswitch-BlackfordESB2:/home/vswitch# pvdisplay  root@vswitch-BlackfordESB2:/home/vswitch# df -h Filesystem            Size  Used Avail Use% Mounted on /dev/sda1              60G  4.2G   53G   8% / udev                  3.6G  4.0K  3.6G   1% /dev tmpfs                 1.5G  1.1M  1.5G   1% /run none                  5.0M     0  5.0M   0% /run/lock none                  3.6G     0  3.6G   0% /run/shm
45624
I have run out of space on my WinXP virtual machine, which I only gave 10 GB space for when I created it.  Is there an easy way to increase it to, say, 20 GB?  I can't see any obvious option in VirtualBox settings.    The suggestion below gives this error  wim@wim-ubuntu:/media/data/winxp_vm$ VBoxManage modifyhd wim.vdi --resize 20000 VBoxManage: error: Cannot register the hard disk '/media/data/winxp_vm/wim.vdi' {46284957-2c09-4e70-8a49-bfbe0f7f681d} because a hard disk '/home/wim/VirtualBox VMs/winxp_vm/wim.vdi' with UUID {46284957-2c09-4e70-8a49-bfbe0f7f681d} already exists VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBox, interface IVirtualBox, callee nsISupports Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, AccessMode_ReadWrite, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 210 of file VBoxManageDisk.cpp     Removing the .vdi from VirtualBox before calling VBoxManage command, then adding it back in, was successful.  But now I can't boot the virtual machine, I get this worrying screen:    By the way, it says FATAL: Could not read from the boot medium!  System halted.    The vdi must be reattached to the VM after VBoxManage command.  Further, the partition will need to be resized from WITHIN windows, because you will have this empty space:    I was able to resize the partition easily using a bit of freeware called .
71178
My host is x64 bits Windows 8.1.  I downloaded the latest Virtual Box (4.3) and I'm trying to create a VM with a 64 bits Ubuntu OS (ubuntu-12.04.3-desktop-amd64).  When I go to New VM wizard, it doesn't give me option to select "Ubuntu (x64)" as I have seen in other people's screenshots, only just "Ubuntu". As a result, the ISO can't boot. I tried in another PC and Virtual Box gives the x64 variants to most listed OS...  Control Panel shows x64 OS, x64 processor. My host laptop is a Sony Vaio VPCZ22UGX/N, Intel® Core™ i7-2640M processor. CPUz shows Vx-t is available on my processor, of course.  Here is what I tried so far:   I enabled IO APIC as required in the docs. I have virtualization enabled in the BIOS. It works fine in VMware. Check that Hyper-V is not running or even installed on my Windows. Same for VMware. I also tried running the command:  VBoxManage modifyvm [vmname] --longmode on    for that VM, but no change.. I think the issue is really that I can't select x64 variant of the Ubuntu OS for that VM. Other people seem to indicate that's a requirement, but I don't get that option for some reason.  I spent a lot of time and can't find what's wrong... Anyone knows what could be missing here?  Thank you very much!!  Eduardo
115382
Environment:   Host OS: Win7 Pro 64bit Guest OS: WinXP 32bit VirtualBox version: 4.1.4r74291 Processor: Intel Core i7 2630QM with virtualization enabled   The Problem:  I need the guest system to use multiple cores. I have enabled the following options in VirtualBox:    IO APIC (motherboard tab) PAE/NX (processor tab) VT-x/AMD-V (acceleration) nested paging (acceleration)   All other options on the System submenu are switched of. The 'processors' slider is set to 8.  The problem is that the guest system runs correctly, but only one processor/core is visible.
119789
I've a VirtualBox VM which configured a very large hard disk size (bigger than host). By my mistake, a program on the VM generated lots of log files and the VDI file size keeps growing until there is no space on the host.   Now I've deleted the log files but the VDI file size are not getting smaller after using VBoxManage.exe modifyhd "C:\Virts\mybox-i386.vdi" compact  Is there a way to really compact the VDI file size? Thanks!
85309
I'm currently running Windows 8.1 x64 (a problem in itself that I can't change sadly ;-P) with the latest version of VirtualBox (4.3.18 r96516). I managed to get the server version up and running with no issues but I cannot get the desktop version running.   I can boot to the menu and start the process (select the option to install and/or try) and it will get through the inital Ubuntu 14.10 loading screen (with the progess "bar/dots") but then we get to a nasty screen of distorted colors and that's it.   My hypothesis is that the display driver/server isn't working with VirtualBox and what I'm essentially seeing is the display in a crappy mode (16colors@62x24) because I am able to see a perfectly fine screen with cursor working and everything and then suddenly I'm in that nasty screen. The mouse does show up (nasty looking and filling the entire screen) but nothing else.   Here is a screenshot:    Here are my settings in an album (I can add more if desired but I put in what I thought were the most relevant):
15865
I have an Ubuntu virtual machine running in VirtualBox 2.2.4, and I created it on an 8gb virtual disk which is too small.  So, I am trying to increase the size of the disk.  So far, I have done this:   Created a new larger virtual disk Added the 2nd disk to the machine Used CloneZilla to clone the first disk onto the 2nd disk Removed the first disk Booted up off the 2nd (larger disk)   But now I'm still stuck with an 8gb partition on my new 100gb virtual disk.  Whats the easiest path from here to having a 100gb partition? :) I gather GPart can resize partitions, but it doesn't seem to support LVM2 partitions, which mine seems to be.  thx   Alex
108410
I'm trying to install the Guest Additions in VirtualBox 4.04. Host OS is Ubuntu desktop 11.04 64bit, guest OS is Ubuntu server 11.10 64bit.  $ sudo ./VBoxLinuxAdditions.run   After some output this line is printed:  The headers for the current running kernel were not found.   But the headers are installed, at least accordingly to dpkg:  $ dpkg --get-selections | grep linux-headers linux-headers-3.0.0-12            install linux-headers-3.0.0-12-server     install linux-headers-server              install   The running kernel is:  $ uname -a Linux foobar 3.0.0-12-server #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011 x86_64 x86_64 X86_64 GNU/Linux   How do I fix things so that Guest Additions installer is able to find kernel headers?  Update: added full output.  The headers for the current running kernel were not found. If the module compilation fails then this could be the reason.  Building the main Guest Additions module ...done. Building the shared folder support module ...fail! (Look at /var/log/vboxadd-install.log to find out what went wrong) Installing the Window System drivers ...fails! (Could not find the X.Org or XFree86 Window System).   I don't care for fail #2, because that's a server and I don't need X server. But I need shared folder support.  Some further detail:  $ tail /val/log/vboxadd-install.log .......... cc1: some warnings being treated as errors make[2]: *** [/tmp/vbox.0/vfsmod.o] Error 1 make[1]: *** [_module_/tmp/vbox.0] Error 2 make: *** [vboxsf] Error 2
96341
I am using Nvidia graphics card. I run Ubuntu 16 on virtualbox. Host OS is windows 10. Does it make sense to upgrade the graphics driver in my Ubuntu image running on virtualbox? My CPU also support integrated Intel Graphics.
19873
Environment: Lenovo T530 running Windows 7.  Have installed Ubuntu 14.04 on a virtual machine using VM Virtual Box.  Have installed all the updates from both Virtual Box and Ubuntu.  Problem: While in Ubuntu's desktop and other Ubuntu initiated programs, the window is reduced to about 3x4 inches showing in the middle of the rest of my regular Virtual Box window.  I am seeing only the upper right hand of the screen output of what I would normally see.  Please help.   I've seen    But, none of these answers works in 14.04.