Convert a KVM guest to a GNS3 template

assuming you got GNS3 up and running already

Virtual disk

assuming you got the KVM guest template image ready already

tpl=buster
tpl=netbsd
tpl=obsd69

cd /data/kvm/
ls -lF ~gns3/GNS3/images/QEMU/
ls -lF ~/GNS3/images/QEMU/
qemu-img convert -f qcow2 -O raw $tpl.qcow2 ~/GNS3/images/QEMU/$tpl-ready.img

fortunately it remains sparse

du -sh ~/GNS3/images/QEMU/*.img

and in case you’re in server mode

qemu-img convert -f qcow2 -O raw $tpl.qcow2 ~gns3/GNS3/images/QEMU/$tpl-ready.img
chown -R gns3:gns3 ~gns3/GNS3/images/QEMU/
du -sh ~gns3/GNS3/images/QEMU/*.img

Skeleton

    File / New template
QEMU / Qemu VMs --> New

    buster / netbsd / obsd69
    512 MB
telnet
    IMAGE-ready.img

    Edit

    General / vcups 2
General / telnet auto start console
HDD / disk interface virtio
    Network / adapters 3
Network / type virtio-net-pci

Resources

https://gns3.com/community/featured/how-to-configure-serial-interfac

obsd appliance

https://www.gns3.com/marketplace/appliances/openbsd

https://docs-v1.gns3.com/appliances/openbsd.html

https://github.com/GNS3/gns3-registry/blob/master/appliances/openbsd.gns3a


GUIDES | LECTURES | BENCHMARKS | SMTP HEALTH