This article explains how to copy a customer’s Confd CDB files onto an isolated test VM, restart services, and prevent accidental internet egress from the customer’s Transport VRF.
Files covered: O.cdb, A.cdb, C.cdb (and any additional *.cdb in the same directory).
Risk: A copied database may contain static default routes or NAT/policy that could send traffic to the real internet. Section 5 covers how to isolate INET-Transport-VR (or your customer’s equivalent) before going further. |
Important: Complete this step on the test VM BEFORE loading the customer CDB, while you still have normal access. |
After the customer database is loaded, the admin/versa password, console behavior, and Versa login may follow the customer’s CDB and no longer match your lab credentials. A pre-created Linux user gives you a path back to the OS to fix or roll back files.
sudo useradd -m -s /bin/bash -G versa,sudo,versa_priv labtest
sudo passwd labtest
Path
/opt/versa/confd/var/confd/cdb/
ls -lth *.cdb
Typical files: O.cdb, A.cdb, and C.cdb (sizes and dates vary).
Customer CDBs are often included in techsupport archives. After extraction, locate the same relative Confd CDB path documented in the bundle. Use the same *.cdb set you would use from a live system so the test VM receives a consistent dataset.
scp admin@<source-host>:/var/tmp/*.cdb admin@<test-vm>:/var/tmp/
Compare file sizes or checksums on both ends before proceeding:
ls -lth /var/tmp/*.cdb
md5sum /var/tmp/*.cdb
DEST=/home/admin/cdb-backup-$(date +%Y%m%d-%H%M%S) && mkdir -p "$DEST" && sudo cp -a /opt/versa/confd/var/confd/cdb/*.cdb "$DEST/"
sudo cp /var/tmp/O.cdb /var/tmp/A.cdb /var/tmp/C.cdb /opt/versa/confd/var/confd/cdb/
Verify ownership matches what the Versa software expects (typically root:root):
ls -l /opt/versa/confd/var/confd/cdb/
vsh restart
Wait until vsh and related processes are stable (no repeated crash loops). Use your normal health checks such as vsh status and service logs per your Versa release documentation.
Why this matters: Once services are stable, the customer’s CDB may include a static default route in the Transport VRF that could route lab traffic to the real internet. |
Check for a Default Route
In configuration mode, inspect static routes for the transport routing instance (replace INET-Transport-VR if your customer uses a different VRF name):
Look for any 0.0.0.0/0 (IPv4) or ::/0 (IPv6) static route in the transport instance.
show route routing-instances <>-Transport-VR
If a static default exists, it must be removed.
Example:
delete routing-instances INET-Transport-VR routing-options static route 0.0.0.0/0 <gateway-ip> none tag 0
Note: Replace <gateway-ip> with the actual gateway from the existing route.
Eg: Bad Lab Example
Internet
|
[ Public IP directly on WAN/VNI ]
|
Versa Device
Eg: Recommended Lab Example
Internet
|
Firewall / NAT
|
Private WAN/VNI IP (Versa)
If the VM becomes unstable after loading the customer CDB: