User Tools

Site Tools


resources:pdf_document_resources:virtualbox_resources

VirtualBox Resources

Ubuntu 14.04 VM

2015.11.26 by anthony

Sources

Increasing screen resolution

The VM originally had a 640×480 resolution, which is tiny.

Found several message board posts giving incorrect information. This one gave correct answer, although it includes a typo:

https://forums.virtualbox.org/viewtopic.php?f=3&t=63825#p299936

From the post, with the typo corrected (replaced dkms for dkmd).

We don't support the Ubuntu fork of the guest additions. 

I would suggest that you remove them and install the official 
ones from your VirtualBox.

Start the guest and install the following packages then click 
on the device tab and click insert guest additions.

    sudo apt-get install dkms build-essential linux-headers-generic
    

Adjusting size of VDI (virtual disk

Initially made an 8GB primary partition, which filled up after installing only a few things! Increased to 15GB resizing the VDI using the VirtualBox vboxmanage tools on the OSX command line, installing gparted on Ubuntu, deleting the swap partition, resizing the primary partition, and then recreating the same sized swap partition. So far so good.

Chose “dynamically allocated” storage option when I set up the VM, but I still don't understand or see any evidence of it adjusting itself.

https://www.virtualbox.org/manual/ch08.html#vboxmanage-modifyvdi

http://osxdaily.com/2015/04/07/how-to-resize-a-virtualbox-vdi-or-vhd-file-on-mac-os-x/

https://forums.virtualbox.org/viewtopic.php?f=6&t=46814

Shared folders

https://help.ubuntu.com/community/VirtualBox/SharedFolders

This is the page the finally solved my problem:

http://lifecs.likai.org/2014/04/virtualbox-shared-folder-linux-notes.html

  120  sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) acate /media/sf_acate
  121  dmesg | tail
  125  sudo updatedb
  127  locate mount.vboxsf
  128  ll `locate mount.vboxsf`
  134  cat /etc/modules
  135  echo `locate mount.vboxsf`
  136  ln -sf `locate mount.vboxsf` /sbin/mount.vboxsf
  137  sudo ln -sf `locate mount.vboxsf` /sbin/mount.vboxsf
  148  sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) acate /media/sf_acate
  154  mount
  158  cat /etc/fstab
  159  sudo pico /etc/fstab
  163  sudo pico /etc/modules

Changed permissions on shared folder

<2016-01-14>

On 2015 Macbook Air laptop.

Permissions had always been root:root, which was very inconvenient. So Anthony set them to be anthony:anthony by changing /etc/fstab:

The relevant line now reads:

acate /media/sf_acate vboxsf uid=1000,gid=1000 0 1

(Reboot required after change).

Found instructions from these links:

http://ubuntuforums.org/showthread.php?t=1398340

https://askubuntu.com/questions/365346/virtualbox-shared-folder-mount-from-fstab-fails-works-once-bootup-is-complete

https://askubuntu.com/questions/113733/how-do-i-correctly-mount-a-ntfs-partition-in-etc-fstab



Keyboard

Exporting/importing

Maintenance Notes

resources/pdf_document_resources/virtualbox_resources.txt · Last modified: 2019/05/22 16:08 (external edit)