I'm new to VirtualBox and Linux. I've set up VirtualBox 4.0.4 on Windows 7. Successfully created a virtual machine running Ubuntu server 10.10 64 bit. I'm trying to set up Shared Folders. Prerequisite is Guest Additions. I've followed the Manual, as much as I understand it, and have Googled the heck out of trying to get past this. Here's what I've done:
sudo aptitude updatesudo aptitude safe-upgradesudo apt-get install dkms- Devices > Install Guest Additions... (nothing apparently happens, but I hear that's ok)
- Devices > CD/DVD Devices > [peek at the dropdown: bottom line has Remove disc from virtual drive, so I think that means the ISO is in the virtual CD-ROM drive
- Change to directory where your CD-ROM drive is mounted and execute as root, so I:
cd ..,cd ..,cd media,cd cdrom. (am I even in the right place?!)
I try sh ./VBoxLinuxAdditions.run and sudo sh ./VBoxLinuxAdditions.runI get
sh: Can't open ./VBoxLinuxAdditions.runI try bash ./VBoxLinuxAdditions.run and sudo bash ./VBoxLinuxAdditions.runI get:
bash ./VBoxLinuxAdditions.run no such file or directoryI try chmod +x VBoxLinuxAdditions.run and get no such file or directory
It seems I'm in the wrong directory, the right files aren't where I need them, wrong permissions, or wrong commands. I'm totally lost since every troubleshooting point I've seen on Google either hasn't worked for me when it did for others, or I just don't understand the instructions. Thanks in advance for any help.
This is what mount shows
3 Answers
As I mentioned in the comments, seems the ISO is not mounted. Here's what you can do
- Ensure that the guest additions ISO is available to the host. You can do this by clicking on
Devices menu->CD/DVD devicesand point to the GuestAdditions ISO file. The Guest additions is available inProgram Files\Oracle\VirtualBoxfolder
With that mounted, type in the below
cd /media mkdir vbox sudo mount /dev/sr0 vbox/ cd vbox/Now, the guest installation ISO is mounted as
/media/vbox
- Run the Guest additions installer by tying
./VBoxLinuxAdditions.run
If worse comes to worse, you can always install the desktop and use the GUI to install it...
sudo apt-get install ubuntu-desktopand restart.
I tried all this. Here is what worked for me. I am on 2011 Mackbook 10.13 Parrotsec Debian. I had to be in Parrot Terminal and run the commands on this site worked like a charm now I am up and running to finish setting up machine-geese it's only been like a month of trial and error to get the machine setup just to run NCL gymnasium.
2