Code Monkey home page Code Monkey logo

Comments (20)

shettyg avatar shettyg commented on July 21, 2024

(I am not an expert in Vagrant.)

What is your base OS? I know that it works on a mac with vagrant 1.8.5. I would check your vagrant version.

from ovn-kubernetes.

akiskourtis avatar akiskourtis commented on July 21, 2024

I am on ubuntu 16.04, with vagrant version 1.8.1, maybe it needs the latest, I will update and report back, thanks!

from ovn-kubernetes.

shettyg avatar shettyg commented on July 21, 2024

The fact that vagrant ssh does not work for you makes me believe that something is wrong with the "routes" that vagrant sets up. May be there is some conflict with the IP address that vagrant uses with your host routing table? I would also look at "route -n" to see whether there is conflicts.

from ovn-kubernetes.

shettyg avatar shettyg commented on July 21, 2024

And only do "vagrant up k8s-master" to save on time.

from ovn-kubernetes.

akiskourtis avatar akiskourtis commented on July 21, 2024

vagrant is trying to ssh, though local net 127.0.0.1 I would not see any profound conflict.
I also checked my route -n and do not see any 127.0.0.1 conflicts, I will try some other images also, see if they work.

from ovn-kubernetes.

akiskourtis avatar akiskourtis commented on July 21, 2024

Also when I try to ssh in the VM, the ubuntu/combination does not work, what is the password?

from ovn-kubernetes.

shettyg avatar shettyg commented on July 21, 2024

Doesn't using "vagrant ssh k8s-master" from the vagrant directory not work (I think it uses SSH keys)? I think using ssh via password is disabled. But let me check to make sure by spinning up a vagrant env.

from ovn-kubernetes.

shettyg avatar shettyg commented on July 21, 2024

May be you are hitting this?
https://bugs.launchpad.net/cloud-images/+bug/1569237

from ovn-kubernetes.

akiskourtis avatar akiskourtis commented on July 21, 2024

yes this is probable, however I tried some other images and the ssh never seems to work, it is strange..
I did a tcpdump and they seem to communicate with each other. And on the ubuntu/xenial image it just asks the password.
Shouldn't the ubuntu/ubuntu combination just work?

from ovn-kubernetes.

shettyg avatar shettyg commented on July 21, 2024

Shouldn't the ubuntu/ubuntu combination just work?

No. Nobody apparently knows the password for username "ubuntu". Just to make sure, doesn't "vagrant ssh k8s-master" not work from the vagrant directory?

from ovn-kubernetes.

akiskourtis avatar akiskourtis commented on July 21, 2024

No, it just asks for the unknown password, I also tried the bce13c362bdf6d1518510c23, which someone mentions with no luck.
For you the "vagrant ssh k8s-master" does not ask for a password right?

from ovn-kubernetes.

shettyg avatar shettyg commented on July 21, 2024

For you the "vagrant ssh k8s-master" does not ask for a password right?

No. It does not ask for a password. Did you upgrade your vagrant to atleast 1.8.5?

from ovn-kubernetes.

akiskourtis avatar akiskourtis commented on July 21, 2024

Yes i upgraded to 1.9.1

from ovn-kubernetes.

shettyg avatar shettyg commented on July 21, 2024

Yes i upgraded to 1.9.1

I don't know whether upgrading the virtualbox too will help. I am trying to see if trusty64 works.

from ovn-kubernetes.

akiskourtis avatar akiskourtis commented on July 21, 2024

Ok i somehow, managed to ssh into the VM

  1. changed the image to bento/ubuntu-16.04

  2. add the ssh_key part to the Vagrantfile

config.ssh.private_key_path = "~/.ssh/id_rsa"
config.ssh.forward_agent = true

  1. when you ssh, it again requests a password, with "vagrant" you get in.

However, vagrant up still cannot connect, and so the VM remains emtpy, as it does not execute any script further. And sidenote, although I have told it to use a private key, it still resorts to password method (??)

Would it make sense to run the scripts from inside the VM?

PS: This is with virtualbox 5.1, also upgraded.

from ovn-kubernetes.

shettyg avatar shettyg commented on July 21, 2024

Would it make sense to run the scripts from inside the VM?

It should work.

from ovn-kubernetes.

shettyg avatar shettyg commented on July 21, 2024

Btwn, I am available as "shettyg" in openvswitch IRC channel, if you prefer faster turnarounds.

from ovn-kubernetes.

akiskourtis avatar akiskourtis commented on July 21, 2024

Ok good to know, I will ping you from there, I will do a dry run on a Mac tomorrow, and let you know

Thanks for the support!

from ovn-kubernetes.

shettyg avatar shettyg commented on July 21, 2024

Surprisingly, I was able to "vagrant ssh k8s-master" on a Ubuntu 16.04 host with vagrant 1.9.1

from ovn-kubernetes.

akiskourtis avatar akiskourtis commented on July 21, 2024

I did a dry run on vagrant windows 10 works like a charm, then tried a fresh install on ubuntu 16.04 and it works!

NOTE: Always run vagrant with sudo (!!!)

from ovn-kubernetes.

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.