智能操作系统 (Zhìnéng cāozuò xìtǒng)
SmartOS

原始链接: https://docs.smartos.org/

## SmartOS 概要 SmartOS 是一个基于 illumos 的 1 型 Hypervisor,提供轻量级操作系统虚拟化(Zones/Containers)和完全硬件虚拟化(KVM/Bhyve)。它独特之处在于作为一个“实时操作系统”运行,从外部介质(PXE、USB)启动,并完全在内存中运行,将本地磁盘专门用于虚拟机。 主要特性包括增强的安全性、快速升级,以及利用 illumos 技术,如 ZFS 用于存储、DTrace 用于内省和强大的安全功能。“安装”过程涉及从 USB 启动并配置基本网络和存储。 虚拟机通过命令行工具(`imgadm` 用于下载镜像,`vmadm` 用于创建/管理)进行管理,并使用 JSON 进行描述,从而实现程序化控制。容器和 HVM 虚拟化都建立在 Zones 技术之上,提供一致的管理和更高的隔离性。 SmartOS 是 Triton 数据中心的核心组件,并受益于强大的社区支持,提供文档、IRC 和邮件列表以供支持和贡献。

## Hacker News 上关于 SmartOS 的讨论 最近 Hacker News 上重新讨论了基于 Solaris 的操作系统 SmartOS。用户提到它过去在该网站上很受欢迎,但在 Joyent 被三星收购后,知名度下降。 一些评论员指出,导致这种衰落的原因有很多。三星在开源方面的声誉被提及,但一个关键问题是,最初的 Joyent 团队(许多是前 Sun 员工)被认为带有精英主义,阻碍了社区参与。 尽管如此,仍然有一些人积极将 SmartOS 用于个人项目,欣赏其独特的工具和与 Solaris 的联系。另一些人指出,它在 Oxide Computer 等公司中仍然有小众应用。总体情绪表明,这是一个强大的系统,但不幸的是,由于公司因素和社区关系,失去了动力。 *(注:一条评论被标记为不当,未包含在此摘要中。)*
相关文章

原文

Welcome to the SmartOS Documentation. Here you'll find everything you need to get started using SmartOS and participating in the community. Information about what's new in recent releases can be found in the SmartOS Changelog.

Quick Start

Not sure where to begin? Try the SmartOS Quick Start Guide!

SmartOS In a Nutshell

SmartOS is a specialized Type 1 Hypervisor platform based on illumos.  It supports two types of virtualization:

  • OS Virtual Machines (Zones, Containers): A light-weight virtualization solution offering a complete and secure userland environment on a single global kernel, offering true bare metal performance and all the features illumos has, namely dynamic introspection via DTrace
  • Hardware Virtual Machines (KVM, Bhyve): A full virtualization solution for running a variety of guest OS's including Linux, Windows, *BSD, Plan9 and more

SmartOS is a "live OS", it is always booted via PXE, ISO, or USB Key and runs entirely from memory, allowing the local disks to be used entirely for hosting virtual machines without wasting disks for the root OS.  This architecture has a variety of advantages including increased security, no need for patching, fast upgrades and recovery.

Virtualization in SmartOS builds on top of the foundational illumos technologies inherited from OpenSolaris, namely:

  • ZFS for storage virtualization
  • Crossbow (dladm) for network virtualization
  • Zones for virtualization and containment
  • DTrace for introspection
  • SMF for service management
  • RBAC/BSM for auditing and role based security
  • And more

SmartOS is typically "installed" by downloading and copying the OS image onto a USB key and then booting that key.  On the first boot a configuration utility will configure your base networking, allow you to set the root password, and allow you to select which disks to use to create the ZFS Zpool which will provide persistent storage.

When you log into SmartOS you will enter the hypervisor, aka "global zone". From here you can download VM Images using the imgadm tool, which are pre-configured Container and HVM virtual machines.  You can then use the vmadm tool to create and manage both containers and hardware virtual machines.

An important aspect of SmartOS is that both OS (Zones) and hardware virtual machines are both built on Zones technology.  In the case of OS virtualization, the guest virtual machine is provided with a complete userland environment on which to run applications directly. In the case of HVM virtualization, the qemu or bhyve process will run within a stripped down Zone.  This offers a variety of advantages for administration, including a common method for managing resource controls, network interfaces, and administration.  It also provides HVM guests with an additional layer of security and isolation not offered by other virtualization platforms.

Finally, instances are described in JSON.  Both administrative tools, imgadm and vmadm, accept and return all data in JSON format.  This provides a simple, consistent, and programmatic interface for creating and managing VM's.

Code of Conduct

As a participant of the illumos community, all projects related to Triton (including SmartOS, Triton, Manta, etc.) we have adopted the illumos Code of Conduct.

Scope

The scope of the code of conduct extends to SmartOS, Triton, and Manta resources including mailing lists, chat, social media, and GitHub repositories.

Enforcement

Conduct violations involving the Triton community may be reported by contacting [email protected] instead of, or in addition to [email protected] as the case may be warranted.

How to Use this Site

This documentation can provide you with a variety of resources for users at all levels.  To get started, download SmartOS now, and be sure to review the Hardware Requirements. Once installed, refer to our Users Guide to help you learn your way around SmartOS.

When you have questions, refer to the SmartOS Community section for pointers to our IRC chat rooms and mailing lists.  When you're ready to start improving and adding your own customizations to SmartOS please refer to our Developers Guide.

SmartOS is a community effort, as you explore and experiment with SmartOS please feel free to edit and contribute to this site to improve the documentation for other users in the community.

About Triton

SmartOS is a fundamental component of the Triton Data Center (Triton) product. Triton source and images are available for at no cost and powers several public and private clouds around the globe, namely the MNX Public Cloud.  As you use SmartOS you will come across hooks that are used by Triton, such as file systems and services named "smartdc".

If you are interested in evaluating the full Triton Data Center product, please contact [email protected].

联系我们 contact @ memedata.com