Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

network configuration for a testnode #8

Open
rubo77 opened this issue Jan 20, 2015 · 1 comment
Open

network configuration for a testnode #8

rubo77 opened this issue Jan 20, 2015 · 1 comment
Assignees

Comments

@rubo77
Copy link
Contributor

rubo77 commented Jan 20, 2015

Please someone add the network configuration that would be needed on a node inside the ffgc network at https://github.com/rubo77/ffnord-example/blob/testnodes/bootstrap-testnode.sh

@rubo77
Copy link
Contributor Author

rubo77 commented Jul 1, 2015

I found some hints how to do it:
https://forum.freifunk.net/t/x86-virtualbox-vdi-image/5494/16

  # create a node vagrant box and enter http://192.168.1.1 to configure it:
  # create a node hostname gc-node with mac: 08:00:27:e7:4a:b3, add the password: vagrant for root
  # create a vagrant box from the virtualbox with:
  # #vagrant package --base ffgc-node --output ./gc-node.box
  # #vagrant box add ffgc-node node-image/gc-node.box 

  config.vm.box = "node-image/gc-node.box"

  config.vm.provider "virtualbox" do |vb|
    # Don't boot with headless mode
    vb.gui = true

    # Use VBoxManage to customize the VM. For example to change memory:
    vb.customize ["modifyvm", :id, "--memory", "64"]
  end
  config.ssh.username = 'root'
  config.ssh.password = 'vagrant'
  config.ssh.insert_key = 'true'
  (0..9).each do |i|
        config.vm.define "gc-node0#{i}" do |node|
            node.vm.hostname = "gc-node0#{i}"
            node.vm.network "private_network", ip: "10.112.222.#{i+1}", netmask: "255.255.0.0"
            # this doesn't work jet:
            #node.vm.provision :ash, path: "bootstrap-node.sh", args: "node0#{i}"
            #see http://stackoverflow.com/questions/31157899/provision-with-vagrant-on-a-box-that-uses-bin-ash
        end
  end

@rubo77 rubo77 assigned do9xe and unassigned sargon Jul 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants