mirror of https://github.com/GNS3/gns3-server
commit
6a7d47ce97
@ -0,0 +1,68 @@
|
||||
{
|
||||
"name": "ParrotOS",
|
||||
"category": "guest",
|
||||
"description": " Parrot is a GNU/Linux distribution based on Debian Testing and designed with Security, Development and Privacy in mind. It includes a full portable laboratory for security and digital forensics experts, but it also includes all you need to develop your own software or protect your privacy while surfing the net.",
|
||||
"vendor_name": "Parrot Project",
|
||||
"vendor_url": "https://parrotsec.org/",
|
||||
"documentation_url": "https://docs.parrotsec.org/doku.php",
|
||||
"product_name": "ParrotOS",
|
||||
"product_url": "https://parrotsec.org/",
|
||||
"registry_version": 3,
|
||||
"status": "stable",
|
||||
"maintainer": "Brent Stewart",
|
||||
"maintainer_email": "brent@stewart.tc",
|
||||
"usage": "Passwords are set during installation.",
|
||||
"symbol": "parrotlogo.png",
|
||||
"qemu": {
|
||||
"adapter_type": "e1000",
|
||||
"adapters": 1,
|
||||
"ram": 2048,
|
||||
"arch": "x86_64",
|
||||
"console_type": "vnc",
|
||||
"kvm": "require"
|
||||
},
|
||||
"images": [
|
||||
{
|
||||
"filename": "Parrot-security-4.6_amd64.iso",
|
||||
"version": "Security Build 4.6",
|
||||
"md5sum": "ead812edc83119e8bcb4ee9daabdc105",
|
||||
"filesize": 3788668928,
|
||||
"download_url": "https://www.parrotsec.org/download-security.php",
|
||||
"direct_download_url": "https://download.parrotsec.org/parrot/iso/4.6/Parrot-security-4.6_amd64.iso"
|
||||
},
|
||||
{
|
||||
"filename": "Parrot-security-3.11_amd64.iso",
|
||||
"version": "Security Build 3.11",
|
||||
"md5sum": "71c94474fb474f682da0844d95f0040b",
|
||||
"filesize": 3788668928,
|
||||
"download_url": "https://www.parrotsec.org/download.fx",
|
||||
"direct_download_url": "https://www.parrotsec.org/download-full.fx"
|
||||
},
|
||||
{
|
||||
"filename": "empty30G.qcow2",
|
||||
"version": "1.0",
|
||||
"md5sum": "3411a599e822f2ac6be560a26405821a",
|
||||
"filesize": 197120,
|
||||
"download_url": "https://sourceforge.net/projects/gns-3/files/Empty%20Qemu%30disk/",
|
||||
"direct_download_url": "http://sourceforge.net/projects/gns-3/files/Empty%20Qemu%20disk/empty30G.qcow2/download"
|
||||
}
|
||||
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"name": "Security Build 4.6",
|
||||
"images": {
|
||||
"hda_disk_image": "empty30G.qcow2",
|
||||
"cdrom_image": "Parrot-security-4.6_amd64.iso"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Security Build 3.11",
|
||||
"images": {
|
||||
"hda_disk_image": "empty30G.qcow2",
|
||||
"cdrom_image": "Parrot-security-3.11_amd64.iso"
|
||||
}
|
||||
}
|
||||
|
||||
]
|
||||
}
|
@ -1,97 +0,0 @@
|
||||
{
|
||||
"name": "LEDE",
|
||||
"category": "router",
|
||||
"description": "LEDE is a highly extensible GNU/Linux distribution for embedded devices (typically wireless routers). Unlike many other distributions for these routers, OpenWrt is built from the ground up to be a full-featured, easily modifiable operating system for your router. In practice, this means that you can have all the features you need with none of the bloat, powered by a Linux kernel that's more recent than most other distributions.",
|
||||
"vendor_name": "LEDE Project",
|
||||
"vendor_url": "https://lede-project.org/",
|
||||
"documentation_url": "http://wiki.openwrt.org/doc/",
|
||||
"product_name": "LEDE",
|
||||
"product_url": "https://lede-project.org/",
|
||||
"registry_version": 3,
|
||||
"status": "stable",
|
||||
"maintainer": "GNS3 Team",
|
||||
"maintainer_email": "developers@gns3.net",
|
||||
"usage": "Ethernet0 is the LAN link, Ethernet1 the WAN link.",
|
||||
"qemu": {
|
||||
"adapter_type": "virtio-net-pci",
|
||||
"adapters": 2,
|
||||
"ram": 64,
|
||||
"arch": "i386",
|
||||
"console_type": "telnet",
|
||||
"kvm": "allow"
|
||||
},
|
||||
"images": [
|
||||
{
|
||||
"filename": "lede-17.01.4-x86-generic-combined-squashfs.img",
|
||||
"version": "17.01.4",
|
||||
"md5sum": "ae5d8d3fcab109565fe337d28e51c4b4",
|
||||
"filesize": 19779546,
|
||||
"download_url": "https://downloads.lede-project.org/releases/17.01.4/targets/x86/generic/",
|
||||
"direct_download_url": "https://downloads.lede-project.org/releases/17.01.4/targets/x86/generic/lede-17.01.4-x86-generic-combined-squashfs.img"
|
||||
},
|
||||
{
|
||||
"filename": "lede-17.01.3-x86-generic-combined-squashfs.img",
|
||||
"version": "17.01.3",
|
||||
"md5sum": "d315fc638160a9aec0966d58828bfccf",
|
||||
"filesize": 19775618,
|
||||
"download_url": "https://downloads.lede-project.org/releases/17.01.3/targets/x86/generic/",
|
||||
"direct_download_url": "https://downloads.lede-project.org/releases/17.01.3/targets/x86/generic/lede-17.01.3-x86-generic-combined-squashfs.img"
|
||||
},
|
||||
{
|
||||
"filename": "lede-17.01.2-x86-generic-combined-squashfs.img",
|
||||
"version": "17.01.2",
|
||||
"md5sum": "a466e493ef12935dad5e0c622b1a7859",
|
||||
"filesize": 19774794,
|
||||
"download_url": "https://downloads.lede-project.org/releases/17.01.2/targets/x86/generic/",
|
||||
"direct_download_url": "https://downloads.lede-project.org/releases/17.01.2/targets/x86/generic/lede-17.01.2-x86-generic-combined-squashfs.img"
|
||||
},
|
||||
{
|
||||
"filename": "lede-17.01.1-x86-generic-combined-squashfs.img",
|
||||
"version": "17.01.1",
|
||||
"md5sum": "b050e734c605a34a429389c752ae7c30",
|
||||
"filesize": 19771166,
|
||||
"download_url": "https://downloads.lede-project.org/releases/17.01.1/targets/x86/generic/",
|
||||
"direct_download_url": "https://downloads.lede-project.org/releases/17.01.1/targets/x86/generic/lede-17.01.1-x86-generic-combined-squashfs.img"
|
||||
},
|
||||
{
|
||||
"filename": "lede-17.01.0-r3205-59508e3-x86-generic-combined-squashfs.img",
|
||||
"version": "17.01.0",
|
||||
"md5sum": "3c5e068d50a377d4e26b548ab1ca7b1e",
|
||||
"filesize": 19755118,
|
||||
"download_url": "https://downloads.lede-project.org/releases/17.01.0/targets/x86/generic/",
|
||||
"direct_download_url": "https://downloads.lede-project.org/releases/17.01.0/targets/x86/generic/lede-17.01.0-r3205-59508e3-x86-generic-combined-squashfs.img"
|
||||
}
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"name": "lede 17.01.4",
|
||||
"images": {
|
||||
"hda_disk_image": "lede-17.01.4-x86-generic-combined-squashfs.img"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "lede 17.01.3",
|
||||
"images": {
|
||||
"hda_disk_image": "lede-17.01.3-x86-generic-combined-squashfs.img"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "lede 17.01.2",
|
||||
"images": {
|
||||
"hda_disk_image": "lede-17.01.2-x86-generic-combined-squashfs.img"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "lede 17.01.1",
|
||||
"images": {
|
||||
"hda_disk_image": "lede-17.01.1-x86-generic-combined-squashfs.img"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "lede 17.01.0",
|
||||
"images": {
|
||||
"hda_disk_image": "lede-17.01.0-r3205-59508e3-x86-generic-combined-squashfs.img"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
{
|
||||
"name": "OpenNAC",
|
||||
"category": "guest",
|
||||
"description": "openNAC is an opensource Network Access Control for corporate LAN / WAN environments. It enables authentication, authorization and audit policy-based all access to network. It supports diferent network vendors like Cisco, Alcatel, 3Com or Extreme Networks, and different clients like PCs with Windows or Linux, Mac,devices like smartphones and tablets. Based on open source components and self-development It is based on industry standards such as FreeRadius, 802.1x, AD, ldap, ...It is very extensible, new features can be incorporated because it is architectured in plugins. Easily integrated with existing systems Last but not least, It provides value added services such as configuration management, network, backup configurations, Network Discovery and Network Monitoring. Download the OVA, then extract the VMDK (tar -xvf FILE.ova), then convert to qcow2 (qemu-img convert -O qcow2 FILE.vmdk FILE.qcow2).",
|
||||
"vendor_name": "Opennactech",
|
||||
"vendor_url": "http://www.opennac.org/opennac/en.html",
|
||||
"documentation_url": "http://www.opennac.org/opennac/en/support.html",
|
||||
"product_name": "OpenNAC",
|
||||
"product_url": "https://opennac.org/",
|
||||
"registry_version": 3,
|
||||
"status": "stable",
|
||||
"maintainer": "Brent Stewart",
|
||||
"maintainer_email": "brent@stewart.tc",
|
||||
"usage": "Passwords are set during installation.",
|
||||
"symbol": "opennac.png",
|
||||
"qemu": {
|
||||
"adapter_type": "e1000",
|
||||
"adapters": 1,
|
||||
"ram": 512,
|
||||
"arch": "x86_64",
|
||||
"console_type": "vnc",
|
||||
"kvm": "require",
|
||||
"options": "-smp 2"
|
||||
},
|
||||
"images": [
|
||||
{
|
||||
"filename": "opennac_3711_img.qcow2",
|
||||
"version": "OpenNAC 3711",
|
||||
"md5sum": "88d6129265860aa58c5306cd7b413aab",
|
||||
"filesize": 3968729088,
|
||||
"download_url": "http://www.opennac.org/opennac/en/download.html",
|
||||
"direct_download_url": "http://sourceforge.net/projects/opennac/files/ova/opennac_3711_img.ova/download"
|
||||
}
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"name": "OpenNAC 3711",
|
||||
"images": {
|
||||
"hda_disk_image": "opennac_3711_img.qcow2"
|
||||
}
|
||||
}
|
||||
|
||||
]
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Copyright (C) 2017 GNS3 Technologies Inc.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from ..qemu_error import QemuError
|
||||
|
||||
import logging
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def get_next_guest_cid(nodes):
|
||||
"""
|
||||
Calculates free guest_id from given nodes
|
||||
|
||||
:param nodes:
|
||||
:raises QemuError when exceeds number
|
||||
:return: integer first free cid
|
||||
"""
|
||||
|
||||
used = set([n.guest_cid for n in nodes])
|
||||
pool = set(range(3, 65535))
|
||||
try:
|
||||
return (pool - used).pop()
|
||||
except KeyError:
|
||||
raise QemuError("Cannot create a new Qemu VM (limit of 65535 guest ID on one host reached)")
|
Loading…
Reference in new issue