Trouble-shooting the VM Setup for CS
2040
This note assumes you have gone through
the
instructions to set up your VM.
Common Problems and Solutions
- A message saying "Your host does not meet minimum requirements to
run VMware Player with Hyper-V or Device/Credential Guard enabled.
There are several potential fixes, and you may have to use more than one:
- Ensure Hyper-V (the Windows hypervisor) is turned off as
discussed in the message. Only one hypervisor can be running at a
time.
- Update Windows. Sometimes IT will distribute updates but not
require them.
- Disable Linux Subsystem Version 2. There are reports of having to
"completely disable" this to allow VMware to work.
- Uncheck all virtualization-related features in Windows.
- Check for other virtual machines installed on the
system. VirtualBox should be fine - many use both simultaneously - but
BlueStacks and Android Studio may interfere.
- Needing to transfer data from/to the virtual host. There are
many solutions; here are a few:
- Getting an error message such as "no such directory
... /lib" when running programs or the compiler is using the wrong
version. The fix:
- Project | Settings...
- On the General tab, change WorkingDirectory
to
$(WorkspacePath)
and hit the tab key.
- As an aside, note this is the directory that will be searched when
opening files from within a program, so you will want to put any files
at the top level.
- Click on Compiler and edit C++ Compiler Options so it
reads
-g;-O0;-Wall;-std=c++17
then hit the tab key.
- Click OK.
Note that it's important to leave the box after changing each entry,
otherwise your changes will not "stick."