Virtual Box

From RHS Wiki
Jump to navigation Jump to search

Resize Virtual HDD[edit]

1.-

VBoxManage modifyhd <absolute path to file> --resize <size in MB>

2.- Extend the primary partition to include the new drive space. Download the Gparted live cd or what ever partition manager program you wish and mount it to the guests virtual CD and boot the guest. From here you can expand the primary partition to use the new space. You can download the Gparted Live CD from HERE.

Shared folder[edit]

Required: Virtualbox Guest Additions

Before sharing folders, you must install Guest Additions. For instructions on how to do this, see Guest Additions.

Creating a shared folder

    Create a folder on the Host computer (ubuntu) that you would like to share, for example ~/share

    Boot the Guest operating system in VirtualBox.

    Select Devices -> Shared Folders...
    Choose the 'Add' button.

    Select ~/share
    Optionally select the 'Make permanent' option 

Prepare the folder

Linux

With a shared folder named share, as above, the folder can be mounted as the directory ~/host with the command

sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) share ~/host