Page 1 of 1

[NonIssue] Guest options cd

Posted: 22. Jul 2017, 17:34
by JoeTinAZ
upgraded to 5.1.24. Running Debian Jessie in VM. Get permission denied as root trying to run autorun.sh on CD. Does work fine in Solaris, Winxp, and Win7. Maybe I don't know the procedure to load it.
If I am in the GUI, and insert the CD, it asks to run it. Then it either says Oops had a problem or can't find program. I assume this should run for Debian Jessie?

Re: Guest options cd

Posted: 22. Jul 2017, 21:57
by DdB
JoeTinAZ wrote:upgraded to 5.1.24. Running Debian Jessie in VM. Get permission denied as root trying to run autorun.sh on CD. Does work fine in Solaris, Winxp, and Win7. Maybe I don't know the procedure to load it.
If I am in the GUI, and insert the CD, it asks to run it. Then it either says Oops had a problem or can't find program. I assume this should run for Debian Jessie?
Lacking information: What is the host?
Have you ever used Guest Additions before? (Are you familiar with their use?)
Do you mean Additions, when you say "options cd"?

But apart from all the confusion, you are spreading (not intending to, i guess), a quick answer could be:
Jessie is configured to not automatically give root access to the CD, once it is attached to the system. What i do (most of the time) is this:
Verify the CD is mounted, note where (MOUNTPOINT=/media/USERNAME/VBOX...), and execute this:

Code: Select all

sudo bash $MOUNTPOINT/VBoxLinuxAdditions.run
Do not forget to add your preferred user to the vboxsf group after this, or you will have problems to access Shared Folders.

Re: Guest options cd

Posted: 23. Jul 2017, 05:15
by JoeTinAZ
Yes, the VboxLinuxAdditions, and yes, that worked. before, I attached the cd and did su and called autorun.sh. Thank you, this suggestion worked fine.

Re: [NonIssue] Guest options cd

Posted: 25. Jul 2017, 13:27
by frank
Autorun does not properly work in Debian guests, that's a known issue. IIRC Debian mounts CDs with the 'user' option which makes it impossible to execute and binary or script directly from the CD.

So when the medium with the Guest Additions is inserted just start the installer manually as suggested.

Re: [NonIssue] Guest options cd

Posted: 25. Jul 2017, 16:27
by mpack
frank wrote:IIRC Debian mounts CDs with the 'user' option which makes it impossible to execute and binary or script directly from the CD.
Oh. So you can't run the GAs installer manually either? That would explain why I totally failed to install the GAs when I was trying to test something with Debian 9 a couple of weeks ago. The GAs was just a nice to have so I just moved on to the main problem.

Re: [NonIssue] Guest options cd

Posted: 25. Jul 2017, 17:18
by Perryg
Manual is the only way to install the additions in Debian 9. Usually from the command line in an elevated terminal (su/sudo ) as follows:

Code: Select all

sh '/media/cdrom0/VBoxLinuxAdditions-amd64.run' 
d9-guestadd.png
d9-guestadd.png (28.41 KiB) Viewed 1482 times
Note: the version I use is custom but it works the same with the official binaries.

Re: [NonIssue] Guest options cd

Posted: 25. Jul 2017, 17:39
by mpack
Thanks Perry.