cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2887
Views
0
Helpful
5
Replies

Default user and password for the CentOs 7 servers you can add in a topology in the Virl editor in DevNet

WVR
Level 1
Level 1

Hello,

 

I've made a Virl Topology with 6 servers and got it all to work except I have no idea what the default User and Password is for these servers:

Screen Shot 2020-04-09 at 21.34.28.png

PS: Do we have a doc somewhere describing the different options/config details and use cases for above options?

 

Screen Shot 2020-04-09 at 20.14.22.pngScreen Shot 2020-04-09 at 21.40.11.pngScreen Shot 2020-04-09 at 21.33.15.png

1 Accepted Solution

Accepted Solutions

Found the magic answer ;-)

 

I've should have build my topology and then press the button before launching the VIRL setup:

Screen Shot 2020-04-10 at 14.57.02.png

This will add a nice piece of code:

<entry key="config" type="string">#cloud-config
bootcmd:
- ln -s -t /etc/rc.d /etc/rc.local
hostname: server-1
manage_etc_hosts: true
runcmd:
- systemctl start rc-local
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config
- echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config
- service ssh restart
- service sshd restart
users:
- default
- gecos: User configured by VIRL Configuration Engine 0.23.12
lock-passwd: false
name: cisco
plain-text-passwd: cisco
shell: /bin/bash
ssh-authorized-keys:
- VIRL-USER-SSH-PUBLIC-KEY
sudo: ALL=(ALL) ALL
write_files:
- path: /etc/systemd/system/dhclient@.service
content: |
[Unit]
Description=Run dhclient on %i interface
After=network.target
[Service]
Type=oneshot
ExecStart=/sbin/dhclient %i -nw -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease
ExecStart=/sbin/dhclient %i -nw -pf /var/run/dhclient6.%i.pid -6 -S
RemainAfterExit=yes
owner: root:root
permissions: '0644'
- path: /etc/rc.local
owner: root:root
permissions: '0755'
content: |-
#!/bin/sh
ifconfig eth1 down
exit 0
</entry>

View solution in original post

5 Replies 5

Hey, there coffee friend. Does this help? http://virl.cisco.com/defaults.php

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Got another cappuccino to wake up and I've seen now a nice note:

Build Initial Configuration (ANK) MUST be used, otherwise the Linux server will be inaccessible.

 

Screen Shot 2020-04-10 at 10.38.32.png

 

So the magical question is, how to activate this build ?

A quick first google and search on the forum did not help.

 

I did try all the user pass combi's I've could find on the VIRL info page and the DEVNET info page with user and pass.

 

I've build my own topology from scratch, this might be a important detail.

Found the magic answer ;-)

 

I've should have build my topology and then press the button before launching the VIRL setup:

Screen Shot 2020-04-10 at 14.57.02.png

This will add a nice piece of code:

<entry key="config" type="string">#cloud-config
bootcmd:
- ln -s -t /etc/rc.d /etc/rc.local
hostname: server-1
manage_etc_hosts: true
runcmd:
- systemctl start rc-local
- sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config
- echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config
- service ssh restart
- service sshd restart
users:
- default
- gecos: User configured by VIRL Configuration Engine 0.23.12
lock-passwd: false
name: cisco
plain-text-passwd: cisco
shell: /bin/bash
ssh-authorized-keys:
- VIRL-USER-SSH-PUBLIC-KEY
sudo: ALL=(ALL) ALL
write_files:
- path: /etc/systemd/system/dhclient@.service
content: |
[Unit]
Description=Run dhclient on %i interface
After=network.target
[Service]
Type=oneshot
ExecStart=/sbin/dhclient %i -nw -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease
ExecStart=/sbin/dhclient %i -nw -pf /var/run/dhclient6.%i.pid -6 -S
RemainAfterExit=yes
owner: root:root
permissions: '0644'
- path: /etc/rc.local
owner: root:root
permissions: '0755'
content: |-
#!/bin/sh
ifconfig eth1 down
exit 0
</entry>

Awesome buddy, see coffee solves all problems. :)
Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Not all, but it allows to reset the connection and have a fresh look at stuff ;-)