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

as root to reach gns3 user directory – assuming server mode, even locally

tpl=bookworm
tpl=netbsd92
tpl=obsd69
tpl=dfly621

ls -lhF /data/guests/$tpl/$tpl.qcow2
ls -lhF /data/guests/$tpl/$tpl.img

# remote-mode
ls -alF /root/GNS3/images/QEMU/
dest=/root/GNS3/images/QEMU/$tpl-ready.img

qemu-img convert -f qcow2 -O raw /data/guests/$tpl/$tpl.qcow2 $dest
cp -i /data/guests/$tpl/$tpl.img $dest

Skeleton

    File / New template

manually create a new template
QEMU / Qemu VMs --> New

    buster / netbsd / obsd69 / dfly621
    512 MB / 256 MB / 256 MB / 256 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


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun