`

Setup the Solaris diskless root server

阅读更多

Creating an OpenSolaris domU

In this first release, there is no support for virtual disk devices in OpenSolaris domU. What follows is a procedure for creating a diskless client domU.

Setup the Solaris diskless root server for the OpenSolaris domU

Loopback mount the build 31 Solaris DVD ISO image

# mount -F hsfs `lofiadm -a /full/path/to/the/iso/image` /mnt

Create a Solaris root image that the client (the Solaris domU) will boot from using smosservice(1M) to install the client OS services from the DVD image:

dlserver# /usr/sadm/bin/smosservice add -u root -- \
 -x mediapath=/path/to/install/media \
 -x platform=i386.i86pc.Solaris_11 \
 -x cluster=SUNWCXall

Add Clients

Obtain a static IP address and hostname to use for each OpenSolaris domU you want to start.

Now configure each diskless client on the server with:

dlserver# /usr/sadm/bin/smdiskless add -u root -- \
 -i <domU-ipaddr> -e <domU-macaddr> -n <domU-hostname> \
 -x os=i386.i86pc.Solaris_11 \
 -x root=/export/root/<domU-hostname> \
 -x swap=/export/swap/<domU-hostname> \
 -x dump=/export/dump/<domU-hostname>\
 -x swapsize=512 -x dumpsize=512

where <domU-ipaddr> is the IP address that the Solaris domU will use, <domU-hostname> is the corresponding hostname and <domU-macaddr> is the MAC address to assign to the virtual network interface for the Solaris domU. Choose a different MAC address for each client to ensure each virtual network interface will be unique on your subnet.

BFU OpenSolaris over the root image

As a prerequisite, the ON Specific build tools package (SUNWonbld) must be installed on the diskless client server. SPARC and x86 version of the SUNWonbld package are available here.

The Solaris i86xen archives must be bfu'd over the top of the root image(s) and usr image that were created by smosservice(1M).

First create an empty directory for the i86xen kernel bits in each client root filesystem so that bfu knows that these need to be added:

dlserver# mkdir /export/root/<domU-hostname>/platform/kernel/i86xen

At this point, BFU should be used to update the root image for diskless clients using the following syntax (note the -c):

dlserver# /opt/onbld/bin/bfu -c <osox-archive-dir> /export/exec/Solaris_11_i386.all

Then carefully use ACR to resolve any BFU conflicts:

dlserver# /opt/onbld/bin/acr /export/root/<domU-hostname>

Finally, use bootadm(1M) to update the boot archive on the client root image

dlserver# bootadm update-archive -R /export/root/<domU-hostname>

If you do modify and then rebuild the OpenSolaris on Xen code base, BFU should be used in exactly the same way to update the root images and the usr filesystem (/export/exec/Solaris_11_i386.all). Note, however, because that usr filesystem is shared between the clients, that all client roots are (and must be) updated by BFU at the same time.

And Finally …

Back on the dom0 machine, NFS mount the diskless root(s) so that the dom0 domain builder can access them. You will almost certainly have to fiddle with the default restrictive NFS export permissions on dlserver to enable the dom0 kernel to mount them.
On the dom0 box, add an entry like this to /etc/fstab to automatically mount the Solaris domU root image at boot.

dlserver:/export/root    /x/root   nfs   defaults,rw     0 0

Don't forget the mount point!

dom0# mkdir -p /x/root
dom0# mount -a

Create a domain configuration file with entries like the following:

memory = 256
name = "<domU-hostname>"
kernel = "/x/root/<domU-hostname>/platform/i86xen/kernel/unix"
extra = "/platform/i86xen/kernel/unix -B console=xen"
ramdisk = "/x/root/<domU-hostname>/platform/i86pc/boot_archive"
nics = 1
ip = "<domU-ipaddr>"
vif = [ 'mac=<domU-macaddr>, bridge=xenbr0' ]
nfs_root = "dlserver:/export/root/<domU-hostname>"
nfs_server = "<dlserver-ipaddr>"
restart = 'none'

You can now boot the Solaris domain by typing the following command as root on the dom0 kernel:

dom0# xm create -c <config file>

Be patient with the first boot; SMF initialization is not particularly efficient yet on diskless clients, and it may appear to be hung.

Quite a journey, but worth it once you get there!

评论

相关推荐

    Using nfsroot to boot diskless clients on RHEL · Raghu Udiyar

    国外小伙子写的RHEL制作nfs网络pxe启动,还是很不错,按照他的方法绝对不会错!

    diskless-ccboot 2017-crack

    ccboot 2017 破解文件,有兴趣的朋友可以下载下来试试

    数据中心Diskless白皮书202212

    《数据中心Diskless白皮书202212》深入探讨了数据中心架构的转型与创新,提出了Diskless架构这一全新的概念。随着数字化时代的到来,数据中心的重要性日益凸显,它们需要高效处理和存储海量数据,同时也面临着碳中和...

    HSM-Diskless

    1、HSM-Diskless是通过局域网引导Windows的软件。 2、支持 W2K3/WXP/W2KSP4 3、服务器的镜像文件作为虚拟磁盘的存储空间,通过网络交互将服务器的镜像文件真实的模拟成客户机的硬盘。 4、客户机通过使用虚拟硬盘可以...

    DisklessSystem:基于Windows Server 2012 R2开发的无盘工作站管理系统

    在本案例中,我们讨论的是基于Windows Server 2012 R2开发的DisklessSystem,它是一个用于构建和管理无盘工作站环境的应用程序。下面我们将深入探讨这个系统的相关知识点。 1. **无盘技术**: 无盘技术的核心是将...

    Diskless Nodes for Unix/Linux-开源

    标题中的“Diskless Nodes for Unix/Linux-开源”指的是在Unix/Linux操作系统环境中构建和管理无盘节点的技术。这种技术主要用于创建一个没有本地硬盘的计算机节点,它们依赖于网络启动和存储其操作系统镜像在服务器...

    GeDI (GEneric Diskless Installer)-开源

    **GeDI(GEneric Diskless Installer)**是一款开源项目,专为简化无盘客户端的安装和管理工作而设计。无盘客户端系统在许多环境,如学校、图书馆或企业内部网络中,由于其易于管理和维护的特性,被广泛采用。GeDI...

    Diskless Remote Boot in Linux (DRBL)-开源

    DRBL提供无盘或无系统环境。 它使用分布式硬件资源,并使客户端可以完全访问本地硬件。 它还包括Clonezilla,一个类似于Ghost的分区和磁盘克隆实用程序。

    AIX_NIM_安装实例

    - ROOT 资源名称为 `root1`。 - DUMP 资源名称为 `dump1`。 - PAGING 资源名称为 `paging1`。 - HOME 资源名称为 `home1`。 - SHARED_HOME 资源名称为 `shared_home1`。 - TMP 资源名称为 `tmp1`。 - ...

    Diskless Embedded Technology PC-开源

    DIET-PC(无盘嵌入式技术个人计算机)是一种软件套件,使IT专业人员能够使用嵌入式Linux方法基于商品x86(PC),PowerPC(Mac)或ARM(手持)硬件构建开放源GUI设备。

    YUMI – Multiboot USB Creator (Windows)

    DRBL (Diskless Remote Boot in Linux) EASEUS Disk Copy (Disk Cloning Tool) FreeDOS (Balder img) GParted (Partition Tools) GRML (system rescue) HDT (Hardware Detection Tool) Kali (Penetration Testing) ...

    Provisioning Services 5.6 sp1 教程

    PVS 的前身曾是一款知名的 diskless 软件(BXP),可以在服务器端创建一个或多个虚拟磁盘镜像,客户端可以通过网卡方式引导(网卡 PXEbootrom)在 CitrixVDiskDrivers 的支持下连接到服务端为之提供的虚拟盘,并可以...

    Redis 7.0.6 for Windows

    Avoid hang of diskless replication fork child when parent crashes (#11463) Fix crash with module API of list iterator and RM_ListDelete (#11383) Fix TLS error handling to avoid connection drops on ...

    disklessrestore-开源

    该项目用于从崩溃的OS(当前为Linux和Windows)的根文件系统备份中恢复。 它包含无盘OS(基于Debian的操作系统)和一些用于还原OS和Bootloader的Shell脚本。

    redis-5.9.101(6.0-rc1)-x64-windows-bin.rar

    Redis 6.0 introduces SSL, the new RESP3 protocol, ACLs, client side caching, diskless replicas, I/O threads, and many more improvements. Currently in release candidate, will be stable between March ...

    docker安装redis4.0.10-单点持久化详细笔记

    [root@localhost ~]# docker load -i redis_4.0.10.tar 加载完成后,可以使用 docker images 命令来查看已安装的镜像。 [root@localhost ~]# docker images |grep redis gmprd.baiwang-inner....

    redis-cluster集群部署

    redis-server /usr/local/redis-cluster/7002/redis.conf redis-server /usr/local/redis-cluster/7003/redis.conf redis-server /usr/local/redis-cluster/7004/redis.conf redis-server /usr/local/redis-cluster/...

    redis主从搭建的文档

    - 启动命令:`/usr/local/bin/redis-server /etc/redis/redis.conf` - 使用init.d脚本启动:`/etc/init.d/redis-server start` - 查看启动状态:`ps -ef | grep redis` - 使用客户端测试:`redis-cli –h &lt;host&gt;...

    IBM AIX NIM 安装实例

    - 如果选择创建,则需指定 Diskless 和 Dataless 资源名称(如:root1、dump1、paging1 等)、资源目录以及对应的文件系统大小。 2. **配置 NIM 客户端文件集**: - 配置客户端机器名称为 test2。 - 主网络安装...

    redis主从同步介绍.pptx

    - **命令行参数启动**:使用`redis-server --port &lt;slaveport&gt; --slaveof &lt;masterip&gt; &lt;masterport&gt;`,如`redis-server --port 6380 --slaveof 192.168.3.134 6379`。 - **运行时命令启动**:在从节点客户端输入`...

Global site tag (gtag.js) - Google Analytics