virtualbox: finished driver updates

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2015-03-09 20:52:53 -04:00
parent 275cb37602
commit 6e81ba9fe7
No known key found for this signature in database
GPG Key ID: A519480096146526
2 changed files with 1 additions and 26 deletions

View File

@ -428,31 +428,6 @@ func (d *Driver) Kill() error {
return vbm("controlvm", d.MachineName, "poweroff")
}
func (d *Driver) Upgrade() error {
log.Infof("Stopping machine...")
if err := d.Stop(); err != nil {
return err
}
b2dutils := utils.NewB2dUtils("", "")
isoURL, err := b2dutils.GetLatestBoot2DockerReleaseURL()
if err != nil {
return err
}
log.Infof("Downloading boot2docker...")
if err := b2dutils.DownloadISO(d.storePath, "boot2docker.iso", isoURL); err != nil {
return err
}
log.Infof("Starting machine...")
if err := d.Start(); err != nil {
return err
}
return nil
}
func (d *Driver) GetState() (state.State, error) {
stdout, stderr, err := vbmOutErr("showvminfo", d.MachineName,
"--machinereadable")

View File

@ -588,7 +588,7 @@ func (h *Host) Stop() error {
func (h *Host) Upgrade() error {
// TODO: refactor to provisioner
return fmt.Errorf("upgrade not implemented")
return fmt.Errorf("centralized upgrade coming in the provisioner")
}
func (h *Host) Remove(force bool) error {