在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:zignig/astralboot开源软件地址:https://github.com/zignig/astralboot开源编程语言:Go 94.7%开源软件介绍:#Astral Boot Simon Kirkby [email protected] 20150304 This repository has been moved to gb format https://getgb.io/ , it’s cool. DescriptionAstralboot is a golang server that provides network services to boot virtual and metal machines from pxe boot. The following services are provided
It can pull its data files out of ipfs, which means that they are downloaded on request and then stored locally. Local file serving also works with local file system folders ( see INSTRUCTIONS for details ) Required for development
WarningAs this server has a naive dhcp server it can be dangerous to run in an office environment. Running this server can interfere with normal network services. Installationassumes a working golang environment. git clone github.com/zignig/astralboot
cd astralboot
gb build
also the ipfs service, which is currently in alpha , is available from http://github.com/ipfs/go-ipfs will need to be installed and running SetupTesting so far has been done on a virtual machine with two network interfaces, one on a home network and the other an isolated VM network. This machine will probably need to have masquerading setup , this is not needed for astral boot , but is for the machines to access the internet. enable forwarding echo 1 > /proc/sys/net/ipv4/ip_forward make it stick edit /etc/sysctl.conf and change net.ipv4.ip_forward = 1 change the firewall /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE The test machines to be bootstrapped have one network interface attached to isolated VM network. The default hashes for booting are included in the git repository , put them into place by running. cp refs.toml.dist refs.toml It is worth noting that this will need to be run as root , dhcp, tftp and http not running on the machine Now you are good to go, run the astralboot binary
Verbosity can be changed by adding -v , -vv and -vvv to the command line. Now comes the fun bit .... Running the serverCreate a virtual machine that is connected to the isolated network that astralboot is serving on and configure it to PXE boot. The boot sequence should happen in this order
Debian will be fairly quick , coreos will take some time as the .gz file is 165 Mb , so it will take some time to download To precache the files into ipfs, run ipfs refs -r HashFromConfigFile and it will download everything Changing the ServicesAs the server boots it will show an implied config , this shows possible entries to the config file to change. Developing boot services, To develop modified boot services it is possible to serve the files from disk rather than ifps Downloading the files can be done with the following ipfs commands In the astralboot folder : ipfs get -o=data “hash from the refs.toml file” If the config has IPFS = false the local file system will be used. Developmentall comments, patches and pull requests welcome TODO
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论