如何在虚拟机中安装Debian

前言

关于这篇博客

首先这篇博客我主要是为了记录在大二下学期学习计算机组成原理时作PA的时候在虚拟机中安装Debian的过程,主要是为了之后有须要的时候可以来此查看。
也能够为未来的学弟学妹或者入门者提供点帮助。(就一点点帮助,毕竟我也挺菜的(= ^ =))ios

Author:LitMonkey

Time:2019.6.10

Location:NUAA

Installing a GNU/Linux VM

新建一个虚拟机

  1. 打开Oracle VM VirtualBox Manager
  2. 点击新建创建一个新的虚拟机。
    在这里插入图片描述
  3. 设定虚拟机的名称,我起名为NewLinux,选择操做系统类型为Debian (32-bit),而后点击下一步
  4. 设定内存大小,这里设定为1024MB的内存。
    在这里插入图片描述
  5. 选择如今建立虚拟磁盘来建立一个用于存放VM的虚拟硬盘,而后选择建立
  • 选择硬盘类型,使用默认选项VDI (VirtualBox Disk Image),而后点击下一步
  • 选择动态分配便可。
  • 文件位置和大小设定。这一步主要是选择文件存放的文件夹以及设定文件的占用存储空间的最大值,选择默认选项便可,这里我自定义了文件名称为NewLinux。注意:存放文件的路径中不要出现中文字符。

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

为虚拟机安装操做系统

  1. 选择新建立的虚拟机,而且选择工具栏中的设置
  2. 选择存储选项卡而且选择控制器下的没有盘片
    在这里插入图片描述
  3. 点击选择一个虚拟光盘文件…而且选择格式为.iso的文件,点击打开。
  4. 选择下方的OK
  5. 如今选择设置好的虚拟机点击启动。若是全部步骤都是正确的,虚拟机屏幕中将会出现Debian GNU/Linux installer boot menu注意:若是鼠标被困在了虚拟机窗口中,按下 右 Ctrl 键便可恢复。
  6. 选择Graphical install
  7. 如今你将会在屏幕中看到Select a language

在虚拟机中安装Debian

首先,须要切断虚拟机的网络,在断网环境下安装。web

  1. Select a language. 选择English - English而且点击Continue注意:不要选择Chinese,由于在用Chinese时会有一些潜在的问题出现。
  2. Select your location. 选择other -> Asia -> China
  3. Configure locales. 使用默认选项United States - en_US.UTF - 8便可。
  4. Configure the keyboard. 使用默认选项American English便可。
  5. Load installer components from CD.
  6. Configure the network.
  • Network autofiguration failed 咱们在一开始就切断了网络链接,因此安装程序没法链接到网络,点击Continue进入下一步便可。
  • Network configuration method 选择Do not configure the network at this time而且点击Continue
  • Hostname 使用默认设置debian便可。
  1. Set up users and passwords.
  • Root password 牢记此密码。
  • Full name for the new user 使用本人名字的汉语拼音做为用户名。
  • Username for your account 使用和user name 相同的名称。
  • Choose a password for the new user 这个密码对应于上面新创建的用户。
  1. Configure the clock. 这一步一闪而过= =。
  2. Partition disks.
  • Partitioning method 选择Guided - use entire disk
  • Select disk to partition. 选择为一个一个磁盘。
  • Overview. 全部信息的总览,确认无误后点击Continue
  • Write the changes to disks? 选择Yes而后点击Continue
  1. Install the base system.
  • Scan another CD or DVD? 选择No而后点击Continue
  1. Configure the package manager. 这一步咱们会在以后的实验中配置,点击Back
  • Continue without a network mirror? 选择Yes而且点击Continue
  1. Participate in the package usage survey? 选择任何选项都可。
  2. Software selection. 确保选择了standard system utilities而后点击Continue
  3. Install the GRUB boot loader on a hard disk.
  • Install the GRUB boot loader to the master boot record?选择Yes而后点击Continue
  1. 完成安装!! 到如今Debian已经安装完成了,可是在点击Continue以前,须要确保如下事项已经完成:
  • 打开网络链接。
  • 移除CD,即将 .ios 删除或者放到其余文件夹中。
    在出现如下界面前最好不要按任何按键。
    在这里插入图片描述