Giter Club home page Giter Club logo

gcp-gns3server's Introduction

gcp-gns3server's People

Contributors

mweisel avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

Forkers

paketb0te

gcp-gns3server's Issues

Question: setup VirtualBox on server side

Hi,

Great repository and tutorial on your blog. I have a problem. I would like to use VirtualBox VMs on the same GCP machine and to use VirtualBox VMs remotely on my GNS3 GUI. I followed https://docs.gns3.com/1f6uXq05vukccKdMCHhdki5MXFhV8vcwuGwiRvXMQvM0/index.html to modify /etc/gns3/gns3_server.conf installed through your playbook. I added, for example:

vboxmanage_path = /usr/bin/VboxManage
vbox_user = root

Issue was firstly detected with GNS3 GUI. It didn't list the VMs under remote server when I tried to add VirtualBox VMs in Preferences. Then I started to debug gns3server API myself to see where the problem is.

Indeed, executing curl -X GET -H 'User-Agent: Python/3.6 aiohttp/2.3.10' -v -i 'http://loca lhost:3080/v2/compute/virtualbox/vms' on server node locally returns an empty JSON array []. However, log file (path /var/log/gns3/gns3.log) has these lines:

2019-02-23 13:01:05 INFO __init__.py:112 Executing VBoxManage with command: /usr/bin/VBoxManage --nologo list vms
2019-02-23 13:01:05 INFO helpers.py:534 127.0.0.1 [23/Feb/2019:13:01:05 +0000] "GET /v2/compute/virtualbox/vms HTTP
/1.1" 200 197 "-" "Python/3.6 aiohttp/2.3.10"

(root, my user and gns3 are added to vboxusers)

I tried different combinations of the listed shell command under my user logged from GCP (login based on email), root user and gns3. I have also added gns3 to sudoers, but I needed to set new password. From executing command in shell everything seems to be ok:

$ sudo vboxmanage list vms
"alpine" {ef848483-ad64-42ca-8ee0-587b8ce5f24a}
$ sudo su - root
$ sudo vboxmanage list vms
"alpine" {ef848483-ad64-42ca-8ee0-587b8ce5f24a}
$ sudo su - gns3
$ sudo vboxmanage list vms
"alpine" {ef848483-ad64-42ca-8ee0-587b8ce5f24a}

Maybe my configurations are bad and I would like to kindly ask you to evaluate my question. Another option is bug in gns3server so I created issue on their GitHub.

Best regards
JB

Task [dynamips : get and install dependencies] fails since apt-utils is not installed

The task dynamips : get and install dependencies fails since apt-utils package is not installed

gns3_version: 2.2.14

TASK [dynamips : get and install dependencies] ***************************************************************************************************************************************************************************************************************************************************************************************
fatal: [34.83.170.245]: FAILED! => {"cache_update_time": 1601551007, "cache_updated": false, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"      install 'libc6-dev-i386' 'gcc-multilib' 'libelf-dev:i386' 'libelf-dev' 'libpcap0.8-dev:i386' 'libpcap0.
8-dev' 'cmake' 'git'' failed: debconf: delaying package configuration, since apt-utils is not installed
E: Could not configure 'libc6:i386'. 

error-log-formatted.txt

"libvirt-python requires Python 3.x to build" Error

I am getting the following error. My configurations are all very close to the defaults.
The GNS3 VM is "ubuntu-minimal-1804-lts", the default.

TASK [get and install dependencies for virt_net ansible module] **********************************************************************************************
fatal: [35.189.7.185]: FAILED! => {"changed": false, "cmd": ["/usr/bin/pip2", "install", "libvirt-python", "lxml"], "msg": "stdout: Collecting libvirt-python\n Using cached https://files.pythonhosted.org/packages/cb/6e/72e1b6db7089068d3ef145e7af76bb9ffd94d20f3ed88e2ed66d6e0e4f8f/libvirt-python-6.0.0.tar.gz\n Complete output from command python setup.py egg_info:\n libvirt-python requires Python 3.x to build\n \n ----------------------------------------\n\n:stderr: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-SH0JGc/libvirt-python/\n"}

As a work-around I have tried to install python-libvirt via apt-get on the GNS3 VM:
sudo apt-get install python-libvirt

Then in 'tasks/libvirt.yml' file I have commented out libvirt-python package installation
Then re-running the playbook completes.

Will find out soon if it works.

LibVirt issue

I'm having this issue when i run the ansible playbook, it gives me this output error when installing the virt_net dependencies, can someone help me?

TASK [add gns3 user to libvirt system group] ***************************************************************************************************************************
ok: [35.229.93.65]
TASK [get and install dependencies for virt_net ansible module] ********************************************************************************************************
fatal: [35.229.93.65]: FAILED! => {"changed": false, "cmd": ["/usr/bin/pip2", "install", "libvirt-python", "lxml"], "msg": "stdout: Collecting libvirt-python\n Using c
ached https://files.pythonhosted.org/packages/cb/6e/72e1b6db7089068d3ef145e7af76bb9ffd94d20f3ed88e2ed66d6e0e4f8f/libvirt-python-6.0.0.tar.gz\n Complete output from c
ommand python setup.py egg_info:\n libvirt-python requires Python 3.x to build\n \n ----------------------------------------\n\n:stderr: Command "python setup
.py egg_info" failed with error code 1 in /tmp/pip-build-zzz6L6/libvirt-python/\n"}
PLAY RECAP *************************************************************************************************************************************************************
35.229.93.65 : ok=40 changed=2 unreachable=0 failed=1 skipped=12 rescued=0 ignored=0
localhost : ok=8 changed=0 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0
Playbook run took 0 days, 0 hours, 0 minutes, 59 seconds

Thanks,

conflict with openvpn tun0

I was using open vpn to dial into my gcp gns3 server. I had roled up a new server as per the latest guide using wireguard. Surprisingly the open vpn link still came up. I had to disable open vpn , but the handshakes were through but , ping failed through wireguard.

Then i had to put down the tun0 interface in the server for my link to come up. Any suggestions ?

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.