Coder Social home page Coder Social logo

Comments (5)

mtrofimm avatar mtrofimm commented on June 11, 2024

I'm testing with -vultr-os-id=160 (buntu 14.04 x64) and --vultr-private-networking=true.

from docker-machine-vultr.

mtrofimm avatar mtrofimm commented on June 11, 2024

one more test:

docker-machine create --driver vultr --vultr-api-key=myAPIKey --vultr-region-id=7 --vultr-plan-id=29 --vultr-ipv6=1 --vultr-private-networking=1 --engine-env DEV=1 testowa5
Running pre-create checks...
(testowa5) Validating Vultr VPS parameters...
(testowa5) getting client
(testowa5) getting client
(testowa5) getting client
Creating machine...
(testowa5) getting client
(testowa5) Creating Vultr VPS...
(testowa5) Using PXE boot
(testowa5) Provisioning RancherOS (stable)
(testowa5) getting client
(testowa5) getting client
(testowa5) Waiting for IP address to become available...
(testowa5) Created Vultr VPS ID: 3323436, Public IP: 185.92.221.191, Private IP: 10.99.0.12
Waiting for machine to be running, this may take a few minutes...
(testowa5) getting client
(testowa5) getting client
(testowa5) getting client
(testowa5) getting client
(testowa5) getting client
(testowa5) getting client
(testowa5) getting client
Machine is running, waiting for SSH to be available...
Detecting operating system of created instance...
Detecting the provisioner...
Provisioning with rancheros...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
(testowa5) getting client
Docker is up and running!
To see how to connect Docker to this machine, run: docker-machine env testowa5
[root@vultr ~]# docker-machine ssh testowa5
(testowa5) getting client
[rancher@testowa5 ~]$ ifconfig eth1
eth1      Link encap:Ethernet  HWaddr 5A:00:00:1E:4E:C6  
          inet6 addr: fe80::5800:ff:fe1e:4ec6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:396 (396.0 B)  TX bytes:1439 (1.4 KiB)

[rancher@testowa5 ~]$ hostname 
testowa5

from docker-machine-vultr.

janeczku avatar janeczku commented on June 11, 2024

Auto-configuration of private network interface eth1 is already implemented. But only for machines that are created with the default RancherOS. For Ubuntu machines you can actually pass a Cloud-init userscript with the --vultr-userdata parameter.
Then you just have to write a bash script that configures the private interface.

Something similar to this (not tested):

#!/bin/sh

cat > /etc/network/interfaces <<EOF
auto eth1
iface eth1 inet static
    address 10.99.0.200
    netmask 255.255.0.0
    mtu 1450
EOF

ifup eth1

Pozdro 😄

from docker-machine-vultr.

mtrofimm avatar mtrofimm commented on June 11, 2024

there is still some issue with autoconfiguration of rancheros. See my second test with default os.

pozdro.

from docker-machine-vultr.

janeczku avatar janeczku commented on June 11, 2024

This has been fixed in https://github.com/janeczku/docker-machine-vultr/releases/tag/v1.0.3.

Auto-configuration of private network interface eth1 is fully working again with RancherOS.

from docker-machine-vultr.

Related Issues (20)

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.