Can't install guest additions

Discussions about using Linux guests in VirtualBox.
Post Reply
Saludan
Posts: 4
Joined: 21. Jun 2019, 01:11

Can't install guest additions

Post by Saludan »

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
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Can't install guest additions

Post by socratis »

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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Saludan
Posts: 4
Joined: 21. Jun 2019, 01:11

Re: Can't install guest additions

Post by Saludan »

And what is necessary to make it work? It's currently not attached to anything.
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Can't install guest additions

Post by socratis »

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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Saludan
Posts: 4
Joined: 21. Jun 2019, 01:11

Re: Can't install guest additions

Post by Saludan »

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 31 times
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Can't install guest additions

Post by socratis »

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...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Can't install guest additions

Post by mpack »

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.
Saludan
Posts: 4
Joined: 21. Jun 2019, 01:11

Re: Can't install guest additions

Post by Saludan »

mpack wrote:I'd guess: because it's a live CD, therefore read only.
How do I change that?
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Can't install guest additions

Post by socratis »

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.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply