Problem description:
Today I re-launched a saved state and noticed that suddenly I was in a windowed mode.
I turned the system off and on again, and, to my surprise, the mouse and keyboard stopped responding in the guest (except things like ctrl key or ctrl+alt+del, which basically bring up host so it's not helpful).
The keyboard works before the system is booted - I am e.g. able to bring up Grub and run the recovery mode.
In the recovery mode, I can access the shell and type commands, but if I try to run failsafe graphics mode then it loads up but again without any ability to use the keyboard or mouse in the guest.
System:
I use virtualbox 5.1.18 and have an Ubuntu 16.04 host. I've been using this host for a week.
Attempted fixes (ideas found on the internet)
1. Multiple reboots of both host and guest
2. Ejecting and reintroducing mouse/keyboard cable - no change
3. I tried inserting guest additions - got the following message:
"Unable to insert the virtual optical disk C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso into the machine ubuntu-ml.
Could not mount the media/drive 'C:\Program Files\Oracle\VirtualBox/VBoxGuestAdditions.iso' (VERR_PDM_MEDIA_LOCKED).
Result Code: E_FAIL (0x80004005)
Component: ConsoleWrap
Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
Callee: IMachine {b2547866-a0a1-4391-8b86-6952d82efaa0}"
Then I read that in such case, I should mount the guest additions iso first, but then I get virtually the same error. I do get a different action though: force unmount. When I choose it, again nothing happens.
Can somebody save me please? Reainstalling and reconfiguring ubuntu, creating secured local repositories with ssh key, creating virtual environments, all this would take me a lot of time, and what if the problem reappears?
EDIT: added the log files and output of the "VBoxManage showvminfo ubuntu-ml --details" command as requested by the user Perryg. Note that I didn't know which log file should I upload, so I zipped the whole folder.
EDIT2: for whatever reason the text files inside of the folder disappeared and are not inside the zip file - I attached them separately
EDIT3: the forum does not permit me to have more than 3 attachmets, so the last one is uploaded to my post below