From 6c5020aa43e0f88e9164c6d5b0556e6cd575de19 Mon Sep 17 00:00:00 2001 From: NIWA Hideyuki Date: Wed, 30 Mar 2016 14:51:44 +0900 Subject: [PATCH] Change of document --- README.md | 29 ++++++++++++++++++---------- src/INSTALL | 52 +------------------------------------------------- src/NEWS | 5 +++++ src/README | 29 ++++++++++++++++++---------- src/fulcon.spec | 2 ++ src/subcmd/net-add | 2 ++ src/subcmd/net-nic-add | 4 ++-- 7 files changed, 50 insertions(+), 73 deletions(-) diff --git a/README.md b/README.md index ee9a4b0..d9caf33 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,25 @@ Fulcon / Slot-OS Platform 0.3 Copyright (C) 2015-2016 NIWA Hideyuki Apache License Version 2.0 -`Fulcon/Slot-OS` is the system container platform. - -Slot-OS divides the HOST machine into two or more software partitions (slot). Each partition can be operated like another machine of the same composition. -- Slot is a virtual partition divided with software. -- CPU%, a number of CPU, MEMORY, and virtual NIC of each slot can be set dynamically in each slot. -- The image of OS of Slot is generated from HOST OS. Download is unnecessary. - -Fulcon/ Root of the Slot-OS container has a strong root authority, and the same operation as root of HOST is possible. - -Fulcon can handle CentOS 7 , Ubuntu 15.04, Fedora 23 +## What is Fulcon/Slot-OS? + +- Slot-OS divides the HOST machine into two or more software partitions (slot). +- Each slot can be operated like another machine of the same composition. +- Root of the Fulcon/Slot-OS container has a strong root authority, and the same operation as root of HOST is possible. +- The slot can dynamically compose the network. (SDN function) + +## Function of Fulcon/Slot-OS +- Function to divide machine into two or more slots +- Function to generate image for slot from rootfs of HOST +- Dynamic addition and deletion (SDN) function of two or more Internet Protocol addresses +- Allocation of resource of each slot (CPU%, number of CPU, and memory size) and dynamic modification function +- Console function of slot +- Listing function of the entire slot +- Suspension (temporary stop) and resume of slot +- Automatic update-function of two or more slots +- High-speed backup function + +Fulcon can handle CentOS 7, Ubuntu 15.04, Fedora 23 ### Install pacage diff --git a/src/INSTALL b/src/INSTALL index a7b8ac2..a453982 100644 --- a/src/INSTALL +++ b/src/INSTALL @@ -1,57 +1,7 @@ Installation ============= -1. Building: - -ubuntu - -$ sudo apt-get install docker.io -$ sudo apt-get install python-ipy -$ sudo apt-get install bridge-utils - -$ tar xzf fulcon.tgz -$ cd fulcon -$ sudo make install - -CentOS 7 - -$ sudo yum install docker-io -$ sudo yum install python-IPy -$ sudo yum install bridge-utils - -$ tar xzf fulcon.tgz -$ cd fulcon -$ sudo make install - -2. Setup: - -1) The image of CentOS 7, Ubuntu15.04 and Ubuntu15.10 is prepared. - -$ sudo fulcon setup centos7 -$ sudo fulcon setup ubuntu1504 -$ sudo fulcon setup ubuntu1510 - -It takes the minute to several ten completion. -It only has to execute only the kind of the image to be used. -This operation do only first once. - -The image is builded by using Dockerfile. -If it does not go well.images are generated with following Dockerfile. - /var/lib/fulcon/driver/dockerfile/centos7/Dockerfile - /var/lib/fulcon/driver/dockerfile/ubuntu1504/Dockerfile - /var/lib/fulcon/driver/dockerfile/ubuntu1510/Dockerfile -It must be builded "fulcon/centos7", "fulcon/ubuntu1504" and "fulcon/ubuntu1510" - -2) The image of default is set. - -$ sudo fulcon set-default-image fulcon/centos7 -or -$ sudo fulcon set-default-image fulcon/ubuntu1504 -or -$ sudo fulcon set-default-image fulcon/ubuntu1510 - -fulcon/centos7 is set in the following examples. - +Please refer to README. Let's enjoy. diff --git a/src/NEWS b/src/NEWS index 4eadaf4..3daa834 100644 --- a/src/NEWS +++ b/src/NEWS @@ -1,3 +1,8 @@ 2016 Jan21 release 0.1 : - First release. +2016 Feb29 release 0.2 : +- fulcon platform +2016 Mar30 release 0.3 : +- slot-os platform + diff --git a/src/README b/src/README index ee9a4b0..d9caf33 100644 --- a/src/README +++ b/src/README @@ -1,16 +1,25 @@ Fulcon / Slot-OS Platform 0.3 Copyright (C) 2015-2016 NIWA Hideyuki Apache License Version 2.0 -`Fulcon/Slot-OS` is the system container platform. - -Slot-OS divides the HOST machine into two or more software partitions (slot). Each partition can be operated like another machine of the same composition. -- Slot is a virtual partition divided with software. -- CPU%, a number of CPU, MEMORY, and virtual NIC of each slot can be set dynamically in each slot. -- The image of OS of Slot is generated from HOST OS. Download is unnecessary. - -Fulcon/ Root of the Slot-OS container has a strong root authority, and the same operation as root of HOST is possible. - -Fulcon can handle CentOS 7 , Ubuntu 15.04, Fedora 23 +## What is Fulcon/Slot-OS? + +- Slot-OS divides the HOST machine into two or more software partitions (slot). +- Each slot can be operated like another machine of the same composition. +- Root of the Fulcon/Slot-OS container has a strong root authority, and the same operation as root of HOST is possible. +- The slot can dynamically compose the network. (SDN function) + +## Function of Fulcon/Slot-OS +- Function to divide machine into two or more slots +- Function to generate image for slot from rootfs of HOST +- Dynamic addition and deletion (SDN) function of two or more Internet Protocol addresses +- Allocation of resource of each slot (CPU%, number of CPU, and memory size) and dynamic modification function +- Console function of slot +- Listing function of the entire slot +- Suspension (temporary stop) and resume of slot +- Automatic update-function of two or more slots +- High-speed backup function + +Fulcon can handle CentOS 7, Ubuntu 15.04, Fedora 23 ### Install pacage diff --git a/src/fulcon.spec b/src/fulcon.spec index fd581cd..7e037fb 100644 --- a/src/fulcon.spec +++ b/src/fulcon.spec @@ -37,6 +37,8 @@ make install libdir=%{_prefix}/lib DESTDIR=$RPM_BUILD_ROOT %{_localstatedir}/lib/fulcon %changelog +* Wed Mar 30 2016 NIWA Hideyuki +- New release 0.3 * Mon Feb 29 2016 NIWA Hideyuki - New release 0.2 * Thu Jan 14 2016 NIWA Hideyuki diff --git a/src/subcmd/net-add b/src/subcmd/net-add index 9cd648f..1cec13e 100755 --- a/src/subcmd/net-add +++ b/src/subcmd/net-add @@ -134,6 +134,7 @@ setup_network() ip link set ${LXCNAME}_${NUM} address $MAC1 else MAC1=`ip addr show ${LXCNAME}_${NUM} | egrep link/ether | awk '{print $2}'` +# MAC1=`echo $MAC1 | awk -F : '{printf "52:54:00:%2s:%2s:%2s",$4,$5,$6}'` fi ip link set ${LXCNAME}_${NUM} up @@ -157,6 +158,7 @@ setup_network() ip netns exec "${LXCNAME}_${NUM}" ip link set vg${LXCNAME}_${NUM} address $MAC2 else MAC2=`ip netns exec "${LXCNAME}_${NUM}" ip addr show vg${LXCNAME}_${NUM} | egrep link/ether | awk '{print $2}'` +# MAC2=`echo $MAC2 | awk -F : '{printf "52:54:00:%2s:%2s:%2s",$4,$5,$6}'` fi # Setting of network in container diff --git a/src/subcmd/net-nic-add b/src/subcmd/net-nic-add index 8550d84..3625a94 100755 --- a/src/subcmd/net-nic-add +++ b/src/subcmd/net-nic-add @@ -98,8 +98,8 @@ done ip addr add $IPMASK dev fulcon$BRNO brctl addif fulcon$BRNO $NETDEV -# set MAC -#MAC=`ip addr show $NETDEV | egrep link/ether | awk '{print $2}'` +# set BR MAC +#MAC=`ip addr show fulcon$BRNO | egrep link/ether | awk '{print $2}' | awk -F : '{printf "52:54:00:%2s:%2s:%2s",$4,$5,$6}'` #ip link set fulcon$BRNO address $MAC # delete address of nic -- 2.11.0