qemu-system-x86_64 -nographic -machine accel=kvm \
-m 4096 -smp 2 -cpu host \
-drive file=iosxrv-k9-demo-6.1.3.qcow2,if=virtio,format=qcow2 \
-netdev tap,id=net0,ifname=tap0,script=no,downscript=no \
-device virtio-net-pci,netdev=net0 \
-serial mon:stdio
Engineers use iosxrv-k9-demo-6.1.3.qcow2 with:
Example Ansible inventory entry:
XRv:
hosts:
xrv-demo:
ansible_host: 192.168.122.100
ansible_network_os: iosxr
ansible_user: cisco
ansible_password: cisco
The image includes ncclient compatible SSH subsystem. Test get-config operations: Iosxrv-k9-demo-6.1.3.qcow2
from ncclient import manager
with manager.connect(host='192.168.122.100', port=830, username='cisco', password='cisco', hostkey_verify=False) as m:
print(m.get_config('running').xml)