13.EVE-NG does not have enough memory? Teach you to expand virtual memory!
List of articles (follow Wechat official account EmulatedLab, get articles in time and download links)
1. EVE-NG introduction (the best simulator for EVE-NG, the era of simulation environment is coming! )
2. Introduction of EVE-NG installation process
3. EVE-NG imports Dynamips and IOL
4. EVE-NG imports QEMU image
5. EVE-NG Associate SecureCRT,VNC,Wireshark
6. EVE-NG network card is bridged to take you into more advanced experiments.
7. EVE-NG hard disk is expanded to store a large number of images.
8. EVE-NG customizes personal images, and scripts are imported quickly.
9. EVE-NG accommodates H3C, Huawei, and swallows GNS3
10. Here comes the EVE-NG image! Create the largest EVE communication circle in China
11. EVE-NG image attacks again, omnipotent!
12. Increase the holdings of EVE-NG image and step onto the altar!
13. EVE-NG does not have enough memory? Teach you to expand virtual memory!
14. EVE-NG updates are convenient and effortless!
15. EVE-NG minority image, help to taste fresh!
16. EVE-NG experience Seafile, discard 10K/s network disk
17 、.
Click to view matching video tutorials!
EVE-NG does not have enough memory? Teach you to expand virtual memory!
1. Log in to the system with the set account and password (the default account is ROOT password is eve), and first check whether there is enough hard disk space in the root directory of the virtual machine through the df-lh command.
2. Check the size of the current swap partition through the free-m command. The current system swap partition is 4GB.
3. Through dd if=/dev/zero of=/swap-1 bs=1024M count=16, create a 16GB exchange file named swap-1 in the root directory of the system. Of course, if the 16GB is not enough, you can create a larger exchange file by adjusting the numbers after the count. And use the cd / and ls commands to see if the swap file has been built.
4. Convert and mount the file format you just created by mkswap / swap-1 and swapon / swap-1 commands.
5. Use the swapon-s and free-m commands to check whether the swap file has been mounted successfully and the size of the current swap partition on the system. The size of the swap partition in the following figure has been increased from the original 4GB to the total 20GB size of 416.
6. Modify the fstab file under / etc through the WinScp tool so that the swap file just created is mounted automatically when the system is booted. Of course, it can also be modified in the virtual machine by means of vim.
7. Add a line / swap-1 swap swap default 00 to the fstab file and save the file.
8. Restart the virtual machine through shutdown-r now, and verify whether the created swap file is mounted automatically to expand the capacity of the swap partition through free-m and swapon-s.
Thank you for the tutorials made by Harbin-SIX in the group!
EmulatedLab QQ group, look forward to your joining!
Follow the official Wechat account EmulatedLab and get updated articles and download links in time!
This article was published on the official account EmulatedLab of Wechat in 2017-05-03.
Maosen | Mori