This commit is contained in:
Mitchell Hashimoto 2014-02-24 08:26:51 -08:00
parent 9a62269116
commit 4576093c17
3 changed files with 32 additions and 33 deletions

View File

@ -1,13 +1,13 @@
package common
import (
"os/exec"
"bytes"
"regexp"
"fmt"
"log"
"strings"
"os/exec"
"regexp"
"runtime"
"strings"
)
// Workstation10Driver is a driver that can run VMware Workstation 10
@ -32,14 +32,13 @@ func (d *Workstation10Driver) Clone(dst, src string) error {
func (d *Workstation10Driver) Verify() error {
if runtime.GOOS != "linux" {
return fmt.Errorf("can't used driver WS 10 not yet supported on: %s", runtime.GOOS)
return fmt.Errorf("WS10 driver is only supported on Linux at the moment. Your OS: %s", runtime.GOOS)
}
if err := d.Workstation9Driver.Verify(); err != nil {
return err
}
//TODO(pmyjavec) there is a better way to find this, how?
//the default will suffice for now.
vmxpath := "/usr/lib/vmware/bin/vmware-vmx"