mirror of
https://github.com/GNS3/gns3-registry.git
synced 2025-05-21 10:07:55 +00:00
TinyCore Linux: Support for tc 4.x
This commit is contained in:
parent
5e9f0fcc1d
commit
ccf26c11f3
@ -26,10 +26,18 @@
|
|||||||
{
|
{
|
||||||
"filename": "linux-tinycore-6.4.qcow2",
|
"filename": "linux-tinycore-6.4.qcow2",
|
||||||
"version": "6.4",
|
"version": "6.4",
|
||||||
"md5sum": "bcd99ff8b3a9e7097455dcebe66ba2dd",
|
"md5sum": "786a1c2f2e9db61d0580ed58a37da5dd",
|
||||||
"filesize": 23855104,
|
"filesize": 23920640,
|
||||||
"download_url": "https://sourceforge.net/projects/gns-3/files/Qemu%20Appliances/",
|
"download_url": "https://sourceforge.net/projects/gns-3/files/Qemu%20Appliances/",
|
||||||
"direct_download_url": "http://no.public.repository.yet/linux-tinycore-6.4.qcow2"
|
"direct_download_url": "http://no.public.repository.yet/linux-tinycore-6.4.qcow2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "linux-tinycore-4.7.7.qcow2",
|
||||||
|
"version": "4.7.7",
|
||||||
|
"md5sum": "bb4559be28875500bba2a32d3f75f6d4",
|
||||||
|
"filesize": 26804224,
|
||||||
|
"download_url": "https://sourceforge.net/projects/gns-3/files/Qemu%20Appliances/",
|
||||||
|
"direct_download_url": "http://no.public.repository.yet/linux-tinycore-4.7.7.qcow2"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
@ -39,6 +47,12 @@
|
|||||||
"images": {
|
"images": {
|
||||||
"hda_disk_image": "linux-tinycore-6.4.qcow2"
|
"hda_disk_image": "linux-tinycore-6.4.qcow2"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "4.7.7",
|
||||||
|
"images": {
|
||||||
|
"hda_disk_image": "linux-tinycore-4.7.7.qcow2"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
15
packer/tinycore-linux/README.rst
Normal file
15
packer/tinycore-linux/README.rst
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
Packer for TinyCore GNS3 appliance
|
||||||
|
==================================
|
||||||
|
|
||||||
|
For building a TinyCore V6.4 appliance run:
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
packer build -var-file=tc-6.4.json tinycore-linux.json
|
||||||
|
|
||||||
|
|
||||||
|
Likewise, to build a TinyCore V4.7.7 appliance run:
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
packer build -var-file=tc-4.7.7.json tinycore-linux.json
|
@ -32,6 +32,6 @@ sudo chgrp staff /mnt/sda1/tce
|
|||||||
sudo chmod 775 /mnt/sda1/tce
|
sudo chmod 775 /mnt/sda1/tce
|
||||||
|
|
||||||
# base system modifications
|
# base system modifications
|
||||||
|
echo -e "\nusername 'gns3', password 'gns3'\n" >> /etc/issue
|
||||||
echo 'etc/issue' >> /opt/.filetool.lst
|
echo 'etc/issue' >> /opt/.filetool.lst
|
||||||
echo 'etc/shadow' >> /opt/.filetool.lst
|
echo 'etc/shadow' >> /opt/.filetool.lst
|
||||||
echo -e "\nusername 'gns3', password 'gns3'\n" >> /etc/issue
|
|
||||||
|
@ -9,8 +9,10 @@ rm -rf /usr/local/tce.installed/*
|
|||||||
|
|
||||||
# openssh (optional)
|
# openssh (optional)
|
||||||
tce-load -wi openssh
|
tce-load -wi openssh
|
||||||
echo '/usr/local/etc/init.d/openssh start' >> /opt/bootlocal.sh
|
[ -f /usr/local/etc/ssh/ssh_config.example ] && sudo cp -a /usr/local/etc/ssh/ssh_config.example /usr/local/etc/ssh/ssh_config
|
||||||
|
[ -f /usr/local/etc/ssh/sshd_config.example ] && sudo cp -a /usr/local/etc/ssh/sshd_config.example /usr/local/etc/ssh/sshd_config
|
||||||
echo 'usr/local/etc/ssh' >> /opt/.filetool.lst
|
echo 'usr/local/etc/ssh' >> /opt/.filetool.lst
|
||||||
|
echo '/usr/local/etc/init.d/openssh start' >> /opt/bootlocal.sh
|
||||||
|
|
||||||
tce-load -wi ipv6-`uname -r` iptables iproute2
|
tce-load -wi ipv6-`uname -r` iptables iproute2
|
||||||
tce-load -wi tcpdump
|
tce-load -wi tcpdump
|
||||||
|
@ -5,16 +5,16 @@ set -x
|
|||||||
# Boot configuration
|
# Boot configuration
|
||||||
# Serial interface is secondary console, the vga console remains main console
|
# Serial interface is secondary console, the vga console remains main console
|
||||||
# To change that, exchange the two 'console=' boot parameter
|
# To change that, exchange the two 'console=' boot parameter
|
||||||
sudo sed -i -e '1i serial 0 38400' -e '/append loglevel/ s/$/ console=ttyS0,38400 console=tty0/' /mnt/sda1/boot/extlinux/extlinux.conf
|
sudo sed -i -r -e '1 i serial 0 38400' -e '/label microcore/,/append / s/(append .*)/\1 console=ttyS0,38400 console=tty0/' /mnt/sda1/boot/extlinux/extlinux.conf
|
||||||
|
|
||||||
# /etc/inittab
|
# /etc/inittab
|
||||||
sudo sed -i -e '/tty6/attyS0::respawn:/sbin/getty 38400 ttyS0 xterm' /etc/inittab
|
sudo sed -i -e '/tty6/ a ttyS0::respawn:/sbin/getty 38400 ttyS0 xterm' /etc/inittab
|
||||||
|
|
||||||
# /etc/securetty
|
# /etc/securetty
|
||||||
sudo sed -i -e 's/^# *ttyS0/ttyS0/' /etc/securetty
|
sudo sed -i -e 's/^# *ttyS0/ttyS0/' /etc/securetty
|
||||||
|
|
||||||
# reload initab on startup
|
# reload inittab on startup
|
||||||
sudo sed -i -e '/^\/opt\/bootlocal/ i' -e '/^\/opt\/bootlocal/ i# reload inittab' -e '/^\/opt\/bootlocal/ i kill -HUP 1' -e '/^\/opt\/bootlocal/ i' /opt/bootsync.sh
|
sudo sed -i -e '/^\/opt\/bootlocal/ i' -e '/^\/opt\/bootlocal/ i # reload inittab' -e '/^\/opt\/bootlocal/ i kill -HUP 1' -e '/^\/opt\/bootlocal/ i' /opt/bootsync.sh
|
||||||
|
|
||||||
# add modified files to backup list
|
# add modified files to backup list
|
||||||
echo 'etc/inittab' >> /opt/.filetool.lst
|
echo 'etc/inittab' >> /opt/.filetool.lst
|
||||||
|
4
packer/tinycore-linux/tc-4.7.7.json
Normal file
4
packer/tinycore-linux/tc-4.7.7.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"tc_iso_url": "http://distro.ibiblio.org/tinycorelinux/4.x/x86/archive/4.7.7/Core-4.7.7.iso",
|
||||||
|
"tc_iso_checksum": "f610b20a97801c937ffb791443a32640"
|
||||||
|
}
|
4
packer/tinycore-linux/tc-6.4.json
Normal file
4
packer/tinycore-linux/tc-6.4.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"tc_iso_url": "http://distro.ibiblio.org/tinycorelinux/6.x/x86/release/Core-6.4.iso",
|
||||||
|
"tc_iso_checksum": "c8e04e26de234e5528e6eac8ecb1bdda"
|
||||||
|
}
|
@ -1,28 +1,31 @@
|
|||||||
{
|
{
|
||||||
"builders":
|
"variables": {
|
||||||
[
|
"tc_iso_url": null,
|
||||||
|
"tc_iso_checksum": null
|
||||||
|
},
|
||||||
|
"builders": [
|
||||||
{
|
{
|
||||||
"type": "qemu",
|
"type": "qemu",
|
||||||
"iso_url": "http://distro.ibiblio.org/tinycorelinux/6.x/x86/release/Core-6.4.iso",
|
"iso_url": "{{user `tc_iso_url`}}",
|
||||||
"iso_checksum": "c8e04e26de234e5528e6eac8ecb1bdda",
|
"iso_checksum": "{{user `tc_iso_checksum`}}",
|
||||||
"iso_checksum_type": "md5",
|
"iso_checksum_type": "md5",
|
||||||
"shutdown_command": "sudo poweroff",
|
"shutdown_command": "sudo poweroff",
|
||||||
"format": "qcow2",
|
"format": "qcow2",
|
||||||
"headless": false,
|
"headless": false,
|
||||||
"ssh_username": "gns3",
|
"ssh_username": "gns3",
|
||||||
"ssh_password": "gns3",
|
"ssh_password": "gns3",
|
||||||
"accelerator": "none",
|
"accelerator": "none",
|
||||||
"vm_name": "tinycore-linux",
|
"vm_name": "tinycore-linux",
|
||||||
"disk_interface": "ide",
|
"disk_interface": "ide",
|
||||||
"net_device": "e1000",
|
"disk_size": 50,
|
||||||
"disk_size": 50,
|
"net_device": "e1000",
|
||||||
"boot_wait": "10s",
|
"http_directory": "http",
|
||||||
"http_directory": "http",
|
"boot_wait": "10s",
|
||||||
"boot_command":
|
"boot_command": [
|
||||||
[
|
|
||||||
"mc user=gns3<enter><wait10><wait10><wait10>",
|
"mc user=gns3<enter><wait10><wait10><wait10>",
|
||||||
"sudo passwd gns3<enter>gns3<enter>gns3<enter>",
|
"sudo passwd gns3<enter>gns3<enter>gns3<enter>",
|
||||||
"tce-load -wi openssh<enter><wait10>",
|
"tce-load -wi openssh<enter><wait10>",
|
||||||
|
"cd /usr/local/etc/ssh; [ -f sshd_config.example ] && sudo cp -a sshd_config.example sshd_config; cd<enter>",
|
||||||
"sudo /usr/local/etc/init.d/openssh start<enter>"
|
"sudo /usr/local/etc/init.d/openssh start<enter>"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user