Page 1 of 1

Guest additions install from command line

Posted: 9. Mar 2009, 23:06
by peteb
I'm don't know Linux very well so I apologize in advance...

I am running Virtual Box 2.1 on Ubuntu 8.1 Server and need to do everything from the command line. I am trying to update my Windows XP guest additions...

I've done countless searching but I'm still stuck and am here as a last resort. I believe I need to mount the guest additions ISO using the "VBoxManage controlvm dvdattach" command, however my problem lies in the fact that I have no idea where the guest additions ISO is or where to get it from.
I cannot find an additions folder as mentioned in the manual, and if I truly don't have it, I have no clue where to get the additions from. Everything I've read says it should have been included with the install.

Any and all help is most appreciated.

Thanks,
Pete

Re: Guest additions install from command line - Solved

Posted: 10. Mar 2009, 16:06
by peteb
A new day, clear head, and some more searching, I found my answer via a screenshot of an error someone else received...

The manual states that the ISO should be located at "/opt/virtualbox-2.1.4" however, I found the ISO file at "/usr/share/virtualbox".

Once I found the ISO, I was able to mount it using "VBoxManage controlvm machinename dvdattach /usr/share/virtualbox/VBoxGuestAdditions.iso" then went to my guest and ran the install from the mounted CD.

Problem solved...

Regards,
Pete

Re: Guest additions install from command line

Posted: 17. Mar 2009, 00:57
by rdo2000
Thanks for posting this. This helped me to reinstall the guest additions after losing GUI functionality.

- rdo

Re: Guest additions install from command line

Posted: 17. Mar 2009, 07:58
by TerryE
There is this wonderful utility called find. Try doing a man find and this will tell you to try something like find / -name "*.iso". Seek and ye shall find.

Re: Guest additions install from command line

Posted: 17. Mar 2009, 20:25
by Sasquatch
You can also use locate, which might be faster. You might have to update the database for it first using updatedb before it shows up.

Re: Guest additions install from command line

Posted: 17. Mar 2009, 22:42
by TerryE
Using locate means that you need to add a crontab entry to do the updatedb otherwise it is no faster or more convenient that the older find.

Re: Guest additions install from command line

Posted: 17. Mar 2009, 23:06
by Sasquatch
That might be needed, but IIRC, there is already a cronjob sheduled for daily run when you have mlocate installed. It does that on both my Ubuntu systems. Might be different for each distro, but I doubt that, as it would fail the purpose of locate.