Can't install guest additions

Discussions about using Linux guests in VirtualBox.

Can't install guest additions

Postby Saludan » 21. Jun 2019, 01:17

Hello, I have been trying to install guest additions for a long time now and I can't get it to work. When I click on Devices->Insert guest additions CD image I get this error:
Unable to insert the virtual optical disk C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso into the machine Ubuntu. Could not mount the media/drive 'C:\Program Files\Oracle\VirtualBocvVBocGuestAdditions.iso' (VERR_PDM_MEDIA_LOCKED).

Can someone help me through the steps? Idealy if you have teamspeak or discord we can talk there so it's faster. Thanks
Saludan
 
Posts: 4
Joined: 21. Jun 2019, 01:11

Re: Can't install guest additions

Postby socratis » 21. Jun 2019, 02:11

Saludan wrote:I have been trying to install guest additions for a long time now
But you didn't search for that error code, VERR_PDM_MEDIA_LOCKED, at all did you?

Go to the menu File » Virtual Media Manager » Optical Disks. Find "VBoxGuestAdditions.iso". Make sure the Properties button in the toolbar is enabled. At the bottom part look at the Information, it says where it's attached. From the toolbar click on Release/Remove as necessary.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 26128
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: Can't install guest additions

Postby Saludan » 22. Jun 2019, 03:54

And what is necessary to make it work? It's currently not attached to anything.
Saludan
 
Posts: 4
Joined: 21. Jun 2019, 01:11

Re: Can't install guest additions

Postby socratis » 22. Jun 2019, 14:29

I would like to see the "recipe" of the VM, the ".vbox" file:
  1. Right-click on the VM in the VirtualBox Manager. Select "Show in Explorer".
  2. ZIP the selected ".vbox" file and attach it to your response.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 26128
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: Can't install guest additions

Postby Saludan » 23. Jun 2019, 03:46

I also can't shut the VM down otherwise it would delete everything so I have to save the current state all the time. How do I change that?
Attachments
Ubuntu.rar
(1.17 KiB) Downloaded 14 times
Saludan
 
Posts: 4
Joined: 21. Jun 2019, 01:11

Re: Can't install guest additions

Postby socratis » 23. Jun 2019, 11:18

Saludan wrote:[sic: VBoxGuestAdditions.iso] It's currently not attached to anything.
Then remove it altogether from the Media Manager » Optical Disks.

<ExtraDataItem name="GUI/FirstRun" value="yes"/>
That's one thing that I haven't seen for a long time, if ever. That tells me that you haven't even started the VM, not even once. That value is set *only* when you create a new VM, but you've never actually booted it! Can you explain to me why is that?

Saludan wrote:I also can't shut the VM down otherwise it would delete everything so I have to save the current state all the time.
What??? When you close the VM's window from the host, you are presented with the following dialog:

Image

So, why is it exactly that you can't shut the VM down (Power off the machine) and you *have to* save the current state? Something is not right here...
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 26128
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: Can't install guest additions

Postby mpack » 23. Jun 2019, 12:32

socratis wrote:So, why is it exactly that you can't shut the VM down (Power off the machine) and you *have to* save the current state? Something is not right here...

I'd guess: because it's a live CD, therefore read only.
mpack
Site Moderator
 
Posts: 29846
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Can't install guest additions

Postby Saludan » 24. Jun 2019, 01:29

mpack wrote:I'd guess: because it's a live CD, therefore read only.

How do I change that?
Saludan
 
Posts: 4
Joined: 21. Jun 2019, 01:11

Re: Can't install guest additions

Postby socratis » 24. Jun 2019, 01:35

Did you ever install the guest, or you simply decided to run in Live mode? You got to actually install the guest.

Power off the VM. If the ISO that you have is still there, leave it. Boot the VM and choose to install the OS in the VM.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 26128
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5


Return to Linux Guests

Who is online

Users browsing this forum: No registered users and 9 guests