《奔跑吧Linux内核入门篇》实验记录
推荐使用 VirtualBox,开源免费。
内核推荐 ubuntu 18.04
一、下载系统镜像
到官网下载一个ubuntu 18.04 镜像文件
二、创建虚拟机步骤:
- 打开 VirtualBox
- 点击新建
- 名称填写ubuntu,类型和版本会自动识别,没有识别手动选择。(类型:Linux 版本:ubuntu 64-bit)
- 选择内存大小(物理内存的20%左右或更多),下一步
- 虚拟硬盘:现在创建虚拟硬盘,创建
- 虚拟硬盘文件类型:默认,下一步
- 存储在物理硬盘上:动态分配(会自动扩容硬盘大小),下一步
- 选择文件位置和大小,点击创建
- 选中刚刚创建的虚拟机,点击设置 --> 存储 --> 控制器:IDE --> 没有盘片 --> 点击右侧光盘图标 --> 选择一个虚拟光盘文件 --> 选择第一步下载的镜像文件 --> 点击确定
- 点击启动,进入操作系统安装界面
如果是在Linux系统中使用 VirtualBox,点击启动按钮后会提示缺少某些内核模块,根据提示安装这些内核模块即可,在某些Linux发行版中,需要先给内核模块签名,才能正常加载。详细内容:自行网络搜索 “Linux 内核模块签名” "Linux安装内核模块"