• 欢迎访问速搜资源吧,如果在网站上找不到你需要的资源,可以在留言板上留言,管理员会尽量满足你!

【速搜问答】如何在虚拟机上安装TrueNAS系统

问答 admin 8个月前 (03-25) 351次浏览 已收录 0个评论

汉英对照:
Chinese-English Translation:

将TrueNAS安装到虚拟机需要先到官网下载好系统iso镜像文件,然后创建适合TrueNAS的虚拟硬件配置,将镜像文件设置为虚拟机启动引导文件,开启虚拟机进入TrueNAS安装引导步骤,根据系统提示依次配置好即可完成安装。

To install truenas to a virtual machine, you need to download the system ISO image file from the official website first, then create a virtual hardware configuration suitable for truenas, set the image file as the boot file of the virtual machine, open the virtual machine, enter the boot step of truenas installation, and complete the installation according to the system prompts.

将 TrueNAS 安装到虚拟机的方法。可以使用.iso 文件将 TrueNAS 安装在虚拟机中。 要获取最新版本的 TrueNAS,请访问 TrueNAS 网站并下载 TrueNAS Core。下一步是将其安装到虚拟机中。

How to install truenas to a virtual machine. Truenas can be installed in a virtual machine using the. ISO file. To get the latest version of truenas, visit the truenas website and download the truenas core. The next step is to install it into the virtual machine.

虚拟机应用

Virtual machine application

由于 TrueNAS 是作为.iso 文件构建和提供的,因此它可以在所有虚拟机应用程序(VMware、VirtualBox、Citrix Hypervisor 等)上运行。在本文档中,使用的是 Windows 的 VMware Workstation Player。

Since truenas is built and provided as an. ISO file, it can run on all virtual machine applications (VMware, VirtualBox, Citrix hypervisor, etc.). In this document, the VMware Workstation player of windows is used.

建议的最低虚拟机设置:

Recommended minimum virtual machine settings:

无论使用哪种虚拟化应用程序,请确保满足这些最低虚拟机设置:

No matter which virtualization application you use, make sure you meet these minimum virtual machine settings:

内存:至少 8GB。

Memory: at least 8GB.

磁盘:至少具有一个 8GB 的虚拟磁盘用于操作系统和引导环境,以及至少一个不小于 4GB 的附加虚拟磁盘用作数据存储。

Disk: at least one 8GB virtual disk is used for operating system and boot environment, and at least one additional virtual disk not less than 4GB is used for data storage.

网络:根据您的主机网络配置,使用 NAT、桥接或仅主机。

Network: depending on your host network configuration, use NAT, bridge, or host only.

VMWare 产品和 EFI 引导模式:

VMware products and EFI boot mode:

当前,有一个第三方错误影响 VMWare 产品上的 EFI(UEFI)引导。在解决此问题之前,应在 BIOS 模式下安装 TrueNAS。

Currently, there is a third party error affecting EFI (UEFI) boot on VMware products. Before solving this problem, truenas should be installed in BIOS mode.

在 VMware VM 中安装 TrueNAS 时,请仔细检查虚拟交换机和 VMware 端口组。TrueNAS VM 内插件或 jails 的网络连接错误可能是由虚拟交换机或 VMware 端口组配置错误引起的。首先确保在交换机上启用了 MAC 欺骗和混杂模式,然后确保也在 VM 正在使用的端口组上启用了。

When installing truenas in a VMware VM, check the virtual switch and VMware port group carefully. The network connection error of truenas VM plug-in or jails may be caused by the configuration error of virtual switch or VMware port group. First, make sure that MAC spoofing and promiscuous modes are enabled on the switch, and then make sure that they are also enabled on the port group that the VM is using.

所有虚拟机管理程序的过程概述

Process overview of all hypervisors

对于大多数虚拟机程序,创建 TrueNAS VM 的过程如下:

For most virtual machine programs, the process of creating truenas VM is as follows:

照常创建新的虚拟机,并注意以下设置。

Create a new virtual machine as usual, and note the following settings.

确保虚拟硬件包括可引导的 CD/DVD 设备,并且指向 TrueNAS 的安装程序映像(通常是 ISO 文件)。

Ensure that the virtual hardware includes bootable CD / DVD devices and points to the setup image (usually an ISO file) of truenas.

确保已配置虚拟网卡,以便可以从您的网络访问它。在许多情况下,“桥接”模式是最佳的。这使网卡看起来就像现有网络中的一个交换机一样。

Make sure the virtual network card is configured so that it can be accessed from your network. In many cases, the “bridge” mode is the best. This makes the NIC look like a switch in the existing network.

在某些产品中,可能要求指定所安装的操作系统的类型。理想的选择是 FreeBSD12 64 位。如果不可用,请尝试使用 FreeBSD 12、FreeBSD 64 位,64 位操作系统或其他选项。(请勿选择 Windows 或 Linux 相关的操作系统类型)。

In some products, it may be required to specify the type of operating system installed. The ideal choice is freebsd12 64 bit. If not, try FreeBSD 12, FreeBSD 64 bit, 64 bit operating system, or other options. (do not select windows or Linux related operating system types).

对于 VMWare 虚拟机管理程序,请以 BIOS 而非 EFI(UEFI)模式安装–请参阅上面的警告。

For VMware hypervisor, install in BIOS instead of EFI (UEFI) mode – see warning above.

确保虚拟机具有足够的内存和磁盘空间。TrueNAS 至少需要 8 GB 内存,并且大多数情况下可能需要更多。通常 20 GB 的磁盘空间就足够了。默认情况下,并非所有虚拟机管理程序都会分配足够的内存。

Make sure the virtual machine has enough memory and disk space. Truenas requires at least 8 GB of memory, and in most cases more. Usually 20 GB of disk space is enough. By default, not all hypervisors allocate enough memory.

引导 VM,然后照常安装 TrueNAS。

Boot the VM and install truenas as usual.

安装完成后,请先关闭虚拟机(而不是重新启动),然后从虚拟机上断开 CD/DVD 的连接,再重新启动虚拟机。

After the installation is complete, shut down the virtual machine (instead of restarting), disconnect the CD / DVD from the virtual machine, and then restart the virtual machine.

重新引导进入 TrueNAS 之后,安装可用的 VM 工具,或适用于 FreeBSD 12 的 VM 工具,确保在引导时加载它们。对于 VMWare 产品,请参阅下面的说明。 对于其他虚拟机监控程序,请访问论坛或在线搜索,以确定它们是否适用。

After rebooting into truenas, install the available VM tools, or VM tools for FreeBSD 12, to ensure that they are loaded at boot time. For VMware products, see the instructions below. For other hypervisors, visit the forum or search online to determine if they are applicable.

VMWare Player 15.5 的安装示例

Installation example of VMware player 15.5

打开 VMware Player,然后单击“创建新虚拟机”以运行“新建虚拟机向导”。

Open VMware player and click create new virtual machine to run the new virtual machine wizard.

1.安装程序光盘映像文件

1. Setup CD image file

选中“安装程序光盘映像文件“选项,点击”浏览“,上传已经下载好的 TrueNAS Core .iso 文件。

Select the “Setup CD image file” option and click “Browse” to upload the downloaded truenas core. ISO file.

2.命名虚拟机

2. Name the virtual machine

在此步骤中,可以更改虚拟机名称和位置。

In this step, you can change the virtual machine name and location.

3.指定磁盘容量

3. Specify the disk capacity

指定初始磁盘的最大容量。默认的 20GB 已经够 TrueNAS 使用了。接下来,选择“将虚拟磁盘存储为单个文件”。

Specifies the maximum capacity of the initial disk. The default 20GB is enough for truenas. Next, select store virtual disk as a single file.

4.检查虚拟机

4. Check the virtual machine

在继续之前,请查看虚拟机配置。默认情况下,VMware Player 不会为虚拟机设置足够的内存。单击”自定义硬件“->”内存“,将滑块拖动到 8GB,然后单击“关闭”。如果要在创建后打开计算机电源,请选择”创建后开启此虚拟机“。

Please review the virtual machine configuration before continuing. By default, VMware player does not set enough memory for the virtual machine. Click Custom hardware memory, drag the slider to 8GB, and then click close. If you want to turn on the computer after creation, select turn on this virtual machine after creation.

为存储添加虚拟磁盘

Adding virtual disks to storage

创建虚拟机后,从虚拟机列表中选择它,然后单击“编辑虚拟机设置”。 单击”添加“,然后选择”硬盘“,选择虚拟磁盘类型为 SCSI, 接着选择”创建新虚拟磁盘“,指定此虚拟磁盘的最大容量。该磁盘将用于数据存储。如果需要,可以通过设置”立即分配所有磁盘空间“来立即分配磁盘空间,选择”将虚拟磁盘存储为单个文件“。最后,命名并选择新虚拟磁盘的位置。

After you create a virtual machine, select it from the list of virtual machines, and then click Edit virtual machine settings. Click add, then select hard disk, select SCSI as the virtual disk type, and then select create new virtual disk to specify the maximum capacity of this virtual disk. The disk will be used for data storage. If necessary, you can allocate disk space immediately by setting “allocate all disk space immediately”, and select “store virtual disk as a single file”. Finally, name and select the location of the new virtual disk.

TrueNAS 安装程序

Truenas setup

从列表中选择虚拟机,然后单击“播放虚拟机”,机器将启动并运行 TrueNAS 安装程序。选择”Install/Upgrade“。

Select the virtual machine from the list, and then click play virtual machine. The machine will start and run truenas setup. Select “Install / upgrade”.

选择引导环境所需的磁盘。

Select the disks required for the boot environment.

选择”YES“, 这将擦除磁盘上的所有内容!

Select “yes”, which will erase everything on the disk!

设置 root 登录密码。

Set the root login password.

选择”Boot via BIOS“。

Select “boot via BIOS”.

TrueNAS 安装完成后,重新启动系统。恭喜,TrueNAS 现在已安装在虚拟机中。

After the truenas installation is complete, restart the system. Congratulations, truenas is now installed in the virtual machine.

适用于 VMware 的 TrueNAS 后续安装

Truenas subsequent installation for VMware

在 VMware VM 中安装 TrueNAS 之后,建议在 TrueNAS 上配置和使用 vmx(4)驱动程序。要在 TrueNAS 启动时加载 VMX 驱动程序,请登录 Web 界面,然后依次转到“系统”->“微调”, 单击”添加“并使用变量”if_vmx_load“创建一个新的可调参数,值为“ YES”,类型为”loader“,然后保存该可调参数:

After installing truenas in VMware VM, it is recommended to configure and use VMX (4) driver on truenas. To load the VMX driver when truenas starts, log in to the web interface, go to system & gt; fine tune, and click Add and use variables_ vmx_ Load “create a new adjustable parameter with the value of” yes “and the type of” loader “, and then save the adjustable parameter:


速搜资源网 , 版权所有丨如未注明 , 均为原创丨转载请注明原文链接:【速搜问答】如何在虚拟机上安装TrueNAS系统
喜欢 (1)
[361009623@qq.com]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址