From ce6e0bcccafba7b83d74aac12746be7fb3c28982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=B8=AD=E5=85=9A?= Date: Wed, 18 Jan 2017 14:24:28 +0800 Subject: [PATCH] v1.4 update --- doc/db/cloudboot.sql | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/doc/db/cloudboot.sql b/doc/db/cloudboot.sql index 564b2bb..58a600d 100644 --- a/doc/db/cloudboot.sql +++ b/doc/db/cloudboot.sql @@ -3,9 +3,9 @@ -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 --- Generation Time: 2016-06-30 08:46:37 --- 服务器版本: 5.7.10 --- PHP Version: 5.5.27 +-- Generation Time: 2017-01-18 06:22:49 +-- 服务器版本: 5.7.15 +-- PHP Version: 5.6.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; @@ -186,19 +186,18 @@ CREATE TABLE IF NOT EXISTS `hardwares` ( `source` varchar(255) DEFAULT NULL, `version` varchar(255) DEFAULT NULL, `status` enum('Pending','Success','Failure') DEFAULT 'Success' -) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; +) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8; -- -- 转存表中的数据 `hardwares` -- INSERT INTO `hardwares` (`id`, `created_at`, `updated_at`, `deleted_at`, `company`, `product`, `model_name`, `raid`, `oob`, `bios`, `is_system_add`, `tpl`, `data`, `source`, `version`, `status`) VALUES -(1, '2015-11-20 11:41:50', '2016-03-08 03:07:02', NULL, 'Dell', '', 'PowerEdge R420', NULL, NULL, NULL, 'Yes', '[{"name":"RAID","data":[{"name":"RAID","type":"select","data":[{"name":"RAID0","value":"/opt/yunji/osinstall/dell/raid.sh -c -l 0","checked":false},{"name":"RAID1","value":"/opt/yunji/osinstall/dell/raid.sh -c -l 1","checked":false},{"name":"RAID5","value":"/opt/yunji/osinstall/dell/raid.sh -c -l 5","checked":false},{"name":"RAID10","value":"/opt/yunji/osinstall/dell/raid.sh -c -l 10","checked":true}],"default":"/opt/yunji/osinstall/dell/raid.sh -c -l 10"}]},{"name":"OOB","data":[{"name":"网络类型","type":"select","data":[{"name":"DHCP","value":"/opt/yunji/osinstall/dell/oob.sh -n dhcp","checked":false},{"name":"静态IP","value":"/opt/yunji/osinstall/dell/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}> ","checked":true}],"default":"/opt/yunji/osinstall/dell/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}> "},{"name":"用户名","type":"input","tpl":"/opt/yunji/osinstall/dell/oob.sh -u <{##}>","default":"/opt/yunji/osinstall/dell/oob.sh -u root","input":"root"},{"name":"密码","type":"input","tpl":"/opt/yunji/osinstall/dell/oob.sh -p <{##}>","default":"/opt/yunji/osinstall/dell/oob.sh -p calvin","input":"calvin"}]}]', '[{"Name":"RAID","Data":[{"Name":"RAID","Value":"/opt/yunji/osinstall/dell/raid.sh -c -l 10"}]},{"Name":"OOB","Data":[{"Name":"网络类型","Value":"/opt/yunji/osinstall/dell/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}> "},{"Name":"用户名","Value":"/opt/yunji/osinstall/dell/oob.sh -u root"},{"Name":"密码","Value":"/opt/yunji/osinstall/dell/oob.sh -p calvin"}]}]', '', '', 'Success'), -(2, '2016-02-18 05:50:36', '2016-03-08 03:11:35', NULL, '浪潮', '', 'NF5140M3', NULL, NULL, NULL, 'Yes', '[{"name":"RAID","data":[{"name":"RAID","type":"select","data":[{"name":"RAID0","value":"/opt/yunji/osinstall/inspur/raid.sh -c -l 0","checked":false},{"name":"RAID1","value":"/opt/yunji/osinstall/inspur/raid.sh -c -l 1","checked":false},{"name":"RAID5","value":"/opt/yunji/osinstall/inspur/raid.sh -c -l 5","checked":false},{"name":"RAID10","value":"/opt/yunji/osinstall/inspur/raid.sh -c -l 10","checked":true}],"default":"/opt/yunji/osinstall/inspur/raid.sh -c -l 10"}]},{"name":"OOB","data":[{"name":"网络类型","type":"select","data":[{"name":"DHCP","value":"/opt/yunji/osinstall/inspur/oob.sh -n dhcp","checked":false},{"name":"静态IP","value":"/opt/yunji/osinstall/inspur/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}>","checked":true}],"default":"/opt/yunji/osinstall/inspur/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}>"},{"name":"用户名","type":"input","tpl":"/opt/yunji/osinstall/inspur/oob.sh -u <{##}>","default":"/opt/yunji/osinstall/inspur/oob.sh -u root","input":"root"},{"name":"密码","type":"input","tpl":"/opt/yunji/osinstall/inspur/oob.sh -p <{##}>","default":"/opt/yunji/osinstall/inspur/oob.sh -p calvin","input":"calvin"}]}]', '[{"Name":"RAID","Data":[{"Name":"RAID","Value":"/opt/yunji/osinstall/inspur/raid.sh -c -l 10"}]},{"Name":"OOB","Data":[{"Name":"网络类型","Value":"/opt/yunji/osinstall/inspur/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}>"},{"Name":"用户名","Value":"/opt/yunji/osinstall/inspur/oob.sh -u root"},{"Name":"密码","Value":"/opt/yunji/osinstall/inspur/oob.sh -p calvin"}]}]', '', '', 'Success'), -(3, '2016-03-08 03:10:19', '2016-03-08 03:13:25', NULL, '华为', '', 'RH2288H V3', NULL, NULL, NULL, 'Yes', '[{"name":"RAID","data":[{"name":"RAID","type":"select","data":[{"name":"RAID0","value":"/opt/yunji/osinstall/huawei/raid.sh -c -l 0","checked":false},{"name":"RAID1","value":"/opt/yunji/osinstall/huawei/raid.sh -c -l 1","checked":false},{"name":"RAID5","value":"/opt/yunji/osinstall/huawei/raid.sh -c -l 5","checked":false},{"name":"RAID10","value":"/opt/yunji/osinstall/huawei/raid.sh -c -l 10","checked":true}],"default":"/opt/yunji/osinstall/huawei/raid.sh -c -l 10"}]},{"name":"OOB","data":[{"name":"网络类型","type":"select","data":[{"name":"DHCP","value":"/opt/yunji/osinstall/huawei/oob.sh -n dhcp","checked":false},{"name":"静态IP","value":"/opt/yunji/osinstall/huawei/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}>","checked":true}],"default":"/opt/yunji/osinstall/huawei/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}>"},{"name":"用户名","type":"input","tpl":"/opt/yunji/osinstall/huawei/oob.sh -u <{##}>","default":"/opt/yunji/osinstall/huawei/oob.sh -u root","input":"root"},{"name":"密码","type":"input","tpl":"/opt/yunji/osinstall/huawei/oob.sh -p <{##}>","default":"/opt/yunji/osinstall/huawei/oob.sh -p calvin","input":"calvin"}]}]', '[{"Name":"RAID","Data":[{"Name":"RAID","Value":"/opt/yunji/osinstall/huawei/raid.sh -c -l 10"}]},{"Name":"OOB","Data":[{"Name":"网络类型","Value":"/opt/yunji/osinstall/huawei/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}>"},{"Name":"用户名","Value":"/opt/yunji/osinstall/huawei/oob.sh -u root"},{"Name":"密码","Value":"/opt/yunji/osinstall/huawei/oob.sh -p calvin"}]}]', '', '', 'Success'), -(4, '2016-03-08 03:15:22', '2016-03-08 03:15:22', NULL, '惠普', '', 'DL360 Gen9', NULL, NULL, NULL, 'Yes', '[{"name":"RAID","data":[{"name":"RAID","type":"select","data":[{"name":"RAID0","value":"/opt/yunji/osinstall/hp/raid.sh -c -l 0","checked":false},{"name":"RAID1","value":"/opt/yunji/osinstall/hp/raid.sh -c -l 1","checked":false},{"name":"RAID5","value":"/opt/yunji/osinstall/hp/raid.sh -c -l 5","checked":false},{"name":"RAID10","value":"/opt/yunji/osinstall/hp/raid.sh -c -l 10","checked":true}],"default":"/opt/yunji/osinstall/hp/raid.sh -c -l 10"}]},{"name":"OOB","data":[{"name":"网络类型","type":"select","data":[{"name":"DHCP","value":"/opt/yunji/osinstall/hp/oob.sh -n dhcp","checked":false},{"name":"静态IP","value":"/opt/yunji/osinstall/hp/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}>","checked":true}],"default":"/opt/yunji/osinstall/hp/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}>"},{"name":"用户名","type":"input","tpl":"/opt/yunji/osinstall/hp/oob.sh -u <{##}>","default":"/opt/yunji/osinstall/hp/oob.sh -u root","input":"root"},{"name":"密码","type":"input","tpl":"/opt/yunji/osinstall/hp/oob.sh -p <{##}>","default":"/opt/yunji/osinstall/hp/oob.sh -p calvin","input":"calvin"}]}]', '[{"Name":"RAID","Data":[{"Name":"RAID","Value":"/opt/yunji/osinstall/hp/raid.sh -c -l 10"}]},{"Name":"OOB","Data":[{"Name":"网络类型","Value":"/opt/yunji/osinstall/hp/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}>"},{"Name":"用户名","Value":"/opt/yunji/osinstall/hp/oob.sh -u root"},{"Name":"密码","Value":"/opt/yunji/osinstall/hp/oob.sh -p calvin"}]}]', '', '', 'Success'), -(5, '2016-03-08 03:17:59', '2016-03-08 03:17:59', NULL, '联想', '', 'ThinkServer TS140', NULL, NULL, NULL, 'Yes', '[{"name":"RAID","data":[{"name":"RAID","type":"select","data":[{"name":"RAID0","value":"/opt/yunji/osinstall/lenovo/raid.sh -c -l 0","checked":false},{"name":"RAID1","value":"/opt/yunji/osinstall/lenovo/raid.sh -c -l 1","checked":false},{"name":"RAID5","value":"/opt/yunji/osinstall/lenovo/raid.sh -c -l 5","checked":false},{"name":"RAID10","value":"/opt/yunji/osinstall/lenovo/raid.sh -c -l 10","checked":true}],"default":"/opt/yunji/osinstall/lenovo/raid.sh -c -l 10"}]},{"name":"OOB","data":[{"name":"网络类型","type":"select","data":[{"name":"DHCP","value":"/opt/yunji/osinstall/lenovo/oob.sh -n dhcp","checked":false},{"name":"静态IP","value":"/opt/yunji/osinstall/lenovo/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}>","checked":true}],"default":"/opt/yunji/osinstall/lenovo/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}>"},{"name":"用户名","type":"input","tpl":"/opt/yunji/osinstall/lenovo/oob.sh -u <{##}>","default":"/opt/yunji/osinstall/lenovo/oob.sh -u root","input":"root"},{"name":"密码","type":"input","tpl":"/opt/yunji/osinstall/lenovo/oob.sh -p <{##}>","default":"/opt/yunji/osinstall/lenovo/oob.sh -p calvin","input":"calvin"}]}]', '[{"Name":"RAID","Data":[{"Name":"RAID","Value":"/opt/yunji/osinstall/lenovo/raid.sh -c -l 10"}]},{"Name":"OOB","Data":[{"Name":"网络类型","Value":"/opt/yunji/osinstall/lenovo/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}>"},{"Name":"用户名","Value":"/opt/yunji/osinstall/lenovo/oob.sh -u root"},{"Name":"密码","Value":"/opt/yunji/osinstall/lenovo/oob.sh -p calvin"}]}]', '', '', 'Success'), -(6, '2016-03-08 03:31:08', '2016-03-08 03:31:08', NULL, 'IBM', '', 'System x3850 M2', NULL, NULL, NULL, 'Yes', '[{"name":"RAID","data":[{"name":"RAID","type":"select","data":[{"name":"RAID0","value":"/opt/yunji/osinstall/ibm/raid.sh -c -l 0","checked":false},{"name":"RAID1","value":"/opt/yunji/osinstall/ibm/raid.sh -c -l 1","checked":false},{"name":"RAID5","value":"/opt/yunji/osinstall/ibm/raid.sh -c -l 5","checked":false},{"name":"RAID10","value":"/opt/yunji/osinstall/ibm/raid.sh -c -l 10","checked":true}],"default":"/opt/yunji/osinstall/ibm/raid.sh -c -l 10"}]},{"name":"OOB","data":[{"name":"网络类型","type":"select","data":[{"name":"DHCP","value":"/opt/yunji/osinstall/ibm/oob.sh -n dhcp","checked":false},{"name":"静态IP","value":"/opt/yunji/osinstall/ibm/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}>","checked":true}],"default":"/opt/yunji/osinstall/ibm/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}>"},{"name":"用户名","type":"input","tpl":"/opt/yunji/osinstall/ibm/oob.sh -u <{##}>","default":"/opt/yunji/osinstall/ibm/oob.sh -u root","input":"root"},{"name":"密码","type":"input","tpl":"/opt/yunji/osinstall/ibm/oob.sh -p <{##}>","default":"/opt/yunji/osinstall/ibm/oob.sh -p calvin","input":"calvin"}]}]', '[{"Name":"RAID","Data":[{"Name":"RAID","Value":"/opt/yunji/osinstall/ibm/raid.sh -c -l 10"}]},{"Name":"OOB","Data":[{"Name":"网络类型","Value":"/opt/yunji/osinstall/ibm/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}>"},{"Name":"用户名","Value":"/opt/yunji/osinstall/ibm/oob.sh -u root"},{"Name":"密码","Value":"/opt/yunji/osinstall/ibm/oob.sh -p calvin"}]}]', '', '', 'Success'); +(1, '2015-11-20 11:41:50', '2017-01-17 09:38:29', NULL, 'Dell', '', '通用型号', '', '', '', 'No', '[{"name":"RAID","data":[{"name":"RAID 1","type":"select","data":[{"name":"前两块盘 RAID 1","value":"/opt/yunji/osinstall/dell/raid.sh -c -r 1 -d 0,1"}],"tpl":"","input":"","default":"/opt/yunji/osinstall/dell/raid.sh -c -r 1 -d 0,1"},{"name":"RAID 5","type":"select","data":[{"name":"剩下的盘 RAID 5","value":"/opt/yunji/osinstall/dell/raid.sh -r 5 -d 2- -i"}],"tpl":"/opt/yunji/osinstall/dell/raid.sh -r 10 -d 2-","input":"","default":"/opt/yunji/osinstall/dell/raid.sh -r 5 -d 2- -i"}]},{"name":"OOB","data":[{"name":"网络类型","type":"select","data":[{"name":"DHCP","value":"/opt/yunji/osinstall/dell/oob.sh -n dhcp","checked":false},{"name":"静态IP","value":"/opt/yunji/osinstall/dell/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}> ","checked":true}],"default":"/opt/yunji/osinstall/dell/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}> "},{"name":"用户名","type":"input","tpl":"/opt/yunji/osinstall/dell/oob.sh -u <{##}>","default":"/opt/yunji/osinstall/dell/oob.sh -u root","input":"root","value":"/opt/yunji/osinstall/dell/oob.sh -u root"},{"name":"密码","type":"input","tpl":"/opt/yunji/osinstall/dell/oob.sh -p <{##}>","default":"/opt/yunji/osinstall/dell/oob.sh -u root -p calvin","input":"calvin"}]}]', '[{"Name":"RAID","Data":[{"Name":"RAID 1","Value":"/opt/yunji/osinstall/dell/raid.sh -c -r 1 -d 0,1"},{"Name":"RAID 5","Value":"/opt/yunji/osinstall/dell/raid.sh -r 5 -d 2- -i"}]},{"Name":"OOB","Data":[{"Name":"网络类型","Value":"/opt/yunji/osinstall/dell/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}> "},{"Name":"密码","Value":"/opt/yunji/osinstall/dell/oob.sh -u root -p calvin"}]}]', '', 'v1.4', 'Success'), +(2, '2017-01-17 06:43:30', '2017-01-17 09:38:32', NULL, '惠普', '', '通用型号', '', '', '', 'No', '[{"name":"RAID","data":[{"name":"RAID 1","type":"select","data":[{"name":"前两块盘 RAID 1","value":"/opt/yunji/osinstall/hp/raid.sh -c -r 1 -d 0,1"}],"tpl":"","input":"","default":"/opt/yunji/osinstall/hp/raid.sh -c -r 1 -d 0,1"},{"name":"RAID 5","type":"select","data":[{"name":"剩下的盘 RAID 5","value":"/opt/yunji/osinstall/hp/raid.sh -r 5 -d 2- -i"}],"tpl":"/opt/yunji/osinstall/dell/raid.sh -r 10 -d 2-","input":"","default":"/opt/yunji/osinstall/hp/raid.sh -r 5 -d 2- -i"}]},{"name":"OOB","data":[{"name":"网络类型","type":"select","data":[{"name":"DHCP","value":"/opt/yunji/osinstall/hp/oob.sh -n dhcp","checked":false},{"name":"静态IP","value":"/opt/yunji/osinstall/hp/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}> ","checked":true}],"default":"/opt/yunji/osinstall/hp/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}> "},{"name":"用户名","type":"input","tpl":"/opt/yunji/osinstall/hp/oob.sh -u <{##}>","default":"/opt/yunji/osinstall/hp/oob.sh -u administrator","input":"administrator","value":"/opt/yunji/osinstall/hp/oob.sh -u administrator"},{"name":"密码","type":"input","tpl":"/opt/yunji/osinstall/hp/oob.sh -p <{##}>","default":"/opt/yunji/osinstall/hp/oob.sh -u administrator -p calvin","input":"calvin"}]}]', '[{"Name":"RAID","Data":[{"Name":"RAID 1","Value":"/opt/yunji/osinstall/hp/raid.sh -c -r 1 -d 0,1"},{"Name":"RAID 5","Value":"/opt/yunji/osinstall/hp/raid.sh -r 5 -d 2- -i"}]},{"Name":"OOB","Data":[{"Name":"网络类型","Value":"/opt/yunji/osinstall/hp/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}> "},{"Name":"密码","Value":"/opt/yunji/osinstall/hp/oob.sh -u administrator -p calvin"}]}]', '', 'v1.4', 'Success'), +(3, '2017-01-17 06:44:13', '2017-01-17 09:38:34', NULL, '华为', '', '通用型号', '', '', '', 'No', '[{"name":"RAID","data":[{"name":"RAID 1","type":"select","data":[{"name":"前两块盘 RAID 1","value":"/opt/yunji/osinstall/huawei/raid.sh -c -r 1 -d 0,1"}],"tpl":"","input":"","default":"/opt/yunji/osinstall/huawei/raid.sh -c -r 1 -d 0,1"},{"name":"RAID 5","type":"select","data":[{"name":"剩下的盘 RAID 5","value":"/opt/yunji/osinstall/huawei/raid.sh -r 5 -d 2- -i"}],"tpl":"/opt/yunji/osinstall/dell/raid.sh -r 10 -d 2-","input":"","default":"/opt/yunji/osinstall/huawei/raid.sh -r 5 -d 2- -i"}]},{"name":"OOB","data":[{"name":"网络类型","type":"select","data":[{"name":"DHCP","value":"/opt/yunji/osinstall/huawei/oob.sh -n dhcp","checked":false},{"name":"静态IP","value":"/opt/yunji/osinstall/huawei/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}> ","checked":true}],"default":"/opt/yunji/osinstall/huawei/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}> "},{"name":"用户名","type":"input","tpl":"/opt/yunji/osinstall/huawei/oob.sh -u <{##}>","default":"/opt/yunji/osinstall/huawei/oob.sh -u root","input":"root","value":"/opt/yunji/osinstall/huawei/oob.sh -u root"},{"name":"密码","type":"input","tpl":"/opt/yunji/osinstall/huawei/oob.sh -p <{##}>","default":"/opt/yunji/osinstall/huawei/oob.sh -u root -p calvin","input":"calvin"}]}]', '[{"Name":"RAID","Data":[{"Name":"RAID 1","Value":"/opt/yunji/osinstall/huawei/raid.sh -c -r 1 -d 0,1"},{"Name":"RAID 5","Value":"/opt/yunji/osinstall/huawei/raid.sh -r 5 -d 2- -i"}]},{"Name":"OOB","Data":[{"Name":"网络类型","Value":"/opt/yunji/osinstall/huawei/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}> "},{"Name":"密码","Value":"/opt/yunji/osinstall/huawei/oob.sh -u root -p calvin"}]}]', '', 'v1.4', 'Success'), +(4, '2017-01-17 06:44:54', '2017-01-17 09:38:37', NULL, '浪潮', '', '通用型号', '', '', '', 'No', '[{"name":"RAID","data":[{"name":"RAID 1","type":"select","data":[{"name":"前两块盘 RAID 1","value":"/opt/yunji/osinstall/inspur/raid.sh -c -r 1 -d 0,1"}],"tpl":"","input":"","default":"/opt/yunji/osinstall/inspur/raid.sh -c -r 1 -d 0,1"},{"name":"RAID 5","type":"select","data":[{"name":"剩下的盘 RAID 5","value":"/opt/yunji/osinstall/inspur/raid.sh -r 5 -d 2- -i"}],"tpl":"/opt/yunji/osinstall/dell/raid.sh -r 10 -d 2-","input":"","default":"/opt/yunji/osinstall/inspur/raid.sh -r 5 -d 2- -i"}]},{"name":"OOB","data":[{"name":"网络类型","type":"select","data":[{"name":"DHCP","value":"/opt/yunji/osinstall/inspur/oob.sh -n dhcp","checked":false},{"name":"静态IP","value":"/opt/yunji/osinstall/inspur/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}> ","checked":true}],"default":"/opt/yunji/osinstall/inspur/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}> "},{"name":"用户名","type":"input","tpl":"/opt/yunji/osinstall/inspur/oob.sh -u <{##}>","default":"/opt/yunji/osinstall/inspur/oob.sh -u root","input":"root","value":"/opt/yunji/osinstall/inspur/oob.sh -u root"},{"name":"密码","type":"input","tpl":"/opt/yunji/osinstall/inspur/oob.sh -p <{##}>","default":"/opt/yunji/osinstall/inspur/oob.sh -u root -p calvin","input":"calvin"}]}]', '[{"Name":"RAID","Data":[{"Name":"RAID 1","Value":"/opt/yunji/osinstall/inspur/raid.sh -c -r 1 -d 0,1"},{"Name":"RAID 5","Value":"/opt/yunji/osinstall/inspur/raid.sh -r 5 -d 2- -i"}]},{"Name":"OOB","Data":[{"Name":"网络类型","Value":"/opt/yunji/osinstall/inspur/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}> "},{"Name":"密码","Value":"/opt/yunji/osinstall/inspur/oob.sh -u root -p calvin"}]}]', '', 'v1.4', 'Success'), +(5, '2017-01-17 06:45:43', '2017-01-17 09:38:39', NULL, '联想', '', '通用型号', '', '', '', 'No', '[{"name":"RAID","data":[{"name":"RAID 1","type":"select","data":[{"name":"前两块盘 RAID 1","value":"/opt/yunji/osinstall/lenovo/raid.sh -c -r 1 -d 0,1"}],"tpl":"","input":"","default":"/opt/yunji/osinstall/lenovo/raid.sh -c -r 1 -d 0,1"},{"name":"RAID 5","type":"select","data":[{"name":"剩下的盘 RAID 5","value":"/opt/yunji/osinstall/lenovo/raid.sh -r 5 -d 2- -i"}],"tpl":"/opt/yunji/osinstall/dell/raid.sh -r 10 -d 2-","input":"","default":"/opt/yunji/osinstall/lenovo/raid.sh -r 5 -d 2- -i"}]},{"name":"OOB","data":[{"name":"网络类型","type":"select","data":[{"name":"DHCP","value":"/opt/yunji/osinstall/lenovo/oob.sh -n dhcp","checked":false},{"name":"静态IP","value":"/opt/yunji/osinstall/lenovo/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}> ","checked":true}],"default":"/opt/yunji/osinstall/lenovo/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}> "},{"name":"用户名","type":"input","tpl":"/opt/yunji/osinstall/lenovo/oob.sh -u <{##}>","default":"/opt/yunji/osinstall/lenovo/oob.sh -u root","input":"root","value":"/opt/yunji/osinstall/lenovo/oob.sh -u root"},{"name":"密码","type":"input","tpl":"/opt/yunji/osinstall/lenovo/oob.sh -p <{##}>","default":"/opt/yunji/osinstall/lenovo/oob.sh -u root -p calvin","input":"calvin"}]}]', '[{"Name":"RAID","Data":[{"Name":"RAID 1","Value":"/opt/yunji/osinstall/lenovo/raid.sh -c -r 1 -d 0,1"},{"Name":"RAID 5","Value":"/opt/yunji/osinstall/lenovo/raid.sh -r 5 -d 2- -i"}]},{"Name":"OOB","Data":[{"Name":"网络类型","Value":"/opt/yunji/osinstall/lenovo/oob.sh -n static -i <{manage_ip}> -m <{manage_netmask}> -g <{manage_gateway}> "},{"Name":"密码","Value":"/opt/yunji/osinstall/lenovo/oob.sh -u root -p calvin"}]}]', '', 'v1.4', 'Success'); -- -------------------------------------------------------- @@ -407,7 +406,7 @@ CREATE TABLE IF NOT EXISTS `system_configs` ( `deleted_at` timestamp NULL DEFAULT NULL, `name` varchar(255) NOT NULL, `content` longtext -) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8; +) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8; -- -- 转存表中的数据 `system_configs` @@ -418,11 +417,8 @@ INSERT INTO `system_configs` (`id`, `created_at`, `updated_at`, `deleted_at`, `n (2, '2015-12-08 17:45:45', '2016-03-29 09:25:11', NULL, 'sles11sp4', '\n\n\n \n \n \n \n \n hd0 \n /dev/sda \n \n \n \n true \n SUSE Linux Enterprise Server 11 SP4 - 3.0.101-63 \n true \n (hd0,0)/message \n 2 \n 8 \n \n \n \n megaraid_sas \n \n \n grub \n \n
\n console=tty0 selinux=0 biosdevname=0 resume=/dev/sda2 splash=silent showopts \n (hd0,0)/vmlinuz-3.0.101-63-default \n 1 \n (hd0,0)/initrd-3.0.101-63-default \n 0 \n SUSE Linux Enterprise Server 11 SP4 - 3.0.101-63 \n linux \n /dev/sda3 \n image \n
\n
\n showopts ide=nodma apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe \n (hd0,0)/vmlinuz-3.0.101-63-default \n (hd0,0)/initrd-3.0.101-63-default \n 1 \n Failsafe -- SUSE Linux Enterprise Server 11 SP4 - 3.0.101-63 \n failsafe \n /dev/sda3 \n image \n
\n
\n
\n \n false \n \n \n false \n \n \n \n \n false \n \n \n none \n \n \n \n \n \n \n true \n 0 \n x \n root \n \n \n \n \n \n 127.0.0.1 \n \n localhost \n \n \n \n \n \n false \n \n \n english-us \n \n \n en_US \n en_US \n \n \n \n \n \n AUTO\n \n \n true\n localdomain\n localhost\n auto\n false\n \n \n \n dhcp4 \n eth0 \n auto \n \n \n \n \n 127.0.0.2 \n 255.0.0.0 \n 8 \n \n \n 127.255.255.255 \n lo \n no \n 127.0.0.1 \n 255.0.0.0 \n 127.0.0.0 \n 8 \n auto \n no \n \n \n false \n false \n \n false \n \n \n \n auto \n \n \n \n /dev/sda \n true \n \n \n true \n false \n ext3 \n true \n acl,user_xattr \n false \n /boot \n id \n 131 \n 1 \n false \n 256M \n \n \n true \n false \n swap \n true \n defaults \n false \n swap \n id \n 130 \n 2 \n false \n 2G \n \n \n true \n false \n ext3 \n true \n acl,user_xattr \n false \n / \n id \n 131 \n 3 \n false \n 100% \n \n \n \n CT_DISK \n all \n \n \n \n false \n \n \n 3 \n \n \n \n Basis-Devel \n base \n Minimal \n \n \n \n localtime \n Asia/Shanghai \n \n \n 100 \n video,dialout \n /home \n -1 \n /bin/bash \n /etc/skel \n 022 \n \n \n \n true \n root \n 0 \n /root \n \n \n \n \n \n \n \n \n /bin/bash \n 0 \n $2y$05$P58A74K8q3STIFopY0zj/eaq9Uk.K1khj8yeuJJDq4LinaEOf1Uy. \n root \n \n \n \n \n \n \n \n \n \n
'), (3, '2015-12-09 15:39:28', '2016-06-30 08:45:30', NULL, 'rhel7.2', 'install\nurl --url=http://osinstall.idcos.com/rhel/7.2/os/x86_64/\nlang en_US.UTF-8\nkeyboard --vckeymap=us --xlayouts=''us''\nnetwork --bootproto=dhcp --device=eth0 --noipv6 --activate\nrootpw --iscrypted $6$hrKVIh4.DTVDR2Fp$Q.ho5bHXzIoKmaXGJCSbBnC5PaXNe5wbrcbe70mMlZON20aX.BGySazXrfs0ePnTDrCF8JRzDmH8815CbaAVn.\nfirewall --disabled\nauth --enableshadow --passalgo=sha512\nselinux --disabled\ntimezone Asia/Shanghai --isUtc\ntext\nreboot\nzerombr\nbootloader --location=mbr --append="console=tty0 net.ifnames=0 biosdevname=0 audit=0 selinux=0"\nclearpart --all --initlabel\npart /boot --fstype=ext4 --size=256\npart swap --size=2048\npart / --fstype=ext4 --size=100 --grow\n\n%packages --ignoremissing\n@base\n@core\n@development\n%end\n\n%pre\nif dmidecode | grep -qEi ''VMware|VirtualBox|KVM|Xen|Parallels''; then\n _sn=$(sed q /sys/class/net/*/address)\nelse\n _sn=$(dmidecode -s system-serial-number 2>/dev/null | awk ''/^[^#]/ { print $1 }'')\nfi\n\ncurl -H "Content-Type: application/json" -X POST -d "{\\"Sn\\":\\"$_sn\\",\\"Title\\":\\"启动OS安装程序\\",\\"InstallProgress\\":0.6,\\"InstallLog\\":\\"SW5zdGFsbCBPUwo=\\"}" http://osinstall.idcos.com/api/osinstall/v1/report/deviceInstallInfo\ncurl -H "Content-Type: application/json" -X POST -d "{\\"Sn\\":\\"$_sn\\",\\"Title\\":\\"分区并安装软件包\\",\\"InstallProgress\\":0.7,\\"InstallLog\\":\\"SW5zdGFsbCBPUwo=\\"}" http://osinstall.idcos.com/api/osinstall/v1/report/deviceInstallInfo\n%end\n\n%post\nprogress() {\n curl -H "Content-Type: application/json" -X POST -d "{\\"Sn\\":\\"$_sn\\",\\"Title\\":\\"$1\\",\\"InstallProgress\\":$2,\\"InstallLog\\":\\"$3\\"}" http://osinstall.idcos.com/api/osinstall/v1/report/deviceInstallInfo\n}\n\nif dmidecode | grep -qEi ''VMware|VirtualBox|KVM|Xen|Parallels''; then\n _sn=$(sed q /sys/class/net/*/address)\nelse\n _sn=$(dmidecode -s system-serial-number 2>/dev/null | awk ''/^[^#]/ { print $1 }'')\nfi\n\nprogress "配置主机名和网络" 0.8 "Y29uZmlnIG5ldHdvcmsK"\n\n# config network\ncurl -o /tmp/networkinfo "http://osinstall.idcos.com/api/osinstall/v1/device/getNetworkBySn?sn=${_sn}&type=raw"\nsource /tmp/networkinfo\n\necho "$HOSTNAME" > /etc/hostname\n\ncat > /etc/sysconfig/network < /etc/sysconfig/network-scripts/ifcfg-eth0 <> /etc/profile <<''EOF''\n\nexport LANG=en_US.UTF8\nexport PS1=''\\n\\e[1;37m[\\e[m\\e[1;32m\\u\\e[m\\e[1;33m@\\e[m\\e[1;35m\\H\\e[m:\\e[4m`pwd`\\e[m\\e[1;37m]\\e[m\\e[1;36m\\e[m\\n\\$ ''\nexport HISTTIMEFORMAT=''[%F %T] ''\nEOF\n\nprogress "安装完成" 1 "aW5zdGFsbCBmaW5pc2hlZAo="\n%end'), (4, '2016-02-01 11:45:16', '2016-06-30 08:45:30', NULL, 'esxi6.0', 'vmaccepteula\r\nrootpw yunjikeji\r\ninstall --firstdisk --overwritevmfs\r\nreboot\r\n\r\n%include /tmp/network.ks\r\n\r\n%pre --interpreter=busybox\r\n_sn=$(localcli hardware platform get | awk ''/Serial Number/ { print $NF }'')\r\n_dns=$(awk ''/^nameserver/ { print $NF; exit }'' /etc/resolv.conf)\r\nwget -qO /tmp/networkinfo "http://osinstall.idcos.com/api/osinstall/v1/device/getNetworkBySn?sn=${_sn}&type=raw"\r\nsource /tmp/networkinfo\r\necho "network --bootproto=static --device=vmnic0 --ip=$IPADDR --netmask=$NETMASK --gateway=$GATEWAY --nameserver=$_dns --hostname=$HOSTNAME" > /tmp/network.ks\r\n\r\ncat > /tmp/progress.py <<''EOF''\r\n#!/usr/bin/env python\r\nimport sys\r\nimport traceback\r\nimport json\r\nimport urllib2\r\nimport urllib\r\n\r\nURL = "http://osinstall.idcos.com/api/osinstall/v1/report/deviceInstallInfo"\r\n\r\ndef process_api(sn, title, process, content):\r\n\r\n params = {\r\n "Sn": sn,\r\n "Title": title,\r\n "InstallProgress": round(float(process), 2),\r\n "InstallLog": content\r\n }\r\n data = json.dumps(params)\r\n req = urllib2.Request(URL,data=data)\r\n req.add_header("Content-Type", "application/json")\r\n return urllib2.urlopen(req).read()\r\n\r\n\r\nif __name__ == "__main__":\r\n try:\r\n print process_api(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4])\r\n except:\r\n print "error when request URL: ", URL\r\n print traceback.print_exc()\r\nEOF\r\nchmod 755 /tmp/progress.py\r\n\r\n/tmp/progress.py $_sn "启动OS安装程序" 0.6 "SW5zdGFsbCBPUwo="\r\n\r\n%firstboot --interpreter=busybox\r\ncat > /tmp/progress.py <<''EOF''\r\n#!/usr/bin/env python\r\nimport sys\r\nimport traceback\r\nimport json\r\nimport urllib2\r\nimport urllib\r\n\r\nURL = "http://osinstall.idcos.com/api/osinstall/v1/report/deviceInstallInfo"\r\n\r\ndef process_api(sn, title, process, content):\r\n\r\n params = {\r\n "Sn": sn,\r\n "Title": title,\r\n "InstallProgress": round(float(process), 2),\r\n "InstallLog": content\r\n }\r\n data = json.dumps(params)\r\n req = urllib2.Request(URL,data=data)\r\n req.add_header("Content-Type", "application/json")\r\n return urllib2.urlopen(req).read()\r\n\r\n\r\nif __name__ == "__main__":\r\n try:\r\n print process_api(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4])\r\n except:\r\n print "error when request URL: ", URL\r\n print traceback.print_exc()\r\nEOF\r\nchmod 755 /tmp/progress.py\r\n\r\n_sn=$(localcli hardware platform get | awk ''/Serial Number/ { print $NF }'')\r\n\r\n/tmp/progress.py $_sn "调整系统参数" 0.8 "ZW5hYmxlIHNoZWxsIGFuZCBzc2gK"\r\n\r\nvim-cmd hostsvc/enable_ssh\r\nvim-cmd hostsvc/start_ssh\r\n\r\nvim-cmd hostsvc/enable_esx_shell\r\nvim-cmd hostsvc/start_esx_shell\r\n\r\n/tmp/progress.py $_sn "安装完成" 1 "aW5zdGFsbCBmaW5pc2hlZAo="'), -(5, '2016-02-17 12:01:00', '2016-03-01 15:38:06', NULL, 'win2008r2_cn', '\r\r \r \r true\r \r \r true\r \r \r \r \r 489J6-VHDMP-X63PK-3K798-CPX3Y\r false\r false\r China Standard Time\r \r \r \r \r false\r \r \r \r \r true\r 远程桌面\r all\r \r \r \r \r \r \r \r \r eQB1AG4AagBpAGsAZQBqAGkAUABhAHMAcwB3AG8AcgBkAA==\r false</PlainText>\r </Password>\r <Enabled>true</Enabled>\r <LogonCount>1</LogonCount>\r <Username>Administrator</Username>\r </AutoLogon>\r <OOBE>\r <HideEULAPage>true</HideEULAPage>\r </OOBE>\r <UserAccounts>\r <AdministratorPassword>\r <PlainText>false</PlainText>\r <Value>eQB1AG4AagBpAGsAZQBqAGkAQQBkAG0AaQBuAGkAcwB0AHIAYQB0AG8AcgBQAGEAcwBzAHcAbwByAGQA</Value>\r </AdministratorPassword>\r </UserAccounts>\r <FirstLogonCommands>\r <SynchronousCommand wcm:action="add">\r <Order>1</Order>\r <CommandLine>C:\\firstboot\\winconfig.exe</CommandLine>\r <Description></Description>\r <RequiresUserInput>false</RequiresUserInput>\r </SynchronousCommand>\r </FirstLogonCommands>\r <RegisteredOrganization />\r <RegisteredOwner />\r </component>\r <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <SystemLocale>zh-CN</SystemLocale>\r <UILanguage>zh-CN</UILanguage>\r <UILanguageFallback>zh-CN</UILanguageFallback>\r <UserLocale>zh-CN</UserLocale>\r <InputLocale>zh-CN</InputLocale>\r </component>\r </settings>\r <settings pass="windowsPE">\r <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <ImageInstall>\r <OSImage>\r <InstallFrom>\r <Path>Z:\\windows\\2008r2_cn\\sources\\install.wim</Path>\r <MetaData wcm:action="add">\r <Key>/IMAGE/NAME</Key>\r <Value>Windows Server 2008 R2 SERVERENTERPRISE</Value>\r </MetaData>\r </InstallFrom>\r <InstallTo>\r <DiskID>0</DiskID>\r <PartitionID>1</PartitionID>\r </InstallTo>\r <WillShowUI>OnError</WillShowUI>\r </OSImage>\r </ImageInstall>\r <UserData>\r <ProductKey>\r <WillShowUI>OnError</WillShowUI>\r <Key>489J6-VHDMP-X63PK-3K798-CPX3Y</Key>\r </ProductKey>\r <AcceptEula>true</AcceptEula>\r </UserData>\r <EnableFirewall>true</EnableFirewall>\r <EnableNetwork>true</EnableNetwork>\r <DiskConfiguration>\r <Disk wcm:action="add">\r <CreatePartitions>\r <CreatePartition wcm:action="add">\r <Type>Primary</Type>\r <Order>1</Order>\r <Size>51200</Size>\r </CreatePartition>\r </CreatePartitions>\r <ModifyPartitions>\r <ModifyPartition wcm:action="add">\r <Active>true</Active>\r <Extend>false</Extend>\r <Format>NTFS</Format>\r <Order>1</Order>\r <Label>System</Label>\r <PartitionID>1</PartitionID>\r </ModifyPartition>\r </ModifyPartitions>\r <DiskID>0</DiskID>\r <WillWipeDisk>true</WillWipeDisk>\r </Disk>\r <WillShowUI>OnError</WillShowUI>\r </DiskConfiguration>\r </component>\r <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <SetupUILanguage>\r <UILanguage>zh-CN</UILanguage>\r </SetupUILanguage>\r <InputLocale>zh-CN</InputLocale>\r <SystemLocale>zh-CN</SystemLocale>\r <UILanguage>zh-CN</UILanguage>\r <UserLocale>zh-CN</UserLocale>\r <UILanguageFallback>zh-CN</UILanguageFallback>\r </component>\r <component name="Microsoft-Windows-PnpCustomizationsWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <DriverPaths>\r <PathAndCredentials wcm:action="add" wcm:keyValue="1">\r <Path>Z:\\windows\\drivers\\2008r2</Path>\r </PathAndCredentials>\r </DriverPaths>\r </component>\r </settings>\r <settings pass="offlineServicing">\r <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <DriverPaths>\r <PathAndCredentials wcm:action="add" wcm:keyValue="1">\r <Path>Z:\\windows\\drivers\\2008r2</Path>\r </PathAndCredentials>\r </DriverPaths>\r </component>\r <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <EnableLUA>false</EnableLUA>\r </component>\r </settings>\r <cpi:offlineImage cpi:source="catalog://osinstall/image/windows/clg/install_windows server 2008 r2 serverenterprise.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />\r</unattend>'), -(6, '2016-02-26 15:25:15', '2016-02-29 22:00:16', NULL, 'win2008r2_en', '<?xml version="1.0" encoding="utf-8"?>\n<unattend xmlns="urn:schemas-microsoft-com:unattend">\n <settings pass="generalize">\n <component name="Microsoft-Windows-OutOfBoxExperience" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <DoNotOpenInitialConfigurationTasksAtLogon>true</DoNotOpenInitialConfigurationTasksAtLogon>\n </component>\n <component name="Microsoft-Windows-ServerManager-SvrMgrNc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon>\n </component>\n </settings>\n <settings pass="specialize">\n <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <ProductKey>489J6-VHDMP-X63PK-3K798-CPX3Y</ProductKey>\n <ShowWindowsLive>false</ShowWindowsLive>\n <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>\n <TimeZone>China Standard Time</TimeZone>\n <RegisteredOwner />\n <RegisteredOrganization />\n </component>\n <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <fDenyTSConnections>false</fDenyTSConnections>\n </component>\n <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <FirewallGroups>\n <FirewallGroup wcm:action="add" wcm:keyValue="1">\n <Active>true</Active>\n <Group>Remote Desktop</Group>\n <Profile>all</Profile>\n </FirewallGroup>\n </FirewallGroups>\n </component>\n </settings>\n <settings pass="oobeSystem">\n <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <AutoLogon>\n <Password>\n <Value>eQB1AG4AagBpAGsAZQBqAGkAUABhAHMAcwB3AG8AcgBkAA==</Value>\n <PlainText>false</PlainText>\n </Password>\n <Enabled>true</Enabled>\n <LogonCount>1</LogonCount>\n <Username>Administrator</Username>\n </AutoLogon>\n <OOBE>\n <HideEULAPage>true</HideEULAPage>\n </OOBE>\n <UserAccounts>\n <AdministratorPassword>\n <PlainText>false</PlainText>\n <Value>eQB1AG4AagBpAGsAZQBqAGkAQQBkAG0AaQBuAGkAcwB0AHIAYQB0AG8AcgBQAGEAcwBzAHcAbwByAGQA</Value>\n </AdministratorPassword>\n </UserAccounts>\n <FirstLogonCommands>\n <SynchronousCommand wcm:action="add">\n <Order>1</Order>\n <CommandLine>C:\\firstboot\\winconfig.exe</CommandLine>\n <Description></Description>\n <RequiresUserInput>false</RequiresUserInput>\n </SynchronousCommand>\n </FirstLogonCommands>\n <RegisteredOrganization />\n <RegisteredOwner />\n </component>\n <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <SystemLocale>en-US</SystemLocale>\n <UILanguage>en-US</UILanguage>\n <UILanguageFallback>en-US</UILanguageFallback>\n <UserLocale>en-US</UserLocale>\n <InputLocale>en-US</InputLocale>\n </component>\n </settings>\n <settings pass="windowsPE">\n <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <ImageInstall>\n <OSImage>\n <InstallFrom>\n <Path>Z:\\windows\\2008r2_en\\sources\\install.wim</Path>\n <MetaData wcm:action="add">\n <Key>/IMAGE/NAME</Key>\n <Value>Windows Server 2008 R2 SERVERENTERPRISE</Value>\n </MetaData>\n </InstallFrom>\n <InstallTo>\n <DiskID>0</DiskID>\n <PartitionID>1</PartitionID>\n </InstallTo>\n <WillShowUI>OnError</WillShowUI>\n </OSImage>\n </ImageInstall>\n <UserData>\n <ProductKey>\n <WillShowUI>OnError</WillShowUI>\n <Key>489J6-VHDMP-X63PK-3K798-CPX3Y</Key>\n </ProductKey>\n <AcceptEula>true</AcceptEula>\n </UserData>\n <EnableFirewall>true</EnableFirewall>\n <EnableNetwork>true</EnableNetwork>\n <DiskConfiguration>\n <Disk wcm:action="add">\n <CreatePartitions>\n <CreatePartition wcm:action="add">\n <Type>Primary</Type>\n <Order>1</Order>\n <Size>51200</Size>\n </CreatePartition>\n </CreatePartitions>\n <ModifyPartitions>\n <ModifyPartition wcm:action="add">\n <Active>true</Active>\n <Extend>false</Extend>\n <Format>NTFS</Format>\n <Order>1</Order>\n <Label>System</Label>\n <PartitionID>1</PartitionID>\n </ModifyPartition>\n </ModifyPartitions>\n <DiskID>0</DiskID>\n <WillWipeDisk>true</WillWipeDisk>\n </Disk>\n <WillShowUI>OnError</WillShowUI>\n </DiskConfiguration>\n </component>\n <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <SetupUILanguage>\n <UILanguage>en-US</UILanguage>\n </SetupUILanguage>\n <InputLocale>en-US</InputLocale>\n <SystemLocale>en-US</SystemLocale>\n <UILanguage>en-US</UILanguage>\n <UserLocale>en-US</UserLocale>\n <UILanguageFallback>en-US</UILanguageFallback>\n </component>\n <component name="Microsoft-Windows-PnpCustomizationsWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <DriverPaths>\n <PathAndCredentials wcm:action="add" wcm:keyValue="1">\n <Path>Z:\\windows\\drivers\\2008r2</Path>\n </PathAndCredentials>\n </DriverPaths>\n </component>\n </settings>\n <settings pass="offlineServicing">\n <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <DriverPaths>\n <PathAndCredentials wcm:action="add" wcm:keyValue="1">\n <Path>Z:\\windows\\drivers\\2008r2</Path>\n </PathAndCredentials>\n </DriverPaths>\n </component>\n <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <EnableLUA>false</EnableLUA>\n </component>\n </settings>\n <cpi:offlineImage cpi:source="catalog://osinstall/image/windows/clg/install_windows server 2008 r2 serverenterprise.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />\n</unattend>'), -(7, '2016-02-29 11:05:41', '2016-03-01 15:38:22', NULL, 'win2012r2_cn', '<?xml version="1.0" encoding="utf-8"?>\r<unattend xmlns="urn:schemas-microsoft-com:unattend">\r <settings pass="generalize">\r <component name="Microsoft-Windows-OutOfBoxExperience" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <DoNotOpenInitialConfigurationTasksAtLogon>true</DoNotOpenInitialConfigurationTasksAtLogon>\r </component>\r <component name="Microsoft-Windows-ServerManager-SvrMgrNc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon>\r </component>\r </settings>\r <settings pass="specialize">\r <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <ProductKey>W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9</ProductKey>\r <ShowWindowsLive>false</ShowWindowsLive>\r <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>\r <TimeZone>China Standard Time</TimeZone>\r <RegisteredOwner />\r <RegisteredOrganization />\r </component>\r <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <fDenyTSConnections>false</fDenyTSConnections>\r </component>\r <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <FirewallGroups>\r <FirewallGroup wcm:action="add" wcm:keyValue="1">\r <Active>true</Active>\r <Group>远程桌面</Group>\r <Profile>all</Profile>\r </FirewallGroup>\r </FirewallGroups>\r </component>\r </settings>\r <settings pass="oobeSystem">\r <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <AutoLogon>\r <Password>\r <Value>eQB1AG4AagBpAGsAZQBqAGkAUABhAHMAcwB3AG8AcgBkAA==</Value>\r <PlainText>false</PlainText>\r </Password>\r <Enabled>true</Enabled>\r <LogonCount>1</LogonCount>\r <Username>Administrator</Username>\r </AutoLogon>\r <OOBE>\r <HideEULAPage>true</HideEULAPage>\r </OOBE>\r <UserAccounts>\r <AdministratorPassword>\r <PlainText>false</PlainText>\r <Value>eQB1AG4AagBpAGsAZQBqAGkAQQBkAG0AaQBuAGkAcwB0AHIAYQB0AG8AcgBQAGEAcwBzAHcAbwByAGQA</Value>\r </AdministratorPassword>\r </UserAccounts>\r <FirstLogonCommands>\r <SynchronousCommand wcm:action="add">\r <Order>1</Order>\r <CommandLine>C:\\firstboot\\winconfig.exe</CommandLine>\r <Description></Description>\r <RequiresUserInput>false</RequiresUserInput>\r </SynchronousCommand>\r </FirstLogonCommands>\r <RegisteredOrganization />\r <RegisteredOwner />\r </component>\r <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <SystemLocale>zh-CN</SystemLocale>\r <UILanguage>zh-CN</UILanguage>\r <UILanguageFallback>zh-CN</UILanguageFallback>\r <UserLocale>zh-CN</UserLocale>\r <InputLocale>zh-CN</InputLocale>\r </component>\r </settings>\r <settings pass="windowsPE">\r <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <ImageInstall>\r <OSImage>\r <InstallFrom>\r <Path>Z:\\windows\\2012r2_cn\\sources\\install.wim</Path>\r <MetaData wcm:action="add">\r <Key>/IMAGE/NAME</Key>\r <Value>Windows Server 2012 R2 SERVERDATACENTER</Value>\r </MetaData>\r </InstallFrom>\r <InstallTo>\r <DiskID>0</DiskID>\r <PartitionID>1</PartitionID>\r </InstallTo>\r <WillShowUI>OnError</WillShowUI>\r </OSImage>\r </ImageInstall>\r <UserData>\r <ProductKey>\r <WillShowUI>OnError</WillShowUI>\r <Key>W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9</Key>\r </ProductKey>\r <AcceptEula>true</AcceptEula>\r </UserData>\r <EnableFirewall>true</EnableFirewall>\r <EnableNetwork>true</EnableNetwork>\r <DiskConfiguration>\r <Disk wcm:action="add">\r <CreatePartitions>\r <CreatePartition wcm:action="add">\r <Type>Primary</Type>\r <Order>1</Order>\r <Size>51200</Size>\r </CreatePartition>\r </CreatePartitions>\r <ModifyPartitions>\r <ModifyPartition wcm:action="add">\r <Active>true</Active>\r <Extend>false</Extend>\r <Format>NTFS</Format>\r <Order>1</Order>\r <Label>System</Label>\r <PartitionID>1</PartitionID>\r </ModifyPartition>\r </ModifyPartitions>\r <DiskID>0</DiskID>\r <WillWipeDisk>true</WillWipeDisk>\r </Disk>\r <WillShowUI>OnError</WillShowUI>\r </DiskConfiguration>\r </component>\r <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <SetupUILanguage>\r <UILanguage>zh-CN</UILanguage>\r </SetupUILanguage>\r <InputLocale>zh-CN</InputLocale>\r <SystemLocale>zh-CN</SystemLocale>\r <UILanguage>zh-CN</UILanguage>\r <UserLocale>zh-CN</UserLocale>\r <UILanguageFallback>zh-CN</UILanguageFallback>\r </component>\r <component name="Microsoft-Windows-PnpCustomizationsWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <DriverPaths>\r <PathAndCredentials wcm:action="add" wcm:keyValue="1">\r <Path>Z:\\windows\\drivers\\2012r2</Path>\r </PathAndCredentials>\r </DriverPaths>\r </component>\r </settings>\r <settings pass="offlineServicing">\r <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <DriverPaths>\r <PathAndCredentials wcm:action="add" wcm:keyValue="1">\r <Path>Z:\\windows\\drivers\\2012r2</Path>\r </PathAndCredentials>\r </DriverPaths>\r </component>\r <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <EnableLUA>false</EnableLUA>\r </component>\r </settings>\r <cpi:offlineImage cpi:source="catalog://osinstall/image/windows/clg/install_windows server 2012 r2 serverdatacenter.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />\r</unattend>'); -INSERT INTO `system_configs` (`id`, `created_at`, `updated_at`, `deleted_at`, `name`, `content`) VALUES -(8, '2016-02-29 12:06:11', '2016-02-29 22:07:45', NULL, 'win2012r2_en', '<?xml version="1.0" encoding="utf-8"?>\n<unattend xmlns="urn:schemas-microsoft-com:unattend">\n <settings pass="generalize">\n <component name="Microsoft-Windows-OutOfBoxExperience" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <DoNotOpenInitialConfigurationTasksAtLogon>true</DoNotOpenInitialConfigurationTasksAtLogon>\n </component>\n <component name="Microsoft-Windows-ServerManager-SvrMgrNc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon>\n </component>\n </settings>\n <settings pass="specialize">\n <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <ProductKey>W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9</ProductKey>\n <ShowWindowsLive>false</ShowWindowsLive>\n <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>\n <TimeZone>China Standard Time</TimeZone>\n <RegisteredOwner />\n <RegisteredOrganization />\n </component>\n <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <fDenyTSConnections>false</fDenyTSConnections>\n </component>\n <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <FirewallGroups>\n <FirewallGroup wcm:action="add" wcm:keyValue="1">\n <Active>true</Active>\n <Group>Remote Desktop</Group>\n <Profile>all</Profile>\n </FirewallGroup>\n </FirewallGroups>\n </component>\n </settings>\n <settings pass="oobeSystem">\n <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <AutoLogon>\n <Password>\n <Value>eQB1AG4AagBpAGsAZQBqAGkAUABhAHMAcwB3AG8AcgBkAA==</Value>\n <PlainText>false</PlainText>\n </Password>\n <Enabled>true</Enabled>\n <LogonCount>1</LogonCount>\n <Username>Administrator</Username>\n </AutoLogon>\n <OOBE>\n <HideEULAPage>true</HideEULAPage>\n </OOBE>\n <UserAccounts>\n <AdministratorPassword>\n <PlainText>false</PlainText>\n <Value>eQB1AG4AagBpAGsAZQBqAGkAQQBkAG0AaQBuAGkAcwB0AHIAYQB0AG8AcgBQAGEAcwBzAHcAbwByAGQA</Value>\n </AdministratorPassword>\n </UserAccounts>\n <FirstLogonCommands>\n <SynchronousCommand wcm:action="add">\n <Order>1</Order>\n <CommandLine>C:\\firstboot\\winconfig.exe</CommandLine>\n <Description></Description>\n <RequiresUserInput>false</RequiresUserInput>\n </SynchronousCommand>\n </FirstLogonCommands>\n <RegisteredOrganization />\n <RegisteredOwner />\n </component>\n <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <SystemLocale>en-US</SystemLocale>\n <UILanguage>en-US</UILanguage>\n <UILanguageFallback>en-US</UILanguageFallback>\n <UserLocale>en-US</UserLocale>\n <InputLocale>en-US</InputLocale>\n </component>\n </settings>\n <settings pass="windowsPE">\n <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <ImageInstall>\n <OSImage>\n <InstallFrom>\n <Path>Z:\\windows\\2012r2_en\\sources\\install.wim</Path>\n <MetaData wcm:action="add">\n <Key>/IMAGE/NAME</Key>\n <Value>Windows Server 2012 R2 SERVERDATACENTER</Value>\n </MetaData>\n </InstallFrom>\n <InstallTo>\n <DiskID>0</DiskID>\n <PartitionID>1</PartitionID>\n </InstallTo>\n <WillShowUI>OnError</WillShowUI>\n </OSImage>\n </ImageInstall>\n <UserData>\n <ProductKey>\n <WillShowUI>OnError</WillShowUI>\n <Key>W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9</Key>\n </ProductKey>\n <AcceptEula>true</AcceptEula>\n </UserData>\n <EnableFirewall>true</EnableFirewall>\n <EnableNetwork>true</EnableNetwork>\n <DiskConfiguration>\n <Disk wcm:action="add">\n <CreatePartitions>\n <CreatePartition wcm:action="add">\n <Type>Primary</Type>\n <Order>1</Order>\n <Size>51200</Size>\n </CreatePartition>\n </CreatePartitions>\n <ModifyPartitions>\n <ModifyPartition wcm:action="add">\n <Active>true</Active>\n <Extend>false</Extend>\n <Format>NTFS</Format>\n <Order>1</Order>\n <Label>System</Label>\n <PartitionID>1</PartitionID>\n </ModifyPartition>\n </ModifyPartitions>\n <DiskID>0</DiskID>\n <WillWipeDisk>true</WillWipeDisk>\n </Disk>\n <WillShowUI>OnError</WillShowUI>\n </DiskConfiguration>\n </component>\n <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <SetupUILanguage>\n <UILanguage>en-US</UILanguage>\n </SetupUILanguage>\n <InputLocale>en-US</InputLocale>\n <SystemLocale>en-US</SystemLocale>\n <UILanguage>en-US</UILanguage>\n <UserLocale>en-US</UserLocale>\n <UILanguageFallback>en-US</UILanguageFallback>\n </component>\n <component name="Microsoft-Windows-PnpCustomizationsWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <DriverPaths>\n <PathAndCredentials wcm:action="add" wcm:keyValue="1">\n <Path>Z:\\windows\\drivers\\2012r2</Path>\n </PathAndCredentials>\n </DriverPaths>\n </component>\n </settings>\n <settings pass="offlineServicing">\n <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <DriverPaths>\n <PathAndCredentials wcm:action="add" wcm:keyValue="1">\n <Path>Z:\\windows\\drivers\\2012r2</Path>\n </PathAndCredentials>\n </DriverPaths>\n </component>\n <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <EnableLUA>false</EnableLUA>\n </component>\n </settings>\n <cpi:offlineImage cpi:source="catalog://osinstall/image/windows/clg/install_windows server 2012 r2 serverdatacenter.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />\n</unattend>'), +(5, '2016-02-17 12:01:00', '2017-01-17 06:06:54', NULL, 'win2008r2', '<?xml version="1.0" encoding="utf-8"?>\r<unattend xmlns="urn:schemas-microsoft-com:unattend">\r <settings pass="generalize">\r <component name="Microsoft-Windows-OutOfBoxExperience" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <DoNotOpenInitialConfigurationTasksAtLogon>true</DoNotOpenInitialConfigurationTasksAtLogon>\r </component>\r <component name="Microsoft-Windows-ServerManager-SvrMgrNc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon>\r </component>\r </settings>\r <settings pass="specialize">\r <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <ProductKey>489J6-VHDMP-X63PK-3K798-CPX3Y</ProductKey>\r <ShowWindowsLive>false</ShowWindowsLive>\r <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>\r <TimeZone>China Standard Time</TimeZone>\r <RegisteredOwner />\r <RegisteredOrganization />\r </component>\r <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <fDenyTSConnections>false</fDenyTSConnections>\r </component>\r <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <FirewallGroups>\r <FirewallGroup wcm:action="add" wcm:keyValue="1">\r <Active>true</Active>\r <Group>远程桌面</Group>\r <Profile>all</Profile>\r </FirewallGroup>\r </FirewallGroups>\r </component>\r </settings>\r <settings pass="oobeSystem">\r <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <AutoLogon>\r <Password>\r <Value>eQB1AG4AagBpAGsAZQBqAGkAUABhAHMAcwB3AG8AcgBkAA==</Value>\r <PlainText>false</PlainText>\r </Password>\r <Enabled>true</Enabled>\r <LogonCount>1</LogonCount>\r <Username>Administrator</Username>\r </AutoLogon>\r <OOBE>\r <HideEULAPage>true</HideEULAPage>\r </OOBE>\r <UserAccounts>\r <AdministratorPassword>\r <PlainText>false</PlainText>\r <Value>eQB1AG4AagBpAGsAZQBqAGkAQQBkAG0AaQBuAGkAcwB0AHIAYQB0AG8AcgBQAGEAcwBzAHcAbwByAGQA</Value>\r </AdministratorPassword>\r </UserAccounts>\r <FirstLogonCommands>\r <SynchronousCommand wcm:action="add">\r <Order>1</Order>\r <CommandLine>C:\\firstboot\\winconfig.exe</CommandLine>\r <Description></Description>\r <RequiresUserInput>false</RequiresUserInput>\r </SynchronousCommand>\r </FirstLogonCommands>\r <RegisteredOrganization />\r <RegisteredOwner />\r </component>\r <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <SystemLocale>zh-CN</SystemLocale>\r <UILanguage>zh-CN</UILanguage>\r <UILanguageFallback>zh-CN</UILanguageFallback>\r <UserLocale>zh-CN</UserLocale>\r <InputLocale>zh-CN</InputLocale>\r </component>\r </settings>\r <settings pass="windowsPE">\r <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <ImageInstall>\r <OSImage>\r <InstallFrom>\r <Path>Z:\\windows\\2008r2\\sources\\install.wim</Path>\r <MetaData wcm:action="add">\r <Key>/IMAGE/NAME</Key>\r <Value>Windows Server 2008 R2 SERVERENTERPRISE</Value>\r </MetaData>\r </InstallFrom>\r <InstallTo>\r <DiskID>0</DiskID>\r <PartitionID>1</PartitionID>\r </InstallTo>\r <WillShowUI>OnError</WillShowUI>\r </OSImage>\r </ImageInstall>\r <UserData>\r <ProductKey>\r <WillShowUI>OnError</WillShowUI>\r <Key>489J6-VHDMP-X63PK-3K798-CPX3Y</Key>\r </ProductKey>\r <AcceptEula>true</AcceptEula>\r </UserData>\r <EnableFirewall>true</EnableFirewall>\r <EnableNetwork>true</EnableNetwork>\r <DiskConfiguration>\r <Disk wcm:action="add">\r <CreatePartitions>\r <CreatePartition wcm:action="add">\r <Type>Primary</Type>\r <Order>1</Order>\r <Size>51200</Size>\r </CreatePartition>\r </CreatePartitions>\r <ModifyPartitions>\r <ModifyPartition wcm:action="add">\r <Active>true</Active>\r <Extend>false</Extend>\r <Format>NTFS</Format>\r <Order>1</Order>\r <Label>System</Label>\r <PartitionID>1</PartitionID>\r </ModifyPartition>\r </ModifyPartitions>\r <DiskID>0</DiskID>\r <WillWipeDisk>true</WillWipeDisk>\r </Disk>\r <WillShowUI>OnError</WillShowUI>\r </DiskConfiguration>\r </component>\r <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <SetupUILanguage>\r <UILanguage>zh-CN</UILanguage>\r </SetupUILanguage>\r <InputLocale>zh-CN</InputLocale>\r <SystemLocale>zh-CN</SystemLocale>\r <UILanguage>zh-CN</UILanguage>\r <UserLocale>zh-CN</UserLocale>\r <UILanguageFallback>zh-CN</UILanguageFallback>\r </component>\r <component name="Microsoft-Windows-PnpCustomizationsWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <DriverPaths>\r <PathAndCredentials wcm:action="add" wcm:keyValue="1">\r <Path>Z:\\windows\\drivers\\2008r2</Path>\r </PathAndCredentials>\r </DriverPaths>\r </component>\r </settings>\r <settings pass="offlineServicing">\r <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <DriverPaths>\r <PathAndCredentials wcm:action="add" wcm:keyValue="1">\r <Path>Z:\\windows\\drivers\\2008r2</Path>\r </PathAndCredentials>\r </DriverPaths>\r </component>\r <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <EnableLUA>false</EnableLUA>\r </component>\r </settings>\r <cpi:offlineImage cpi:source="catalog://osinstall/image/windows/clg/install_windows server 2008 r2 serverenterprise.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />\r</unattend>'), +(7, '2016-02-29 11:05:41', '2017-01-17 06:06:44', NULL, 'win2012r2', '<?xml version="1.0" encoding="utf-8"?>\r<unattend xmlns="urn:schemas-microsoft-com:unattend">\r <settings pass="generalize">\r <component name="Microsoft-Windows-OutOfBoxExperience" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <DoNotOpenInitialConfigurationTasksAtLogon>true</DoNotOpenInitialConfigurationTasksAtLogon>\r </component>\r <component name="Microsoft-Windows-ServerManager-SvrMgrNc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon>\r </component>\r </settings>\r <settings pass="specialize">\r <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <ProductKey>W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9</ProductKey>\r <ShowWindowsLive>false</ShowWindowsLive>\r <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>\r <TimeZone>China Standard Time</TimeZone>\r <RegisteredOwner />\r <RegisteredOrganization />\r </component>\r <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <fDenyTSConnections>false</fDenyTSConnections>\r </component>\r <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <FirewallGroups>\r <FirewallGroup wcm:action="add" wcm:keyValue="1">\r <Active>true</Active>\r <Group>远程桌面</Group>\r <Profile>all</Profile>\r </FirewallGroup>\r </FirewallGroups>\r </component>\r </settings>\r <settings pass="oobeSystem">\r <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <AutoLogon>\r <Password>\r <Value>eQB1AG4AagBpAGsAZQBqAGkAUABhAHMAcwB3AG8AcgBkAA==</Value>\r <PlainText>false</PlainText>\r </Password>\r <Enabled>true</Enabled>\r <LogonCount>1</LogonCount>\r <Username>Administrator</Username>\r </AutoLogon>\r <OOBE>\r <HideEULAPage>true</HideEULAPage>\r </OOBE>\r <UserAccounts>\r <AdministratorPassword>\r <PlainText>false</PlainText>\r <Value>eQB1AG4AagBpAGsAZQBqAGkAQQBkAG0AaQBuAGkAcwB0AHIAYQB0AG8AcgBQAGEAcwBzAHcAbwByAGQA</Value>\r </AdministratorPassword>\r </UserAccounts>\r <FirstLogonCommands>\r <SynchronousCommand wcm:action="add">\r <Order>1</Order>\r <CommandLine>C:\\firstboot\\winconfig.exe</CommandLine>\r <Description></Description>\r <RequiresUserInput>false</RequiresUserInput>\r </SynchronousCommand>\r </FirstLogonCommands>\r <RegisteredOrganization />\r <RegisteredOwner />\r </component>\r <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <SystemLocale>zh-CN</SystemLocale>\r <UILanguage>zh-CN</UILanguage>\r <UILanguageFallback>zh-CN</UILanguageFallback>\r <UserLocale>zh-CN</UserLocale>\r <InputLocale>zh-CN</InputLocale>\r </component>\r </settings>\r <settings pass="windowsPE">\r <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <ImageInstall>\r <OSImage>\r <InstallFrom>\r <Path>Z:\\windows\\2012r2\\sources\\install.wim</Path>\r <MetaData wcm:action="add">\r <Key>/IMAGE/NAME</Key>\r <Value>Windows Server 2012 R2 SERVERDATACENTER</Value>\r </MetaData>\r </InstallFrom>\r <InstallTo>\r <DiskID>0</DiskID>\r <PartitionID>1</PartitionID>\r </InstallTo>\r <WillShowUI>OnError</WillShowUI>\r </OSImage>\r </ImageInstall>\r <UserData>\r <ProductKey>\r <WillShowUI>OnError</WillShowUI>\r <Key>W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9</Key>\r </ProductKey>\r <AcceptEula>true</AcceptEula>\r </UserData>\r <EnableFirewall>true</EnableFirewall>\r <EnableNetwork>true</EnableNetwork>\r <DiskConfiguration>\r <Disk wcm:action="add">\r <CreatePartitions>\r <CreatePartition wcm:action="add">\r <Type>Primary</Type>\r <Order>1</Order>\r <Size>51200</Size>\r </CreatePartition>\r </CreatePartitions>\r <ModifyPartitions>\r <ModifyPartition wcm:action="add">\r <Active>true</Active>\r <Extend>false</Extend>\r <Format>NTFS</Format>\r <Order>1</Order>\r <Label>System</Label>\r <PartitionID>1</PartitionID>\r </ModifyPartition>\r </ModifyPartitions>\r <DiskID>0</DiskID>\r <WillWipeDisk>true</WillWipeDisk>\r </Disk>\r <WillShowUI>OnError</WillShowUI>\r </DiskConfiguration>\r </component>\r <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <SetupUILanguage>\r <UILanguage>zh-CN</UILanguage>\r </SetupUILanguage>\r <InputLocale>zh-CN</InputLocale>\r <SystemLocale>zh-CN</SystemLocale>\r <UILanguage>zh-CN</UILanguage>\r <UserLocale>zh-CN</UserLocale>\r <UILanguageFallback>zh-CN</UILanguageFallback>\r </component>\r <component name="Microsoft-Windows-PnpCustomizationsWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <DriverPaths>\r <PathAndCredentials wcm:action="add" wcm:keyValue="1">\r <Path>Z:\\windows\\drivers\\2012r2</Path>\r </PathAndCredentials>\r </DriverPaths>\r </component>\r </settings>\r <settings pass="offlineServicing">\r <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <DriverPaths>\r <PathAndCredentials wcm:action="add" wcm:keyValue="1">\r <Path>Z:\\windows\\drivers\\2012r2</Path>\r </PathAndCredentials>\r </DriverPaths>\r </component>\r <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r <EnableLUA>false</EnableLUA>\r </component>\r </settings>\r <cpi:offlineImage cpi:source="catalog://osinstall/image/windows/clg/install_windows server 2012 r2 serverdatacenter.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />\r</unattend>'), (9, '2016-03-29 08:41:04', '2016-06-30 08:45:30', NULL, 'ubuntu14.04', 'd-i debian-installer/locale string en_US.UTF-8\nd-i console-setup/ask_detect boolean false\nd-i keyboard-configuration/layoutcode string us\nd-i netcfg/choose_interface select auto\nd-i netcfg/target_network_config select ifupdown\nd-i mirror/country string manual\nd-i mirror/http/hostname string osinstall\nd-i mirror/http/directory string /ubuntu/14.04/os/x86_64\nd-i mirror/http/proxy string\nd-i live-installer/net-image string http://osinstall.idcos.com/ubuntu/14.04/os/x86_64/install/filesystem.squashfs\nd-i clock-setup/utc boolean false\nd-i time/zone string Asia/Shanghai\nd-i clock-setup/ntp boolean true\n#d-i partman-auto/disk string /dev/sda\nd-i partman-auto/method string regular\nd-i partman-lvm/device_remove_lvm boolean true\nd-i partman-md/device_remove_md boolean true\nd-i partman-lvm/confirm boolean true\nd-i partman-auto/choose_recipe select atomic\nd-i partman/default_filesystem string ext4\nd-i partman/mount_style select uuid\nd-i partman/unmount_active boolean true\nd-i partman-partitioning/confirm_write_new_label boolean true\nd-i partman/choose_partition select finish\nd-i partman/confirm boolean true\nd-i partman/confirm_nooverwrite boolean true\nd-i passwd/root-login boolean true\nd-i passwd/make-user boolean false\nd-i passwd/root-password-crypted password $1$AxPsi$GDSXEkYCIL2xfRuimCMiX1\nd-i user-setup/encrypt-home boolean false\ntasksel tasksel/first multiselect standard\nd-i pkgsel/include string openssh-server build-essential ntp vim dmidecode curl\nd-i pkgsel/update-policy select none\nd-i grub-installer/only_debian boolean true\nd-i grub-installer/with_other_os boolean true\nd-i finish-install/reboot_in_progress note\nd-i debian-installer/exit/reboot boolean true\nd-i preseed/early_command string umount /media || true\nd-i preseed/late_command string \\\nexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/target/usr/lib/x86_64-linux-gnu:/target/lib/x86_64-linux-gnu ; \\\n/target/usr/sbin/dmidecode | grep -qEi ''VMware|VirtualBox|KVM|Xen|Parallels'' && _sn=$(sed q /sys/class/net/*/address) || _sn=$(/target/usr/sbin/dmidecode -s system-serial-number 2>/dev/null | awk ''/^[^#]/ { print $1 }''); \\\n/target/usr/bin/curl -H "Content-Type: application/json" -X POST -d "{\\"Sn\\":\\"$_sn\\",\\"Title\\":\\"配置主机名和网络\\",\\"InstallProgress\\":0.8,\\"InstallLog\\":\\"Y29uZmlnIG5ldHdvcmsK\\"}" http://osinstall.idcos.com/api/osinstall/v1/report/deviceInstallInfo ; \\\n/target/usr/bin/curl -o /tmp/networkinfo "http://osinstall.idcos.com/api/osinstall/v1/device/getNetworkBySn?sn=$_sn&type=raw" ; \\\n. /tmp/networkinfo ; \\\necho -e "auto lo\\niface lo inet loopback\\nauto eth0\\niface eth0 inet static\\naddress $IPADDR\\nnetmask $NETMASK\\ngateway $GATEWAY" > /etc/network/interfaces ; \\\ncp /etc/network/interfaces /target/etc/network/interfaces ; \\\necho "$HOSTNAME" > /target/etc/hostname ; \\\n/target/usr/bin/curl -H "Content-Type: application/json" -X POST -d "{\\"Sn\\":\\"$_sn\\",\\"Title\\":\\"安装完成\\",\\"InstallProgress\\":1,\\"InstallLog\\":\\"aW5zdGFsbCBmaW5pc2hlZAo=\\"}" http://osinstall.idcos.com/api/osinstall/v1/report/deviceInstallInfo'), (10, '2016-06-15 22:46:19', '2016-06-19 21:55:13', NULL, 'xenserver6.5', '<?xml version="1.0" encoding="UTF-8"?>\n<installation srtype="ext">\n <primary-disk>sda</primary-disk>\n <keymap>us</keymap>\n <root-password>yunjikeji</root-password>\n <source type="url">http://osinstall.idcos.com/xenserver/6.5/</source>\n <script stage="filesystem-populated" type="url">http://osinstall.idcos.com/scripts/xenserver.sh</script>\n <admin-interface name="eth0" proto="dhcp" />\n <timezone>Asia/Shanghai</timezone>\n</installation>'), (11, '2016-06-19 21:53:16', '2016-06-22 20:39:11', NULL, 'centos6.7-kvmserver', 'install\nurl --url=http://osinstall.idcos.com/centos/6.7/os/x86_64/\nlang en_US.UTF-8\nkeyboard us\nnetwork --onboot yes --device bootif --bootproto dhcp --noipv6\nrootpw --iscrypted $6$eAdCfx9hZjVMqyS6$BYIbEu4zeKp0KLnz8rLMdU7sQ5o4hQRv55o151iLX7s2kSq.5RVsteGWJlpPMqIRJ8.WUcbZC3duqX0Rt3unK/\nfirewall --disabled\nauthconfig --enableshadow --passalgo=sha512\nselinux --disabled\ntimezone Asia/Shanghai\ntext\nreboot\nzerombr\nbootloader --location=mbr --append="console=tty0 biosdevname=0 audit=0 selinux=0"\nclearpart --all --initlabel\npart /boot --fstype=ext4 --size=256 --ondisk=sda\npart swap --size=2048 --ondisk=sda\npart / --fstype=ext4 --size=51200 --ondisk=sda\npart pv.01 --size 100 --grow\nvolgroup VolGroup0 pv.01\n\n%packages --ignoremissing\n@base\n@core\n@development\n@virtualization\n@virtualization-platform\n\n%pre\n_sn=$(dmidecode -s system-serial-number 2>/dev/null | awk ''/^[^#]/ { print $1 }'')\ncurl -H "Content-Type: application/json" -X POST -d "{\\"Sn\\":\\"$_sn\\",\\"Title\\":\\"启动OS安装程序\\",\\"InstallProgress\\":0.6,\\"InstallLog\\":\\"SW5zdGFsbCBPUwo=\\"}" http://osinstall.idcos.com/api/osinstall/v1/report/deviceInstallInfo\ncurl -H "Content-Type: application/json" -X POST -d "{\\"Sn\\":\\"$_sn\\",\\"Title\\":\\"分区并安装软件包\\",\\"InstallProgress\\":0.7,\\"InstallLog\\":\\"SW5zdGFsbCBPUwo=\\"}" http://osinstall.idcos.com/api/osinstall/v1/report/deviceInstallInfo\n\n%post\nprogress() {\n curl -H "Content-Type: application/json" -X POST -d "{\\"Sn\\":\\"$_sn\\",\\"Title\\":\\"$1\\",\\"InstallProgress\\":$2,\\"InstallLog\\":\\"$3\\"}" http://osinstall.idcos.com/api/osinstall/v1/report/deviceInstallInfo\n}\n\n_sn=$(dmidecode -s system-serial-number 2>/dev/null | awk ''/^[^#]/ { print $1 }'')\n\nprogress "配置主机名和网络" 0.8 "Y29uZmlnIG5ldHdvcmsK"\n\n# config network\ncurl -o /tmp/networkinfo "http://osinstall.idcos.com/api/osinstall/v1/device/getNetworkBySn?sn=${_sn}&type=raw"\nsource /tmp/networkinfo\n\ncat > /etc/sysconfig/network <<EOF\nNETWORKING=yes\nHOSTNAME=$HOSTNAME\nGATEWAY=$GATEWAY\nNOZEROCONF=yes\nNETWORKING_IPV6=no\nIPV6INIT=no\nPEERNTP=no\nEOF\n\ncat > /etc/sysconfig/network-scripts/ifcfg-br0 <<EOF\nDEVICE=br0\nBOOTPROTO=none\nIPADDR=$IPADDR\nNETMASK=$NETMASK\nONBOOT=yes\nTYPE=Ethernet\nNM_CONTROLLED=no\nTYPE=Bridge\nDELAY=0\nEOF\n\ncat > /etc/sysconfig/network-scripts/ifcfg-eth0 <<EOF\nDEVICE=eth0\nBOOTPROTO=none\nONBOOT=yes\nTYPE=Ethernet\nNM_CONTROLLED=no\nTYPE=Ethernet\nBRIDGE=br0\nEOF\n\nprogress "添加用户" 0.85 "YWRkIHVzZXIgeXVuamkK"\n#useradd admin\n\nprogress "配置系统服务" 0.9 "Y29uZmlnIHN5c3RlbSBzZXJ2aWNlCg=="\n\n# config service\nservice=(crond irqbalance libvirtd network ntpd rsyslog sshd sysstat)\nchkconfig --list | awk ''{ print $1 }'' | xargs -n1 -I@ chkconfig @ off\necho ${service[@]} | xargs -n1 | xargs -I@ chkconfig @ on\n\nprogress "调整系统参数" 0.95 "Y29uZmlnIGJhc2ggcHJvbXB0Cg=="\n\n# custom bash prompt\ncat >> /etc/profile <<''EOF''\n\nexport LANG=en_US.UTF8\nexport PS1=''\\n\\e[1;37m[\\e[m\\e[1;32m\\u\\e[m\\e[1;33m@\\e[m\\e[1;35m\\H\\e[m:\\e[4m`pwd`\\e[m\\e[1;37m]\\e[m\\e[1;36m\\e[m\\n\\$ ''\nexport HISTTIMEFORMAT=''[%F %T] ''\nEOF\n\ncat >> /etc/sysctl.conf <<''EOF''\n\nnet.ipv6.conf.all.disable_ipv6 = 1\nnet.ipv6.conf.default.disable_ipv6 = 1\nnet.ipv6.conf.lo.disable_ipv6 = 1\nnet.bridge.bridge-nf-call-arptables = 0\nnet.bridge.bridge-nf-call-ip6tables = 0\nnet.bridge.bridge-nf-call-iptables = 0\nEOF\n\nservice libvirtd start\nvirsh pool-define-as guest_images_lvm logical - - - VolGroup0 /dev/VolGroup0\nvirsh pool-autostart guest_images_lvm\n\nprogress "安装完成" 1 "aW5zdGFsbCBmaW5pc2hlZAo="'); @@ -737,7 +733,7 @@ ALTER TABLE `dhcp_subnets` -- AUTO_INCREMENT for table `hardwares` -- ALTER TABLE `hardwares` - MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7; + MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=40; -- -- AUTO_INCREMENT for table `ips` -- @@ -787,7 +783,7 @@ ALTER TABLE `platform_configs` -- AUTO_INCREMENT for table `system_configs` -- ALTER TABLE `system_configs` - MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=13; + MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `users` --