EVE-NG推广
查看: 1822|回复: 1

EVE-NG无法识别iopenwrt

1

主题

14

回帖

1031

积分

高级会员

Rank: 4

积分
1031
我按照http://www.emulatedlab.com/archives/355帖子写的,导入openwrt-latest文件夹以后sourceopenwrt.sh,但在新增NODE里面看不到OPENWRT。
按照帖子的指引http://forum.emulatedlab.com/for ... &extra=page%3D1
查看了/opt/unetlab/html/includes下面只有config.php.distribution
内容如下
<?php
/* TEMPLATE MODE .missing or .hided
*
* .hided: will hide all template not present on system ( no image installed )
* .missing: will display not selectable template not present ( no image installed )
*
*/



DEFINE('TEMPLATE_DISABLED','.missing') ;




/*   Define custom templates:
*
*   Create for exemple /opt/unetlab/html/templates/mytemplate.php and Create /opt/unetlab/html/templates/othertemplate.php
*   Then uncomment lines below
*/

//   $custom_templates =  Array(
//        'mytemplate' => 'My Custom Template1',
//        'othertemplate' => 'An Other Template'
//   );


?>


查看了/opt/unetlab/html/templates目录下也有openwrt.php ,
文件内容如下
<?php
# vim: syntax=php tabstop=4 softtabstop=0 noexpandtab laststatus=1 ruler

/**
* html/templates/openwrt.php
*
* OpenWRT template for UNetLab.
*
* LICENSE:
*
* This file is part of UNetLab (Unified Networking Lab).
*
* UNetLab is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* UNetLab is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with UNetLab. If not, see <http://www.gnu.org/licenses/>.
*
* @author Maosen Sun <sunnymaosen@gmail.com,sun285529808@qq.com>
* @copyright Maosen Sun
* @organization EmulatedLab(QQ Group:593920308)
* @link http://www.eve-ng.com
* @version 20170415
*/

$p['type'] = 'qemu';
$p['name'] = 'OpenWRT';
$p['icon'] = 'OpenWRT.png';
$p['cpu'] = 1;
$p['ram'] = 2048;
$p['ethernet'] = 4;
$p['console'] = 'vnc';
$p['qemu_arch'] = 'x86_64';
$p['qemu_options'] = '-machine type=pc-1.0,accel=kvm -serial mon:stdio -nographic
-nodefconfig -nodefaults -rtc base=utc';
?>

请教一下,这个是什么问题?谢谢。


回复

使用道具 举报

1

主题

14

回帖

1031

积分

高级会员

Rank: 4

积分
1031
 楼主| 发表于 2018-11-3 10:18:43 | 显示全部楼层
参考http://forum.emulatedlab.com/for ... p;highlight=openwrt
能看到OPENWRT了,但还是无法启动
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Copyright   ©2015-2024  EmulatedLab  Powered by Discuz!©   ( 浙ICP备2021010423号-1 )
快速回复 返回列表 返回顶部