mechboxes / mech

Easy command line virtual machines for VMWare
https://mechboxes.github.io/mech/
MIT License
311 stars 49 forks source link

add command line option to disable shared folder #66

Closed mkinney closed 4 years ago

mkinney commented 4 years ago

Resolves #65

Unfortunately, it does not speed up the start.

$ time mech up
Loading metadata for box 'bento/centos-8' (201912.04.0)
Extracting box 'bento/centos-8'...
Added network interface to vmx file
Bringing machine up...
Getting IP address...
Sharing current folder...
VM started on 192.168.2.219

real    0m54.385s
user    0m4.161s
sys 0m0.804s

$ mech destroy -f
Deleting...

$ time mech up --disable-shared-folder
Loading metadata for box 'bento/centos-8' (201912.04.0)
Extracting box 'bento/centos-8'...
Added network interface to vmx file
Bringing machine up...
Getting IP address...
Sharing current folder...
VM started on 192.168.2.219

real    0m54.791s
user    0m4.306s
sys 0m0.827s
$
ColdHeat commented 4 years ago

I'd like to get a better understanding of #65 before merging this in. I do think this should be --disable-shared-folders though.

mkinney commented 4 years ago

Going to close this PR as I have a much larger PR that will encompass this change.