Coder Social home page Coder Social logo

ethernity-cloud / mvp-pox-node Goto Github PK

View Code? Open in Web Editor NEW
245.0 12.0 14.0 167.2 MB

Ethernity Cloud Node

License: GNU Affero General Public License v3.0

Dockerfile 0.11% Shell 21.78% Python 62.00% Makefile 0.07% C 10.08% Roff 5.38% Jinja 0.59%
blockchain linux sgx tee

mvp-pox-node's Introduction

Ethernity NODE

This repository provides requirements and setup instructions to enable Ethernity NODE capabilities on a computing system.

Hardware requirements:

CPU

Lists with SGX feature enabled are maintained by Intel at:

SGX with Intel® ME SGX with Intel® SPS and Intel® ME

BIOS

SGX must be set to ENABLED by the system owner via BIOS.

Compatible Systems

List of compatible systems:

A list of SGX compatible systems that support Intel SGX is maintained here: https://github.com/ayeks/SGX-hardware

Tested systems

We have tested successfully the following hardware: DELL Optiplex 5040

Software requirements:

Currently the following operating systems are suported:

Ubuntu 18.04
Ubuntu 20.04
Ubuntu 22.04

We are planning support for the following operating systems:

Debian 10*
Fedora 30*
CentOS 7*
RHEL 8*

Installation

Automated Installation

Please check the automated process at https://github.com/ethernity-cloud/etny-node-installer.

For Manual installation please continue reading below.

1. Install ansible

$ sudo apt update
$ sudo apt -y install software-properties-common
$ sudo apt-add-repository --yes --update ppa:ansible/ansible
$ sudo apt -y install ansible

2. Clone the repository

$ git clone https://github.com/ethernity-cloud/mvp-pox-node.git

3. Install the kernel with SGX support

$ cd mvp-pox-node
$ sudo ansible-playbook -i localhost, playbook.yml \
  -e "ansible_python_interpreter=/usr/bin/python3"

After the first run of the script, the new kernel(with SGX support) is installed and the following message will be displayed:

ok: [localhost] => {
    "msg": "The kernel has been updated, a reboot is required"
}

Reboot the system as requested.

4. Create config file (please use your own wallets):

$ cd mvp-pox-node
$ cat << EOF > config
ADDRESS=0xf17f52151EbEF6C7334FAD080c5704D77216b732
PRIVATE_KEY=AE6AE8E5CCBFB04590405997EE2D52D2B330726137B875053C36D94E974D162F
RESULT_ADDRESS=0xC5fdf4076b8F3A5357c5E395ab970B5B54098Fef
RESULT_PRIVATE_KEY=0DBBE8E4AE425A6D2687F1A7E3BA17BC98C673636790F1B8AD91193C05875EF1
EOF
$

5. Start the node

$ cd mvp-pox-node
$ sudo ansible-playbook -i localhost, playbook.yml \
  -e "ansible_python_interpreter=/usr/bin/python3"

After the second run of the script the node should be successfully installed and the following message will be seen on the screen:

ok: [localhost] => {
    "msg": "Ethernity NODE installation successful"
}

6. Check if the service is running correctly.

Service status can be seen by running the below command.

systemctl status etny-vagrant.service

7. For Ubuntu 18.04 and 20.04 installations if you'd like to upgrade the virtual machine from Ubuntu 18.04 to 22.04

Please run the commands below

$ cd && cd mvp-pox-node
$ git pull 
$ sudo ansible-playbook -i localhost, playbook.yml \
  -e "ansible_python_interpreter=/usr/bin/python3"

ETNY Node Installer

This installer provides an easy way to automate the installation process of an Ethernity Node as much as possible.

Features:

  • Automates the system update, kernel update (5.0.0-050000-generic for ubuntu 18.04 and 5.13.0-41-generic for ubuntu 20.04) and runs the ansible-playbook installation process
  • Asks the user to generate (using the “ethkey” tool) or to input wallet details from console (node and result)
  • Checks wallet balance for Bergs (continues only if Bergs > 0)
  • Validates wallet for wrong input
  • Prevents the user to continue if the node wallet is the same as the result wallet
  • Restarts the system automatically after the system and kernel is updated

Usage Instructions

1. Clone the repository to the home folder and run it

$ cd && git clone https://github.com/ethernity-cloud/mvp-pox-node.git
$ cd mvp-pox-node
$ ./etny-node-installer.sh

2. Run the script again after system restart

$ cd mvp-pox-node
$ ./etny-node-installer.sh

mvp-pox-node's People

Contributors

alexey-marushchenko avatar apoeana avatar dim3nsi0n32 avatar ethernity-cloud avatar florin-nedelcu avatar iosifpeterfi avatar ldanicel avatar mactus13 avatar odyss3um avatar romank-sb avatar suxoza avatar vyourtaev 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  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  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  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  avatar  avatar  avatar

mvp-pox-node's Issues

Node installation fails while provisioning the VM

While installing a new none the installation crashes or for existing nodes after a ubuntu update the node stops working.

Examples below:
New node installation:
image

Existing node after ubuntu update:
image

Error in step "Deploy the node"

Ubuntu 20.04

I follow the instructions step by step.
Step: Deploy the node
command:
sudo ansible-playbook -i localhost, playbook.yml
-e "ansible_python_interpreter=/usr/bin/python3"

Error:
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "vagrant up --provider=libvirt", "delta": "0:00:02.055002", "end": "2022-06-05 22:48:03.733717", "msg": "non-zero return code", "rc": 1, "start": "2022-06-05 22:48:01.678715", "stderr": "/opt/vagrant/embedded/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require': cannot load such file -- rexml (LoadError)\n\tfrom /opt/vagrant/embedded/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require'\n\tfrom /root/.vagrant.d/gems/2.6.6/gems/vagrant-libvirt-0.9.0/lib/vagrant-libvirt/action/resolve_disk_settings.rb:4:in <top (required)>'\n\tfrom /opt/vagrant/embedded/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require'\n\tfrom /opt/vagrant/embedded/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require'\n\tfrom /root/.vagrant.d/gems/2.6.6/gems/vagrant-libvirt-0.9.0/lib/vagrant-libvirt/action.rb:99:in block (2 levels) in action_up'\n\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/builtin/call.rb:47:in call'\n\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/warden.rb:48:in call'\n\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/builtin/box_check_outdated.rb:92:in call'\n\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/warden.rb:48:in call'\n\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/builtin/config_validate.rb:25:in call'\n\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/warden.rb:48:in call'\n\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/builder.rb:116:in call'\n\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/runner.rb:89:in block in run'\n\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/util/busy.rb:19:in busy'\n\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/runner.rb:89:in run'\n\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/machine.rb:240:in action_raw'\n\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/machine.rb:212:in block in action'\n\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/environment.rb:613:in lock'\n\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/machine.rb:198:in call'\n\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/machine.rb:198:in action'\n\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/batch_action.rb:86:in block (2 levels) in run'", "stderr_lines": ["/opt/vagrant/embedded/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require': cannot load such file -- rexml (LoadError)", "\tfrom /opt/vagrant/embedded/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require'", "\tfrom /root/.vagrant.d/gems/2.6.6/gems/vagrant-libvirt-0.9.0/lib/vagrant-libvirt/action/resolve_disk_settings.rb:4:in <top (required)>'", "\tfrom /opt/vagrant/embedded/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require'", "\tfrom /opt/vagrant/embedded/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require'", "\tfrom /root/.vagrant.d/gems/2.6.6/gems/vagrant-libvirt-0.9.0/lib/vagrant-libvirt/action.rb:99:in block (2 levels) in action_up'", "\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/builtin/call.rb:47:in call'", "\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/warden.rb:48:in call'", "\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/builtin/box_check_outdated.rb:92:in call'", "\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/warden.rb:48:in call'", "\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/builtin/config_validate.rb:25:in call'", "\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/warden.rb:48:in call'", "\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/builder.rb:116:in call'", "\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/runner.rb:89:in block in run'", "\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/util/busy.rb:19:in busy'", "\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/action/runner.rb:89:in run'", "\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/machine.rb:240:in action_raw'", "\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/machine.rb:212:in block in action'", "\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/environment.rb:613:in lock'", "\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/machine.rb:198:in call'", "\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/machine.rb:198:in action'", "\tfrom /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/batch_action.rb:86:in block (2 levels) in run'"], "stdout": "Bringing machine 'etnyvm1' up with 'libvirt' provider...\n==> etnyvm1: Checking if box 'generic/ubuntu1804' version '4.0.2' is up to date...", "stdout_lines": ["Bringing machine 'etnyvm1' up with 'libvirt' provider...", "==> etnyvm1: Checking if box 'generic/ubuntu1804' version '4.0.2' is up to date..."]}

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.