04-09-2020 09:42 PM
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:
PS: Do we have a doc somewhere describing the different options/config details and use cases for above options?
Solved! Go to Solution.
04-10-2020 03:01 PM - edited 04-10-2020 03:03 PM
Found the magic answer ;-)
I've should have build my topology and then press the button before launching the VIRL setup:
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" >> /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>
04-10-2020 12:53 AM
Hey, there coffee friend. Does this help? http://virl.cisco.com/defaults.php
04-10-2020 10:39 AM
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.
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.
04-10-2020 03:01 PM - edited 04-10-2020 03:03 PM
Found the magic answer ;-)
I've should have build my topology and then press the button before launching the VIRL setup:
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" >> /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>
04-11-2020 12:48 AM
04-11-2020 01:01 PM
Not all, but it allows to reset the connection and have a fresh look at stuff ;-)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide