Quantcast
Channel: VIRL
Viewing all 1811 articles
Browse latest View live

Problem when trying to install xrv9000 image

$
0
0

@phphasuk wrote:

Hi Expert,

I am trying to install xrv9000 image on "Cisco VM image upgrades" page on VIRL software Admin page however I always got the error logs as below. Do you have any suggestion?

{
    "local": {
        "glance_|-iosxrv 9000_|-IOS XRv 9000_|-image_present": {
            "comment": "An exception occurred in this state: Traceback (most recent call last):\n  File \"/usr/lib/python2.7/dist-packages/salt/state.py\", line 1594, in call\n    **cdata['kwargs'])\n  File \"/usr/lib/python2.7/dist-packages/salt/loader.py\", line 1491, in wrapper\n    return f(*args, **kwargs)\n  File \"/var/cache/salt/minion/extmods/states/glance.py\", line 90, in image_present\n    ret['changes'] = __salt__['glance.image_create'](**non_null_arguments)\n  File \"/var/cache/salt/minion/extmods/modules/glance.py\", line 139, in image_create\n    img_path = __salt__['cp.cache_file'](copy_from)\n  File \"/usr/lib/python2.7/dist-packages/salt/modules/cp.py\", line 365, in cache_file\n    result = __context__['cp.fileclient'].cache_file(path, saltenv)\n  File \"/usr/lib/python2.7/dist-packages/salt/fileclient.py\", line 158, in cache_file\n    return self.get_url(path, '', True, saltenv)\n  File \"/usr/lib/python2.7/dist-packages/salt/fileclient.py\", line 543, in get_url\n    return self.get_file(url, dest, makedirs, saltenv)\n  File \"/usr/lib/python2.7/dist-packages/salt/fileclient.py\", line 1066, in get_file\n    data = self.channel.send(load)\n  File \"/usr/lib/python2.7/dist-packages/salt/utils/async.py\", line 73, in wrap\n    ret = self._block_future(ret)\n  File \"/usr/lib/python2.7/dist-packages/salt/utils/async.py\", line 83, in _block_future\n    return future.result()\n  File \"/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py\", line 232, in result\n    raise_exc_info(self._exc_info)\n  File \"/usr/local/lib/python2.7/dist-packages/tornado/gen.py\", line 1014, in run\n    yielded = self.gen.throw(*exc_info)\n  File \"/usr/lib/python2.7/dist-packages/salt/transport/zeromq.py\", line 231, in send\n    ret = yield self._crypted_transfer(load, tries=tries, timeout=timeout)\n  File \"/usr/local/lib/python2.7/dist-packages/tornado/gen.py\", line 1008, in run\n    value = future.result()\n  File \"/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py\", line 232, in result\n    raise_exc_info(self._exc_info)\n  File \"/usr/local/lib/python2.7/dist-packages/tornado/gen.py\", line 1014, in run\n    yielded = self.gen.throw(*exc_info)\n  File \"/usr/lib/python2.7/dist-packages/salt/transport/zeromq.py\", line 199, in _crypted_transfer\n    ret = yield _do_transfer()\n  File \"/usr/local/lib/python2.7/dist-packages/tornado/gen.py\", line 1008, in run\n    value = future.result()\n  File \"/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py\", line 232, in result\n    raise_exc_info(self._exc_info)\n  File \"/usr/local/lib/python2.7/dist-packages/tornado/gen.py\", line 1014, in run\n    yielded = self.gen.throw(*exc_info)\n  File \"/usr/lib/python2.7/dist-packages/salt/transport/zeromq.py\", line 185, in _do_transfer\n    tries=tries,\n  File \"/usr/local/lib/python2.7/dist-packages/tornado/gen.py\", line 1008, in run\n    value = future.result()\n  File \"/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py\", line 232, in result\n    raise_exc_info(self._exc_info)\n  File \"<string>\", line 3, in raise_exc_info\nSaltReqTimeoutError: Message timed out\n", 
            "name": "IOS XRv 9000", 
            "start_time": "12:02:32.684489", 
            "result": false, 
            "duration": 2148951.12, 
            "__run_num__": 2, 
            "changes": {}
        }, 
        "module_|-sync modules_|-saltutil.sync_modules_|-run": {
            "comment": "onlyif execution failed", 
            "result": true, 
            "duration": 11.945, 
            "__run_num__": 0, 
            "start_time": "12:02:32.663349", 
            "skip_watch": true, 
            "changes": {}, 
            "name": "saltutil.sync_modules"
        }, 
        "module_|-sync states_|-saltutil.sync_states_|-run": {
            "comment": "onlyif execution failed", 
            "result": true, 
            "duration": 6.615, 
            "__run_num__": 1, 
            "start_time": "12:02:32.676631", 
            "skip_watch": true, 
            "changes": {}, 
            "name": "saltutil.sync_states"
        }, 
        "module_|-iosxrv 9000 flavor create_|-nova.flavor_create_|-run": {
            "comment": "One or more requisite failed: virl.routervms.iosxrv9000.iosxrv 9000 flavor delete, virl.routervms.iosxrv9000.iosxrv 9000", 
            "__run_num__": 4, 
            "__sls__": "virl.routervms.iosxrv9000", 
            "changes": {}, 
            "result": false
        }, 
        "cmd_|-iosxrv 9000 flavor delete_|-source /usr/local/bin/virl-openrc.sh ;nova flavor-delete \"IOS XRv 9000\"_|-run": {
            "comment": "One or more requisite failed: virl.routervms.iosxrv9000.iosxrv 9000", 
            "__run_num__": 3, 
            "__sls__": "virl.routervms.iosxrv9000", 
            "changes": {}, 
            "result": false
        }
    }
}

Thanks,
Phithakkit

Posts: 2

Participants: 2

Read full topic


Unable to form BGP neighbor

$
0
0

@anderscai wrote:

Hi,

I am having issue with my BGP lab, when I try to setup bgp and there is a error with below:

***Mar 5 06:06:52.794: %BGP-5-NBR_RESET: Neighbor 1.1.0.6 active reset (Peer closed the session)**
***Mar 5 06:06:52.798: %BGP_SESSION-5-ADJCHANGE: neighbor 1.1.0.6 IPv4 Unicast topology base removed from session Peer closed t Transport(tcp) path-mtu-discovery is enabled**

Is there anything I can do to fix this?

Regards
Amders

Posts: 2

Participants: 1

Read full topic

Cant activate VIRL

$
0
0

@ihatelogin wrote:

This is the first time I have installed virl. Let me know if u want me to run any debugs/checks.

Salt status
× Failed to collect current salt contact status: Cisco contact was not established. This may be temporary. Please make sure the VIRL server is connected to the Internet and capable of reaching the configured Cisco master. Also make sure that the minion key provided to you matches your minion ID and domain, and remains valid. Current status is: Minion rejected by master.. Last call home check result was: The minion public key was rejected; please contact support.
Reset keys and ID Check status now
Current status
Status check is failing. It may be temporary and resolve itself after a few minutes, or else should be fixed by resetting the configuration.

Host: us-1.virl.info

DNS
Ping
Port 4505
Port 4506
Connect

Posts: 1

Participants: 1

Read full topic

Retaining Saved image in ASV flash

$
0
0

@amorakinyo wrote:

I need some help please. Can any one in the community please help?

I know there should be a cleaver way of saving images in the ASAV flash, say for example, asdm-741.bin or anyconnect-win-4.2.02075-k9.pkg and still load the topology in another day and still find it in the flash or Disk0.

I don't mind reloading anytime l reload my tpology but l know its not a smart way of working.

I will appreciate your advise.

Thanks

Posts: 2

Participants: 2

Read full topic

VIRL - interface delay

$
0
0

@xyznetworks wrote:

Hi guys. I am working through some simple labs and in one case I have tried to alter the interface delay to manipulate the end result of an EIGRP feasible distance. From the config line I can indeed alter the delay, but the subsequent bandwidth and delay calculation does not change to reflect the change I made. Should I be able to do this in VIRL or is it a limitation?

Dean

Posts: 1

Participants: 1

Read full topic

Using telnet or ssh in windows 10 issue

$
0
0

@camelion wrote:

setup is as from

but still unable to apply ssh or telnet
getting an error - "telnet command must be an executable program"

using virl 1.2.4 on vmware 12 workstation

has anyone had this issue

Posts: 2

Participants: 2

Read full topic

WEb UI broken on Chrome after latest upgrade

Error during building the server after using terraform apply

$
0
0

@mehdisol23 wrote:

I ll get this error halfway through spinning up the server .any helpful comment appreciated .

Error applying plan:
1 error(s) occurred:
* Error running command 'sftp -o 'IdentityFile=~/.ssh/id_rsa' -o 'StrictHostKeyChecking=no' root@147.75.192.63:/var/local/virl/client.ovpn client.ovpn': exit status 255. Output: Warning: Permanently added '147.75.192.63' (ECDSA) to the list of known hosts. no such identity: /root/.ssh/id_rsa: No such file or directory Permission denied (publickey). Couldn't read packet: Connection reset by peer
Terraform does not automatically rollback in the face of errors. Instead, your Terraform state file has been partially updated with any resources that successfully completed. Please address the error above and apply again to incrementally change your infrastructure. root@virl:~/virl_packet#

Posts: 2

Participants: 2

Read full topic


VIRL on AWS

$
0
0

@jbiggs1357 wrote:

Question for the VIRL experts...So I have a WIN10 PC with i7 and 24Gig Ram. I want to increase my capabilities but not at a large expense and don't want to buy a server. Can I deploy VIRL into a service like AWS that I could reach from anywhere. Would appreciate your input.

Thanks

Posts: 6

Participants: 3

Read full topic

Problem NX-OS with Python

$
0
0

@ccw928 wrote:

Hi, I'm tested NX-OS API to making simple Python code.
I used NX-API Developer Sandbox and copied .py script like this,

import requests
import json

"""
Modify these please
"""
url='http://YOURIP/ins'
switchuser='USERID'
switchpassword='PASSWORD'

myheaders={'content-type':'application/json-rpc'}
payload=[
{
"jsonrpc": "2.0",
"method": "cli",
"params": {
"cmd": "conf t",
"version": 1.2
},
"id": 1
}
]
response = requests.post(url,data=json.dumps(payload), headers=myheaders,auth=(switchuser,switchpassword)).json()

and i tried to run in NX-OS in VIRL, it does't work
that said " ImportError: No module named requests "

Posts: 3

Participants: 2

Read full topic

TCL Pasting Problems

$
0
0

@COVirl wrote:

Continuing the discussion from TCL Script pasting issues:

Continuing the discussion from TCL Script pasting issues:

Hello,

I'm experiencing similar behavior as this. However, one step further, this will not work for me pasting into the console nor does it work when pasting into the Telnet session. Please see output below. Help is always appreciated.

Thanks!

Here is the tcl script I'm attempting to paste:
tclsh
foreach X{
150.1.1.1
150.1.2.2}
{ ping $X }

Here are the results I get when either consoled into a router or via telnet:

R7(tcl)#foreach X{
wrong # args: should be "foreach varList list ?varList list ...? command"
R7(tcl)#150.1.1.1
invalid command name "150.1.1.1" ^
% Invalid input detected at '^' marker.

R7(tcl)#150.1.2.2}
invalid command name "150.1.2.2}" ^
% Invalid input detected at '^' marker.

R7(tcl)#{ ping $X }

Posts: 2

Participants: 2

Read full topic

How to Install VIRL on Packet (Box Cutter)

$
0
0

@alejo wrote:

Summary

This post will guide you with steps needed to deploy a cloud instance of VIRL to packet.net without having VIRL already installed. Make sure you have already followed all the pre-requisite steps needed before you attempt to deploy your cloud instance.
For more information please take a look at our announcement thread!

Why use this method

You may or may not be new to VIRL, but you may be looking to keep the initial cost down. Or you may not have hardware powerful enough to run large real world topologies. This method gives you direct access to a powerful server where you can run VIRL (bare-metal) and test large simulations without the need of a local VIRL instance. If you do not already own a VMWare product to run VIRL, and you rather not purchase another application then this method is for you.

Before we begin

You may need to install a couple of applications, but don't worry these are free of charge

  • You will also need a Git client for the initial download of our files. If you are familiar with Git, just clone from the URL provided. If you are not, then I would recommend to download and install SmartGit.

Getting started

See it done!
Locate or download your VIRL license file and it keep it handy. We will need it during the installation.
Make sure your Vagrant plugin is up to date for your appropriate platform by running the following command

For VirtualBox users:
vagrant plugin install virtualbox

For VMWare AppCatalyst users:
vagrant plugin install vmware_appcatalyst

Attention: Please use notepad (Windows) or TextEdit (Mac) when editing configuration files

  1. Log into your packet.net account
  2. Create an API key
  3. Navigate to your local Git repository
    • example: C:\Users\<username>\Documents\GitHub\virl_boxcutter
  4. Copy your VIRL License file (e.g. xxxxxxxx.virl.info.pem) to virl_boxcutter\salt directory in your local Git repository
  5. Rename the copied license file to minion.pem (Windows users: make sure that your Windows explorer settings are set to show file name extensions)
  6. From the virl_boxcutter directory, make a copy of id.conf.orig and rename it id.conf
  7. Open the newly created id.conf file with a text editor
    • Change the id: field to your license ID (the xxxxxxxx part of xxxxxxxx.virl.info.pem)
    • Change the append_domain: field to the ending of your license file. If your license file has en ending of virl30.info.pem, then you would enter virl30.info in the append_domain field. Save the changes and close the file
  8. From the virl_boxcutter directory, make a copy of settings.tf.orig and rename it settings.tf
  9. Open the newly created settings.tf file with a text editor
  10. Open your terminal application or a command prompt if you are on Windows
  11. Change directory to your local Git repository
    • cd Documents\GitHub\virl_boxcutter
    • type: vagrant up

      be patient while the system downloads the VIRL BoxCutter virtual machine, configures and starts it. This will take a few minutes to complete.

  12. Once completed, type the following command to connect to your BoxCutter virtual machine

    • vagrant ssh
    • Windows Users, you will most likely get an output similar to this:

      C:\Users\<user>\Documents\GitHub\virl_boxcutter> vagrant ssh
      'ssh' executable not found in any directories in the %PATH% variable. Is an
      SSH client installed? Try installing Cygwin, MinGW or Git, all of which
      contain an SSH client. Or use your favorite SSH client with the following
      authentication information shown below:
      Host: 127.0.0.1
      Port: 2222
      Username: vagrant
      Private key: C:/Users/<user>/Documents/GitHub/virl_boxcutter/.vagrant/machines/default/virtualbox/private_key
      `

    • Using the Host and Port information above, open PuTTY or you SSH client and connect to your BoxCutter virtual machine. Username and password; vagrant and vagrant

  13. Once logged in to your BoxCutter virtual machine change directory to virl_packet

    • cd virl_packet
  14. (optional) Edit the file password.tf to adjust the passwords to suit your needs. Just stick to numbers and letters for now please!
  15. Review the Disclaimer.txt file for operating rules.
  16. If this is not your first launch of VIRL on Packet, log into to https://app.packet.net and click Manage. You need to ensure that there are no active projects present.
    • If there are projects listed:
      Click on the name of your project listed
      Select "Settings" tab
      Scroll to the bottom of the page and click on the button to 'Delete This Project'
  17. From virl_packet type the following commands:
    • terraform plan . (don't forget the 'dot')
    • terraform apply . (don't forget the 'dot')
      NOTE: The above command initiates the deployment of your VIRL server on Packet. This process typically takes about 30min to complete. Please be patient and wait for the login credentials.

Connecting to your Packet Server:

(See it done -- link coming soon)
Your new bare-metal server is provisioned securely. In order to access your server you will need to establish an OpenVPN tunnel from your computer to your Packet server.

Take a look at this post for more detail on installing OpenVPN

  1. Install the OpenVPN client appropriate for your system.
  2. You will find the file 'client.ovpn' under /home/vagrant/virl_packet
  3. The client.ovpn file can be copied out to your local box usging this command:
    • cp client.ovpn /vagrant/
  4. Move the client.ovpn file to C:\Program Files\OpenVPN\config directory (Windows)
  5. Launch OpenVPN GUI and start the tunnel to connect
  6. Once the tunnel is connected, open a browser to http://172.16.11.254
    • When using VM Maestro don't forget to change the connection profile to point to your Packet server; http://172.16.11.254
  7. If you do not have VM Maestro client installed, you will need to log into UWM and then navigate to VIRL Server > VIRL Software; then select the appropriate VM Maestro version and click "Start installation"
  8. Once complete, you can download the client from http://172.16.11.254/download/

NOTE: Your uwmadmin and guest passwords are in /home/vagrant/virl_packet/passwords.tf file. You may also recall them by running the command terraform show.


Terminating your Packet server

When you're ready to terminate your Packet VIRL server, run the following command from your BoxCutter VM.

  • terraform destroy .
  • exit (closes SSH session to BoxCutter VM)

Next:

  • Log in to the Packet.net portal
  • Review the 'Manage' tab to confirm that the project and server instance has been deleted.
    • If there are projects or servers still listed:
      Click on the name of the project listed
      Under "Servers" tab if a server is listed, click on the "Select Action" dropdown; select "Delete" and click "Apply"
      Select "Settings" tab
      Scroll to the bottom of the page and click on the button to 'Delete This Project'
  • Review the 'SSH Keys' tab and remove any ssh keys that are registered (If any)

Terminating your BoxCutter virtual machine

To terminate your 'virl_boxcutter' VM type the following command from you local command prompt or terminal:

  • 'vagrant halt`

To start up again, repeat the process starting with step 11 under "Getting Started".

Posts: 2

Participants: 1

Read full topic

How to download and install different IOS on the virl

NX-OSv distribute ports into two interface

$
0
0

@christung wrote:

I want to distribute the ports into two interface. How can I do that??

I tried creating a new subtype and putting "Max count of data interfaces=28" while "Number of interfaces per LC=10" for example. I'm hoping it will contain 10 ports in eth3/x and another 10 ports in eth4/x. But from VM Maestro, it still put all ports into ethernet 3/x.

is there a way to do that??

Thanks a lot!!

Posts: 1

Participants: 1

Read full topic

VM Maestro Web Services Problem

$
0
0

@mthornton42 wrote:

The problem ended up being a dumb mistake on my load balancer config.

I've got VIRL running on a remote server, but when I attempt to run VM Maestro on my local machine the web services say "Error calling test service. Connection reset" Testing with curl shows that the connection is successful, but that it gets reset.

A packet capture shows that the TCP session is established, a small amount of data is transferred, then the VIRL server sends a reset.

Edit 2:
I'm not seeing the connection on the server, but on the load balancer in front of it. VNC is functioning OK through the load balancer, despite the VNC server being disabled in UWM.

Edit 3:
Netstat shows that the server is not listening on port 19399, which is the port VM Maestro is attempting to use. Is this the correct port?

Posts: 4

Participants: 2

Read full topic


Failed to contact salt master to check software status: Failed to create salt caller: string indices must be integers, not str

$
0
0

@aadsfljasdfljasdfasd wrote:

Failed to contact salt master to check software status: Failed to create salt caller: string indices must be integers, not str
Please verify salt status.

VIRL software update check is failing intermittently tonight. Salt status is ok. master us-virl-salt.virl.info

NX-OSv Cisco NX-OS reference platform N/A 7.3.0.1

How come my NX-OSv image went missing? I had to manually download the qcow2 image and add it back in uwm

Posts: 3

Participants: 2

Read full topic

Installing new virl in esxi

$
0
0

@res03uhn wrote:

Step "Assign a site-relevant VLAN-ID if the host is configured with a trunk connection to the network.", not sure what the "site-relevant VLAN-ID" means. since they will be in promiscuous mode, can it be any bogus vlan?

Posts: 2

Participants: 2

Read full topic

Terraform apply . on packet error

$
0
0

@surreal1 wrote:

Getting the following error:

packet_device.virl (remote-exec): + salt-call state.sls common.users
packet_device.virl (remote-exec): Minion failed to authenticate with the master, has the minion key been accepted?
Error applying plan:

1 error(s) occurred:

* Script exited with non-zero exit status: 2

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

Any ideas?

Posts: 2

Participants: 2

Read full topic

Access routers across the internet

$
0
0

@GBDickinson wrote:

Hi, I have a nagging issue that hopefully someone else has solved. I installed VIRL in my work's VMWare cluster (they bought it, after all) and I set up a conditional port forward from my home static IP to the VIRL server so in theory I can connect to the console ports across the internet. Everything seems to work, except for the fact that when I right-click the hosts and choose to Telnet to Console, it uses the private IP address in my datacenter instead of the hostname that I defined in the Maestro client.

Is there a way to force it to use the hostname that I defined in the VIRL client? Or barring that, tell the VIRL server about the hostname (it's in my DNS at work, and my hosts file at home) so it will always use that?

Posts: 2

Participants: 2

Read full topic

Trying to open/import OVA file, VMWare Workstation 12 Pro

Viewing all 1811 articles
Browse latest View live