Coder Social home page Coder Social logo

machine-drivers / machine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from docker/machine

25.0 25.0 16.0 19.39 MB

Machine management for a container-centric world

License: Apache License 2.0

Makefile 0.69% Go 93.79% Shell 5.49% Dockerfile 0.04%
containers docker libmachine virtualization vm

machine's People

Contributors

afbjorklund avatar ahmetb avatar albers avatar andrestc avatar askb avatar bamarni avatar bfirsh avatar databus23 avatar dgageot avatar dmp42 avatar ehazlett avatar flavio avatar frapposelli avatar ggiamarchi avatar hairyhenderson avatar ibuildthecloud avatar jeanlaurent avatar jloisel avatar kunalkushwaha avatar mrburrito avatar nathanleclaire avatar pschultz avatar shin- avatar stefanscherer avatar svendowideit avatar tombee avatar twang2218 avatar unkaktus avatar vincentbernat avatar zchee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

machine's Issues

Unable to select Default Switch by name in case of localized Windows

Note: Copied from docker#4429

When trying to select the switch using a localized string, eg. "Przełącznik domyślny" (meaning 'Default Switch') for Polish, the selection will fail with:

Error starting the VM: Error creating the VM. Error with pre-create check: "vswitch "Prze\u0088¥cznik domy\u0098lny" not found"

The problem lies with:

if name == d.VSwitch {

Besides a string, it should desirably also check for the switch by ID, as this value is static:

PS> Get-VMSwitch -Id c08cb7b8-9b3c-408e-8e30-5e16a3aeb444

Related: minishift/minishift#2096

/cc @gbraad

Is there any reason retrieve IP every time in Hyper-V?

Inside Start, we already set IPAddress

func (d *Driver) Start() error {
if err := cmd("Hyper-V\\Start-VM", d.MachineName); err != nil {
return err
}
ip, err := d.waitForIP()
if err != nil {
return err
}
d.IPAddress = ip

But inside GetIP, we retrieve IP instead of use cached value.

func (d *Driver) GetIP() (string, error) {
s, err := d.GetState()
if err != nil {
return "", err
}
if s != state.Running {
return "", drivers.ErrHostIsNotRunning
}
stdout, err := cmdOut("((", "Hyper-V\\Get-VM", d.MachineName, ").networkadapters[0]).ipaddresses[0]")
if err != nil {
return "", err
}
resp := parseLines(stdout)
if len(resp) < 1 {
return "", fmt.Errorf("IP not found")
}
return resp[0], nil
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.