Merge pull request #2849 from frapposelli/fix-mount-fusion

Fix shared folder mount on restart
This commit is contained in:
Jean-Laurent de Morlhon 2016-01-18 09:55:22 +01:00
commit b71873ad2d
1 changed files with 9 additions and 2 deletions

View File

@ -415,9 +415,16 @@ func (d *Driver) Stop() error {
}
func (d *Driver) Restart() error {
_, _, err := vmrun("reset", d.vmxPath(), "nogui")
// Stop VM gracefully
if err := d.Stop(); err != nil {
return err
}
// Start it again and mount shared folder
if err := d.Start(); err != nil {
return err
}
return nil
}
func (d *Driver) Kill() error {
_, _, err := vmrun("stop", d.vmxPath(), "hard nogui")