Page 1 of 1

Boot from CD: Install guest additions

Posted: 20. Sep 2020, 20:35
by Plagrö
I have made this:
1. created an image with disk2vhd from my whole win XP -> XP.VDI
2. Created a IDE controller with XP.VDI and HostDVD and VBoxGuestAdditions.iso

When I start this VM, it boots with my DVD. This works, this is waht I want. This is my original Windows XP installation CD.

When it has booted from this cd, I press shift+F10. This way I come into Dos.
I can then choose my windows. As XP.VDI only contains one windows, I only can choose "1. Windows". So I choose "1".
Then I have to type in my Admin password. This is "", because it has no password.
After, I come into Dos: c:\Windows.

Now I want to install the VBoxGuestAdditions.
To do this I want to change into "C:\Program files\Oracle\VirtualBox".
So I type in "cd ..".
This way I come into c: (This works).
Then I type in "cd "Program files".
Output: "You do not have the rigths."

Questions?
1. Why do I not have the rights?
2. What can I do to get the rights?
3. If this is the wrong way, to install the guest additions in this from CD booted VM, what would be the right way?

I need "guest additions" because I need access to a folder via "shared folders".

Would appreciate some help. Thank you.

Re: Boot from CD: Install guest additions

Posted: 20. Sep 2020, 23:22
by scottgus1
Plagrö wrote:Then I type in "cd "Program files".
Output: "You do not have the rigths."

Questions?
1. Why do I not have the rights?
2. What can I do to get the rights?
What happens in the guest stays in the guest.

In other words, permissions inside the guest OS aren't controlled by Virtualbox, just as it wouldn't be controlled by Dell or HP, and is beyond the scope of the Virtualbox forum.
Plagrö wrote:3. If this is the wrong way, to install the guest additions in this from CD booted VM, what would be the right way?
The only way Virtualbox supports to install Guest Additions is to mount the Guest Additions ISO and run the installer. Virtualbox provides a way to mount the ISO found on the host OS in the guest's CD drive through the normal method, see the Virtualbox manual.

You cannot issue commands inside the guest OS to order Virtualbox on the host to mount the host copy of the GAs ISO in the guest CD drive. You can only do this from the host OS..

If you have the ISO inside the guest OS already, you must provide an ISO mounter within the guest OS to virtually mount the ISO as a virtual CD drive inside the guest OS. XP does not contain an ISO mounter, and neither does Virtualbox.

It is somewhat unclear whether you are doing this n the host or the guest:
Plagrö wrote:After, I come into Dos: c:\Windows.....

Re: Boot from CD: Install guest additions

Posted: 21. Sep 2020, 11:55
by Martin
You need to install the guest additions from inside the running XP guest, not from the command line of a recovery boot from the installation CD.
If you boot into the recovery mode you have the Windows running from the CD, not the installed Windows from your VHD.

Re: Boot from CD: Install guest additions

Posted: 21. Sep 2020, 18:34
by Plagrö
The only way Virtualbox supports to install Guest Additions is to mount the Guest Additions ISO and run the installer.
Thank you.
This is the Guest Additions ISO in my VM:
WinXP Additions.png
WinXP Additions.png (20.09 KiB) Viewed 1137 times
Output: unknown command

I guess, this is because I have not the right "execute" (see in the picture.)
... permissions inside the guest OS aren't controlled by Virtualbox, just as it wouldn't be controlled by Dell or HP, and is beyond the scope of the Virtualbox forum.
But "F:VBoxWindowsAdditions.exe" is no more in the guest OS. It is part of the VirtualBox iso.

So what can I do, that I can start "F:VBoxWindowsAdditions.exe"?

Re: Boot from CD: Install guest additions

Posted: 21. Sep 2020, 19:27
by Smackey's dad
You can download the Guest Additions from within the Guest (assuming you configured guest network to be able to access the internet) to any folder location in your guest OS and run it. If you are not able to do that, its a problem with the Guest - it's no different from downloading any other application and running it on your guest. Windows will mount an iso as a Virtual Drive or you may extract that outside of the environment and copy it over in any way suitable.