KatharaFramework / Kathara-Labs

Collection of Kathará network scenarios and tutorials.
https://www.kathara.org/
GNU General Public License v3.0
114 stars 45 forks source link

Kathara lstart needs to allow sharing of the shared folder on each individual machine in kathara labs #18

Closed Francesco9932 closed 1 year ago

Francesco9932 commented 1 year ago

Hi,

When i lunch a kathara lab (not one in particular) with hyper-v backend engine the kathara lstart need to allow sharing of the shared folder on each individual machine. Once this is done, the lab works correctly without further problems, only that in labs with many machines this behavior is a bit annoying, how i can fix it? Thanks in advance!

For a better understanding of the problem described above I have also added some screenshots of the issue.

Immagine 2023-01-16 142749

Skazza94 commented 1 year ago

Hi @Francesco9932, this is not a Kathará-related problem. Docker Desktop with Hyper-V requires to manually allow the volume sharing for each folder for security reasons. My suggestion is permanently to switch to WSL2, unless Hyper-V is the only way to make things work (e.g. for the datacenter lab).

I'm closing the issue.

Mariano.

tcaiazzi commented 1 year ago

Hi @Francesco9932,

alternatively, you can allow Docker Desktop to access all the C: drive.

You can configure it going into the Settings of Docker Desktop, then open the Resources tab and click to File Sharing. Here you can add all the C: drive or only the directory you use for working with Kathará (e.g your labs directory).

Here a tutorial you can follow.

Cheers, Tommaso