CentOS Guest Additions CD Image

Discussions about using Linux guests in VirtualBox.
Post Reply
Nick9D
Posts: 5
Joined: 29. Apr 2016, 00:24

CentOS Guest Additions CD Image

Post by Nick9D »

I'm hitting a wall when trying to install the 'Guest Additions CD Image' to CentOS 7 and CentOS 6.7. I've tried both versions with no luck.

Here's what I've done with both versions:
1) I download the minimal ISO for CentOS
2) Create a new VM and install CentOS
3) yum install -y kernel-dev gcc
4) From the Devices Menu -> Insert Guest Additions CD Image...

At this point I don't get any kind of popup about mounting the CD image. I look under /mnt and /media but I don't see the guest additions CD.
What am I missing? Where would I find this mount point?

I think the CD is "Inserted" because when I look in the VM settings -> storage, I see under "Controller: IDE" there is the VBoxGuestAdditions.iso has been added but I have no idea where it mounts it.

Thanks for any help.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: CentOS Guest Additions CD Image

Post by Perryg »

Is this a minimal install and does it have a desktop manager?
If nothing else you simply need to manually mount the CD and then run it.
Nick9D
Posts: 5
Joined: 29. Apr 2016, 00:24

Re: CentOS Guest Additions CD Image

Post by Nick9D »

Perryg wrote:Is this a minimal install and does it have a desktop manager?
Yes this is the minimal install. I didn't install a desktop manager.
Perryg wrote:If nothing else you simply need to manually mount the CD and then run it.
What would that mount command look like? I don't know what the source would be.
Nick9D
Posts: 5
Joined: 29. Apr 2016, 00:24

Re: CentOS Guest Additions CD Image

Post by Nick9D »

I found mnt /dev/dvd /mnt worked
I can see the files in there so I'll try running them and update here.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: CentOS Guest Additions CD Image

Post by Perryg »

Well not sure what you hope to gain installing the guest additions. Without X the only thing that will work is shared folders but the install will need to have the --nox11 at the end to avoid issues since you do not have X.

Example = *.run --nox11
Nick9D
Posts: 5
Joined: 29. Apr 2016, 00:24

Re: CentOS Guest Additions CD Image

Post by Nick9D »

I'm working to setup a Vagrant base box. There's no need for X but I need shared folders.
I got the add on CD mounted by following this -> mount -t iso9660 /dev/cdrom /mnt

This worked for CentOS 7. For CentOS 6.7 I have to do mount -t iso9660 /dev/dvd /mnt
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: CentOS Guest Additions CD Image

Post by Perryg »

(a) we don't support the use of vagrant and (b) if what I think you are doing is correct we do not support nested virtualization either.
Nick9D
Posts: 5
Joined: 29. Apr 2016, 00:24

Re: CentOS Guest Additions CD Image

Post by Nick9D »

Perryg wrote:(a) we don't support the use of vagrant and (b) if what I think you are doing is correct we do not support nested virtualization either.
No worries on Vagrant. It's something I'm playing with and part of the steps is to install the guest additions.
I'm not nesting VM's. I'm testing with 2 separate VM's, CentOS 6 and CentOS 7.

Thanks for the help!
Post Reply