eve模拟器_EVE-NG,不仅仅是一款网络模拟软件,更是虚拟仿真环境
EVE-NG(全称Emulated Virtual Environment - Next Generation),继Unetlab 1.0后的Unetlab的2.0新版本,改了名字,原名是Unified Networking Lab统一网络实验室。这款模拟器已经不仅可以模拟网络设备,也可以运行一切虚拟机。理论上,只要能将虚拟机的虚拟磁盘格式转换为qcow2都可以在EVE-NG上运行。
官网:http://www.eve-ng.net/
默认情况下EVE为镜像存储空间分配的数值是有限的,如果你想在EVEng里面装好各种各样的镜像,首先必须有足够大的空间,然后就是需要在EVEng底层给镜像分配空间。
今天我说一下EVE-NG硬盘如何扩容,如何让存储海量镜像。
一、查看当前磁盘使用情况
/dev/mapper/eve--ng--vg-root,这是存储镜像的空间,我们只需要把这个Size扩大即可。
二、给EVE-NG硬盘扩大容量,对于EVE-NG来说,相当于加大物理磁盘容量
把EVE-NG关机后编辑EVE-NG虚拟机
注意:无法扩展具有快照的虚拟机中的磁盘,必须删除快照。
三、EVE-NG系统层面增大VG容量
三、EVE-NG系统层面增大VG容量
1、加电开机EVE-NG,确认硬盘容量为500G
root@eve-ng:~# fdisk -l
……
……
……
Disk /dev/sda: 500 GiB, 536870912000 bytes, 1048576000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6d98196e
Device Boot Start End Sectors Size Id Type(硬盘分区情况)
/dev/sda1 * 2048 999423 997376 487M 83 Linux
/dev/sda2 1001470 62912511 61911042 29.5G 5 Extended (sda2的end sector值,该数值 +1即是sda3的start sector)
/dev/sda5 1001472 62912511 61911040 29.5G 8e Linux LVM
Disk /dev/mapper/eve--ng--vg-root: 23.5 GiB, 25253904384 bytes, 49324032 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/eve--ng--vg-swap_1: 6 GiB, 6442450944 bytes, 12582912 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
root@eve-ng:~#
2、给硬盘sda分区
root@eve-ng:~# fdisk /dev/sda
Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
Partition type
p primary (1 primary, 1 extended, 2 free)
l logical (numbered from 5)
Select (default p): p
Partition number (3,4, default 3): 3
First sector (999424-1048575999, default 999424): 62912512
#(sda3的start sector,该值是sda2的end sector值 +1)
Last sector, +sectors or +size{K,M,G,T,P} (62912512-1048575999, default 1048575999):
# 由于sda1与sda2中间的一些sector没有使用,所以First sector提示的default是999424
Created a new partition 3 of type 'Linux' and of size 470 GiB.
Command (m for help): p
Disk /dev/sda: 500 GiB, 536870912000 bytes, 1048576000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6d98196e
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 999423 997376 487M 83 Linux
/dev/sda2 1001470 62912511 61911042 29.5G 5 Extended
/dev/sda3 62912512 1048575999 985663488 470G 83 Linux
/dev/sda5 1001472 62912511 61911040 29.5G 8e Linux LVM
Partition table entries are not in disk order.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
root@eve-ng:~# reboot (重启,使分区生效)
3、将sda3加入到VG中
查看VG的名字
root@eve-ng:~# vgdisplay
--- Volume group ---
VG Name eve-ng-vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 29.52 GiB
PE Size 4.00 MiB
Total PE 7557
Alloc PE / Size 7557 / 29.52 GiB
Free PE / Size 0 / 0
VG UUID 9MuCtK-vJSR-Y2aw-iIPi-lQa3-0onn-m5uNbv
将sda3加入到eve-ng-vg这个VG中
root@eve-ng:~# vgextend eve-ng-vg /dev/sda3
Physical volume "/dev/sda3" successfully created
Volume group "eve-ng-vg" successfully extended
root@eve-ng:~# vgdisplay
--- Volume group ---
VG Name eve-ng-vg
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 2
Act PV 2
VG Size 499.52 GiB
PE Size 4.00 MiB
Total PE 127877
Alloc PE / Size 7557 / 29.52 GiB
Free PE / Size 120320 / 470.00 GiB
VG UUID 9MuCtK-vJSR-Y2aw-iIPi-lQa3-0onn-m5uNbv
4、扩容LV
查看LV路径
root@eve-ng:~# lvdisplay
--- Logical volume ---
LV Path /dev/eve-ng-vg/root
LV Name root
VG Name eve-ng-vg
LV UUID 0wyDXu-602J-HQ0N-T1Ue-J5si-EFFY-vKO1tX
LV Write Access read/write
LV Creation host, time eve-ng, 2017-03-18 22:23:02 +0200
LV Status available
# open 1
LV Size 23.52 GiB
Current LE 6021
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
--- Logical volume ---
LV Path /dev/eve-ng-vg/swap_1
LV Name swap_1
VG Name eve-ng-vg
LV UUID umXPMX-3BGd-2TR6-Msjn-zp05-GLvx-ReOHx6
LV Write Access read/write
LV Creation host, time eve-ng, 2017-03-18 22:23:02 +0200
LV Status available
# open 2
LV Size 6.00 GiB
Current LE 1536
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1
将剩余容量扩容到/dev/eve-ng-vg/root路径下
root@eve-ng:~# lvextend -l +100%FREE /dev/eve-ng-vg/root
Size of logical volume eve-ng-vg/root changed from 23.52 GiB (6021 extents) to 493.52 GiB (126341 extents).
Logical volume root successfully resized.
root@eve-ng:~# lvdisplay
--- Logical volume ---
LV Path /dev/eve-ng-vg/root
LV Name root
VG Name eve-ng-vg
LV UUID 0wyDXu-602J-HQ0N-T1Ue-J5si-EFFY-vKO1tX
LV Write Access read/write
LV Creation host, time eve-ng, 2017-03-18 22:23:02 +0200
LV Status available
# open 1
LV Size 493.52 GiB
Current LE 126341
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
--- Logical volume ---
LV Path /dev/eve-ng-vg/swap_1
LV Name swap_1
VG Name eve-ng-vg
LV UUID umXPMX-3BGd-2TR6-Msjn-zp05-GLvx-ReOHx6
LV Write Access read/write
LV Creation host, time eve-ng, 2017-03-18 22:23:02 +0200
LV Status available
# open 2
LV Size 6.00 GiB
Current LE 1536
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1
重新定义文件系统大小
root@eve-ng:~# resize2fs /dev/eve-ng-vg/root
resize2fs 1.42.13 (17-May-2015)
Filesystem at /dev/eve-ng-vg/root is mounted on /; on-line resizing required
old_desc_blocks = 2, new_desc_blocks = 31
The filesystem on /dev/eve-ng-vg/root is now 129373184 (4k) blocks long.
5、查看磁盘使用情况
root@eve-ng:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 2.9G 0 2.9G 0% /dev
tmpfs 597M 14M 584M 3% /run
/dev/mapper/eve--ng--vg-root 486G 6.1G 460G 2% /
tmpfs 3.0G 0 3.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 3.0G 0 3.0G 0% /sys/fs/cgroup
/dev/sda1 472M 105M 343M 24% /boot
root@eve-ng:~#
好啦,扩容完成!各位,随意上传镜像吧,镜像再多也不怕!
eve模拟器_EVE-NG,不仅仅是一款网络模拟软件,更是虚拟仿真环境相关推荐
- 在EVE虚拟仿真环境里面安装Juniper防火墙,并通过Web做配置
做一个EVE里面导入Juniper防火墙的镜像,并且使用PC通过WEB页面对Juniper进行配置. 第一步:使用WinSCP从本地Windows向Ubuntu虚拟机导入镜像 第二步:在Ubunbu系 ...
- 免费的配音软件有哪些?推荐这三款配音软件,不再烦恼短视频配音
免费配音软件有哪些?分享三款好用的软件,帮你完成短视频配音 免费的文字转语音软件有很多,但是如果要加上前缀,转换出来的软件最好听起来是有感情的那其实可以pass掉市面上80%的配音软件.毕竟已经202 ...
- eve模拟器上虚拟服务器,没有真机怎么做实验?EVE模拟器了解一下
网络很重要的一个环节就是大量的实践操作,通过教程学习知识点,再用实践来验证这些知识学会了没有,如此反复.这样的问题也随之而来,初学网络连概念都刚刚建立,怎么才能接触到网络设备:交换机.路由器.防火墙等 ...
- android ps2 模拟器,手机目前安卓系统PS2模拟器最好用的是一款叫做呆萌PS2模拟器的APP!这一款竟然是国产的!...
原标题:手机目前安卓系统PS2模拟器最好用的是一款叫做呆萌PS2模拟器的APP!这一款竟然是国产的! 手机目前安卓系统是有PS2模拟器的,最好用的是一款叫做呆萌PS2模拟器的APP,而且这一款还是国人 ...
- EVE模拟器完整路由拓扑实验报告
文章目录 前言 一.EVE模拟器器件选择 二.路由拓扑 1.简单拓扑 2.详细路由注解 三.详细配置 1.R1配置 2.R2配置 3.R3配置 4.R4配置 5.R5配置 6.server配置 7.p ...
- EVE模拟器关联CRT与Wireshark
目录 关联CRT 第一步 可以使用CRT进行EVE设备配置 第二步 CRT可以多窗口进行设备配置 第三步 远程管理EVE模拟器中的设备 关联Wireshark 第一步 下载EVE-NG-Win- ...
- 记:EVE模拟器拓扑配置的保存及导入
参考博客:https://bbs.51cto.com/thread-1599315-1.html### EVE模拟器版本信息: 先关机: 点击这里 稍等一会,让他保存. 再打开 开启并点击R1就能看到 ...
- 关于EVE模拟器思科交换机无法启动问题
今天碰到一个问题,用eve模拟器模拟思科的交换机,发现设备起不来,点了启动以后过一会自己就会关闭,检查了文件的权限以后发现没有问题,开始以为是镜像的问题,后来换了镜像也不对,最后发现是license的 ...
- 最好用的六款虚拟机软件
说起虚拟机,相信作为技术人员的小伙伴们不会感到陌生.虚拟机的使用场景非常多,如搭建测试环境.在Windows系统中安装Linux或在Mac机器上运行Windows系统.甚至还可以用来进行安全实验. 虚 ...
最新文章
- 命名式ACL配置实例
- C3P0连接池的运用
- SkipList 跳跃表
- 隐性语义索引(LSI)
- 读书笔记-互联网思维必读10本书之一《免费》
- JS的DOM和BOM
- spring mvc框架请求注解解析,内部资源视图解析器
- 虚拟机Oracle错误,解决xp虚拟机下oracle的几个错误
- Oracle : 使用JDBC连接ORACLE的三种URL格式
- Pig 变飞机?AI 为什么这么蠢!
- Undertow技术:为什么很多Spring Boot开发者放弃了Tomcat?
- 删除了项目下的\WEB-INF\classes文件夹,在eclipse的tomcat部署启动时报错。
- linux卸载小企鹅输入法,Linux(FC)小企鹅输入法的安装
- Windows删除打开方式多余项
- so easy(并查集)
- 不降价的促销利器--让渡营销
- Lora Ra-01模块初步调试问题记录
- 中拓互联域名小课堂:.购物域名,自建商城的标配
- JavaScript,水仙花数
- 【ORACLE】OGG-微服务架构初探2(MA配置)
热门文章
- python在excel中的应用-Python 取代了 Excel 在银行业务中的地位?
- python搞笑代码-为PYTHON添加define功能【搞笑代码】
- python和c学习-关于本站 - cPython - 给大学生的入门教程
- python打飞机源代码-如何用 Python 打飞机 ?
- 用python画简单的动物-使用Python的turtle画小绵羊
- python游戏程序-Python游戏趣味编程
- python基础知识整理-python基础知识整理——容器
- 快速排序 python菜鸟教程-快速排序
- 使用最新目标跟踪框mmtracking实现自己的目标跟踪项目
- java 无向图子图_无向图的连通子图