Setting Up New Server Share
These procedures can only be preformed by server administrators.
- Log into Webmin (port 12321), select SAMBA server
- Click on "Create A New Share"
- Provide a name and directory to share
- Change "Create with" Owner = vboxadd, Group = vboxsf
- Click Create
You should return to the share window
- Click on the new share, select "Security and Access Control"
- Add users who can access the groups to the "Set the Read/Write Users" and "Set the Read/Write Groups" lists.
- Hit save
You will return to the security window
- Click on "File Permissions"
- Under "New Unix file mode" enter 660; under "New Unix directory mode" enter 770
- Click save; then return to the share window
Scroll to the bottom of the window and hit "Reset SAMBA server"; the share should now be available.
- Log into the host machine using remote desktop
- Shut down the VM you are adding the share to
- Start the virtualbox manager, open the settings for the VM, under shared folders add the new folder.
- Restart the VM, check to see if new folder is mounted. It should be found under media/sh_XXX, where XXX is the share name
- Login to the shell-in-a-box (port 12320)
- apt-get update
- apt-get install dkms
- apt-get install build-essential
- apt-get install linux-headers-$(uname -r)
- reboot system (reboot 0)
- Mount the virtualbox guest addition iso:
- Download the newest guest additions ISO from virtualbox webpage, or copy from the host system (use the Webamin file browser to upload)
- Mount it:
- mkdir /mnt/iso
- mount -o loop VBOX.ISO /mnt/iso/ (where VBOX.ISO is the iso for the guest additions)
- cd /mnt/iso/
- Run virtualbox guest additions for linux, using the --nox11 tag to reduce error messages
- Reboot; shared folders should appear under /media/
Note: This can be completed semi-automatically by:
- Upload the guest additions for the current version of virtualbox
- Run the updateVM script.
#!/bin/bash mkdir /home/iso mount -o loop $(ls VBoxG*) /home/iso/ apt-get update apt-get install dkms apt-get install build-essential apt-get install linux-headers-$(uname -r) bash /home/iso/VBoxLinuxAdditions.run --nox11 umount /home/iso reboot 0