Skip to content
This repository has been archived by the owner on Feb 27, 2018. It is now read-only.

Starting from saved state skips setUpShares #293

Merged
merged 1 commit into from
Oct 22, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion virtualbox/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,14 @@ func (m *Machine) Start() error {
switch m.State {
case driver.Paused:
return vbm("controlvm", m.Name, "resume")
case driver.Poweroff, driver.Saved, driver.Aborted:
case driver.Poweroff, driver.Aborted:
if err := m.setUpShares(); err != nil {
return err
}
fallthrough
case driver.Saved:
return vbm("startvm", m.Name, "--type", "headless")

}
if err := m.Refresh(); err == nil {
if m.State != driver.Running {
Expand Down