`

opensolaris FAQ

阅读更多

Frequently Asked Questions

1. How do I Switch to a Static IP System if I Don't Have Access to the System's Desktop?

The following steps can be used to configure a wired network interface to have a static IP address.

  1. Run the following series of commands:

    # svcadm disable network/physical:nwam
    
    
    # svcadm enable network/physical:default
    
    
    # echo <IP_addr> > /etc/hostname.<ifname>
    
    
    # echo <hostname> > /etc/nodename
    
    
  2. Run the following command:

    # vi /etc/hosts
    
    

    And, append this line to the file:

    <IP_addr> <hostname> <hostname>.local loghost
    

    Then, edit the entries for the loopback addresses, so that these entries contain only 'localhost' as the alias. In other words, edit the line for the '::1' entry to show the following:

    ::1 localhost

    And, edit the line for the 127.0.0.1 entry to show the following:

    127.0.0.1 localhost
  3. Run the following command:

    # vi /etc/netmasks
    
    

    And, append this line to the file:

    <network> <netmask>
    
  4. Run the following commands:

    # ifconfig <ifname> plumb
    
    
    # ifconfig <ifname> <IP_addr> netmask <netmask> up
    
    
  5. If you use DNS to resolve hostnames, perform these additional steps:

    1. Configure the file, /etc/resolv.conf(4) , to work with the DNS servers for your network. You may need to consult your network administrator for this information.

      An example of the /etc/resolv.conf file may look like this:

      domain mycompany.com
             nameserver 192.168.1.118
             nameserver 192.168.2.220 
    2. Run the following command:

      # cp /etc/nsswitch.dns
       /etc/nsswitch.conf
      
      
  6. Configure a default route:

    If your network does not have a discoverable default router, you need to set a static default route on your system. You may need to consult your network administrator for this information.

    To set up a static default route, add your network's default router IP address to the /etc/defaultrouter(4) file as shown in the following commands:

    # echo <default_route_IP_addr> >> /etc/defaultrouter
    
    
    # route add default <default_route_IP_addr>
    
    

2. Does my SPARC Client Support WAN boot?

The automated installer requires WAN boot support for SPARC clients. You can check whether your client open boot prompt supports WAN boot by checking whether network-boot-arguments is a valid variable that can be set in the eeprom. If the variable network-boot-arguments is displayed, or if it returns the output network-boot-arguments: data not available , the open boot prompt supports WAN boot installations.

# eeprom | grep network-boot-arguments


network-boot-arguments: data not available

If there is no output to the above command, then WAN Boot is not supported.

3. Where do I find the AI ISO Image that I Need?

Download an AI ISO image for x86 clients or for SPARC clients from http://www.opensolaris.com/get/ . The automated installer will use this AI ISO image to install the OpenSolaris OS to your client systems.

Store the AI ISO image on your local file system. For example, store the image at /export/aiimages/osol-0906-ai-x86.iso .

4. How do I Modify the Manifest File to Point to Repository of my Choice?

You can modify the following default repository information in the manifest file:

<ai_pkg_repo_default_authority>
     <main url="http://pkg.opensolaris.org" authname="opensolaris.org"/>
</ai_pkg_repo_default_authority>

If your IPS repository is pkg.mycompany.com and the authorization is mycompany.com , change pkg.opensolaris.org to pkg.mycompany.com and opensolaris.org to mycompany.com .

<ai_pkg_repo_default_authority>
     <main url="http://pkg.mycompany.com" authname="mycompany.com"/>
</ai_pkg_repo_default_authority>

5. How do I Install a Particular OpenSolaris Development Build?

Development builds of the OpenSolaris operating system are available in-between releases. See http://www.opensolaris.org/os/downloads/ .

The build number or release of the AI ISO image that you specify in the installadm create-service command with the -s option must be the same build number or release of the OpenSolaris operating system that you specify in the AI manifest.

Check the build number or release for the AI ISO image when you download the image.

In the AI manifest, if you want to install a specific version of the OpenSolaris OS, you can specify the version in the package entire . The IPS repositories include the full FMRI for each version of a package. Use the FMRI string to specify a specific version of the package, entire , in the AI manifest.

The following example specifies that OpenSolaris build 111 be installed to the client.

<ai_manifest name="ai_packages">
     <ai_install_packages>
         <pkg name="entire@0.5.11-0.111"/>
         <pkg name="SUNWcsd"/>
         <pkg name="SUNWcs"/>
         <pkg name="babel_install"/>
         <pkg name="openoffice"/>
         <pkg name="SUNWTcl"/>
     </ai_install_packages>
     <ai_uninstall_packages>
         <pkg name="babel_install"/>
         <pkg name="slim_install"/>
     </ai_uninstall_packages>
</ai_manifest>

6. How do I Locate the Default AI Manifest for an Install Service?

The default AI manifest for each install service is called default.xml . This file is located at /var/ai/<port>/AI_data , where <port> is the port number of the install service. You can use the following procedure to locate this file.

  1. Find the name of the install service that has the default manifest that you want to modify.

    The name of the install service is the name that you provided in the installadm create-service command when you created the install service. If you didn't provide an install service name, the installadm create-service assigned a service name for your service.

    You can view a the list of enabled install services on your subnet by using the following command:

    # /usr/sbin/installadm list
    
  2. Find the port number where this install service is running. You can get your port number using the following command, where <svc_name> is the service name.

    # svccfg svc:/system/install/server:default
     listprop
     AI<svc_name>
    
    

    For example, if the service name is 0906sparc , you can run the following command to get the properties of the 0906sparc :

    # svccfg svc:/system/install/server:default
     listprop
    
     AI0906sparc
    

    Extract the port number from the value, txt_record .


Note - Do not modify the default AI manifest file. You can, however, copy this file and create a new default manifest for an install ervice. For instructions, see How to Replace the Default AI Manifest .


7. How Can I Cleanup a Failed Service?

If installadm create-service fails to create an install service, use the following procedures to clean up.

  1. Run installadm delete-service to remove the failed install service:

    # installadm delete-service [-x
    ] svcname
    
    
  2. If that command fails with the following message:

    The specified service does not exist: <svcname>

    Try the following procedure:

    1. Check if the automated installer webserver had been started for the service.

      First, search for the port number used for the webserver by finding the dns-sd process associated with webserver. An example of how to do this search by using the ps(1) command, and the resulting output, is as follows:

      # ps -ef | grep dns-sd | grep " svc2 "
       \
      root 11216 1 0 Apr 15 pts/2 0:00
       \
      /usr/bin/dns-sd -R svc2 _OSInstall._tcp local
       \
      46502 aiwebserver=192.168.2.1
      
    2. Kill this process, as in this example:

      # kill -9
       11216
      
      

      The example output shows that the webserver for the serivce, svc2 , is being served off of port 46502.

    3. Now search for the webserver process that's associated with this port number, and kill that process. See the following example:

      # ps -ef | grep installadm/webserver | grep 46502
       \
      root 11026 1 1 Apr 15 pts/2 71:35
       \
      /usr/bin/python2.4
       \
      /usr/lib/installadm/webserver -p 46502 /var/ai/46502
      
      # kill -9 11026
      
    4. Now, remove the data directory for the install service, which also has that port number found above, 4652, it its path:

      # rm -rf
       /var/ai/46502
      
      
  3. If you want to delete the target image path directory that was specified for the failed install service, remove the <targetdir> that you use in the installadm create-service command:

    # rm -rf
     targetdir
    
    

As a further step, see 8. How do I Cleanup DHCP Configurations for a SPARC Install Service?

8. How do I Cleanup DHCP Configurations for a SPARC Install Service?

When you run the installadm create-service command with the -i and -c options, the DHCP server is configured . To cleanup the DHCP configurations for a failed or deleted SPARC install service, log into the DHCP Manager and manually remove the DHCP macros for the install service. And, remove any IP addresses that were configured when you created the install service.

For more information, see the dhcpmgr(1M) man page.

9. How do I Run Automated Installations in Debug Verbose Mode?

You can run the installer in verbose debug mode, in order to capture more information about the installation in the install_log file.

When you use the installadm create-service command to create an install service, or you use the installadm create-client command to set up a custom client, these commands populate the install configuration file. For x86 systems, this file is the GRUB menu.lst file. For SPARC systems, this file is the install.conf file. In order to enable debug mode, you need to set the install_debug option to enable in this install configuration file, as per the following instructions.

  • For x86 systems, the menu.lst configuration file is created in the /tftpboot/ directory with one of the following filename formats:

    • If you used the installadm create-service -n <service_name> command, the filename is menu.lst.<service_name> .

    • If you used the installadm create-client -e <mac> command, the filename is menu.lst.01<mac> .

    In this file, the options are provided as kernel parameters, such as the following:

    kernel$ ... -B install_media=...,livessh=enable,install_debug=enable

    Since the install_debug option in the above example is set to enable , the installer will run in verbose debug mode.

  • For SPARC systems, the install.conf file is populated in the ai_image_dest directory when an install service is created by using an installadm create-service command, such as the following:

    # installadm create-service [-n
     svc_name
    ] [-s
     ai_iso_image
    ] ai_image_dest
    
    

    In the install.conf file, the options are defined as name-value pairs, such as the following:

    $ cat <ai_image_dest>/install.conf
    
    
    ...
    install_debug=enable
    
    
    ...

    Since the install_debug option in the above example is set to enable , the installer will run in verbose debug mode.

10. How do I Enable Remote Access to an AI Client by Using ssh ?

You can enable network access to an automated install client by using ssh . You can use this access to remotely observe an installation process.

Enable this access by setting the option, livessh , to enable in the installation configuration file. When this access is enabled, you can log in to the AI client by using the username and password, “jack/jack”.

  • For x86 systems, the menu.lst configuration file is created in the /tftpboot/ directory with one of the following filename formats:

    • If you used the installadm create-service -n <service_name> command, the filename is menu.lst.<service_name> .

    • If you used the installadm create-client -e <mac> command, the filename is menu.lst.01<mac> .

    In this file, the options are provided as kernel parameters, such as the following:

    kernel$ ... -B install_media=...,livessh=enable,install_debug=enable
    

    The livessh option is this excerpt is set to enable .

  • For SPARC systems, the install.conf file is populated in the ai_image_dest directory when an install service is created by using an installadm create-service command such as the following:

    # installadm create-service [-n <service_name>] [-s <ai_iso_image>] <ai_image_dest>

    In the install.conf file, the options are defined as name-value pairs, such as:

    $ cat <ai_image_dest>/install.conf
    
    
    ...
    livessh=enable
    
    
    ...

    The livessh option is this excerpt is set to enable .

11. How do I Boot the Install Environment Without Starting an Installation?

You can boot to single-user mode using -s as an option to the kernel. Use the following instructions:


Caution - Make sure to use the -s option so that an installation will not begin.


  1. Specify the -s option as follows:

    • For a SPARC system, use the following command:

      OK boot net:dhcp -s
      
      
    • For an x86 system, edit the GRUB menu and add the -s option to the kernel line.

  2. Login as root and run the following command:

    svcadm disable auto-installer
    
    

12. How do I Generate Encrypted Passwords?

One method of generating encrypted passwords for the OpenSolaris OS is to create a user of the intended name and password on the OpenSolaris OS, copy the password from the /etc/shadow file between the 1st and 2nd colons of the user's record, and add that information into the 'userpass' or 'rootpass' values in the SC manifest.

See How to Create Custom SC Manifest Files .

13. Is the Automated Installer Backwards Compatible?

No, the OpenSolaris 2009.06 automated installer is not backward compatible with ISO images or automated installer tools from earlier OpenSolaris releases. Use OpenSolaris 2009.06 automated installer tools and procedures with the OpenSolaris 2009.06 operating system and 2009.06 ISO images only.

14. How is the default target disk selected?

You can use the <ai_target_device> tag to specify a particular target disk on which to install the OpenSolaris OS. See Defining an Install Target . If you do not specify a target disk, the automated installer chooses a default target for installing the OpenSolaris OS.

The default target disk is selected as follows:

  1. The installer gets the recommended size for installing the OpenSolaris OS from the AI libraries. Currently, the recommended size is 12 GB.

  2. The installer searches for available disks on the client.


    Note - The installer selects only the following types of disks:

    • For SPARC clients, the installer searches for disks with a VTOC label.

    • For x86 clients, the installer searches for Solaris partitions.


  3. When the first disk is found, the installer checks the size of that disk.

    • If the size is greater than or equal to the recommended size, the installer selects the disk and returns to the installation procedure.

    • If the size is less than the recommended size, the installer goes to the next disk to check the size.

  4. If there is no match, the automated installation fails.

分享到:
评论

相关推荐

    Hadoop FAQ--浙江大学数学系方建勇.doc

    ### Hadoop FAQ -- 关键知识点解析 #### 1. Hadoop 是什么? Hadoop 是一个分布式计算平台,采用 Java 编写。它借鉴了 Google 文件系统(GFS)和 MapReduce 的设计理念,能够处理大规模数据集。Hadoop 主要由两个...

    你必须知道的495个C语言问题清晰中文版PDF

    此外,还涉及了Linux和UNIX操作系统的学习资料,包括CBT视频教程、系统管理员参考资料、系统编程资料、以及FreeBSD、OpenBSD、NetBSD、Solaris/OpenSolaris等操作系统的学习资源。这些资源的提供,对于希望深入学习...

    python3.6.5参考手册 chm

    Python参考手册,官方正式版参考手册,chm版。以下摘取部分内容:Navigation index modules | next | Python » 3.6.5 Documentation » Python Documentation contents What’s New in Python ...

    [附源码+数据库+毕业论文+部署教程+配套软件]基于SpringBoot+MyBatis+MySQL+Maven+Vue的停车场管理系统,推荐!

    一、项目简介 包含:项目源码、数据库脚本等,该项目附带全部源码可作为毕设使用。 项目都经过严格调试,eclipse或者idea 确保可以运行! 该系统功能完善、界面美观、操作简单、功能齐全、管理便捷 二、技术实现 jdk版本:1.8 及以上 ide工具:IDEA或者eclipse 数据库: mysql5.5及以上 后端:spring+springboot+mybatis+maven+mysql 前端: vue , css,js , elementui 三、系统功能 1、系统角色主要包括:管理员、用户 2、系统功能 前台功能包括: 用户登录 车位展示 系统推荐车位 立即预约 公告展示 个人中心 车位预定 违规 余额充值 后台功能: 首页,个人中心,修改密码,个人信息 用户管理 管理员管理 车辆管理 车位管理 车位预定管理,统计报表 公告管理 违规管理 公告类型管理 车位类型管理 车辆类型管理 违规类型管理 轮播图管理 详见 https://flypeppa.blog.csdn.net/article/details/146122666

    springboot656基于java-springboot的农机电招平台毕业设计(代码+数据库+论文+PPT+演示录像+运行教学+软件下载).zip

    项目已获导师指导并通过的高分毕业设计项目,可作为课程设计和期末大作业,下载即用无需修改,项目完整确保可以运行。 包含:项目源码、数据库脚本、软件工具等,该项目可以作为毕设、课程设计使用,前后端代码都在里面。 该系统功能完善、界面美观、操作简单、功能齐全、管理便捷,具有很高的实际应用价值。 项目都经过严格调试,确保可以运行!可以放心下载 技术组成 语言:java 开发环境:idea 数据库:MySql 部署环境:maven 数据库工具:navica 更多毕业设计https://cv2022.blog.csdn.net/article/details/124463185

    Python程序设计学习思维导图-仅供参考

    内容为Python程序设计的思维导图,适用于新手小白进行浏览,理清思路

    2024-Stable Diffusion全套资料(软件+关键词+模型).rar

    2024-Stable Diffusion全套资料(软件+关键词+模型).rar

    mmexport1741417035005.png

    mmexport1741417035005.png

    COMSOL三维锂离子电池全耦合电化学热应力模型:模拟充放电过程中的多物理场耦合效应及电芯内应力应变情况,COMSOL锂离子电池热应力全耦合模型,comsol三维锂离子电池电化学热应力全耦合模型锂离子

    COMSOL三维锂离子电池全耦合电化学热应力模型:模拟充放电过程中的多物理场耦合效应及电芯内应力应变情况,COMSOL锂离子电池热应力全耦合模型,comsol三维锂离子电池电化学热应力全耦合模型锂离子电池耦合COMSOL固体力学模块和固体传热模块,模型仿真模拟电池在充放电过程中由于锂插层,热膨胀以及外部约束所导致的电极的应力应变情况结果有电芯中集流体,电极,隔膜的应力应变以及压力情况等,电化学-力单向耦合和双向耦合 ,关键词: 1. COMSOL三维锂离子电池模型; 2. 电化学热应力全耦合模型; 3. 锂离子电池; 4. 固体力学模块; 5. 固体传热模块; 6. 应力应变情况; 7. 电芯中集流体; 8. 电极; 9. 隔膜; 10. 电化学-力单向/双向耦合。,COMSOL锂离子电池全耦合热应力仿真模型

    基于传递矩阵法的一维层状声子晶体振动传输特性及其优化设计与应用,声子晶体传递矩阵法解析及应用,Matlab 一维层状声子晶体振动传输特性 传递矩阵法在声子晶体的设计和应用中具有重要作用 通过调整声子

    基于传递矩阵法的一维层状声子晶体振动传输特性及其优化设计与应用,声子晶体传递矩阵法解析及应用,Matlab 一维层状声子晶体振动传输特性 传递矩阵法在声子晶体的设计和应用中具有重要作用。 通过调整声子晶体的材料、周期和晶格常数等参数,可以设计出具有特定带隙结构的声子晶体,用于滤波、减震、降噪等应用。 例如,通过调整声子晶体的周期数和晶格常数,可以改变带隙的位置和宽度,从而实现特定的频率范围内的噪声控制。 此外,传递矩阵法还可以用于分析和优化声子晶体的透射谱,为声学器件的设计提供理论依据。 ,Matlab; 一维层状声子晶体; 振动传输特性; 传递矩阵法; 材料调整; 周期和晶格常数; 带隙结构; 滤波; 减震; 降噪; 透射谱分析; 声学器件设计,Matlab模拟声子晶体振动传输特性及优化设计研究

    头部姿态估计(HeadPose Estimation)-Android源码

    头部姿态估计(HeadPose Estimation)-Android源码

    永磁同步电机FOC、MPC与高频注入Simulink模型及基于MBD的代码生成工具,适用于Ti f28335与dspace/ccs平台开发,含电机控制开发文档,永磁同步电机控制技术:FOC、MPC与高

    永磁同步电机FOC、MPC与高频注入Simulink模型及基于MBD的代码生成工具,适用于Ti f28335与dspace/ccs平台开发,含电机控制开发文档,永磁同步电机控制技术:FOC、MPC与高频注入Simulink模型开发及应用指南,提供永磁同步电机FOC,MPC,高频注入simulink模型。 提供基于模型开发(MBD)代码生成模型,可结合Ti f28335进行电机模型快速开发,可适用dspace平台或者ccs平台。 提供电机控制开发编码器,转子位置定向,pid调试相关文档。 ,永磁同步电机; FOC控制; MPC控制; 高频注入; Simulink模型; 模型开发(MBD); Ti f28335; 电机模型开发; dspace平台; ccs平台; 编码器; 转子位置定向; pid调试。,永磁同步电机MPC-FOC控制与代码生成模型

    light of warehouse.zip

    light of warehouse.zip

    考虑温度和气体排放等因素的工业乙醇发酵过程及其Matlab源码-乙醇发酵-气体排放-Matlab建模和仿真-代谢路径

    内容概要:文章深入讨论了工业乙醇发酵的基本原理及工艺流程,特别是在温度和气体排放(如CO2及其他有害气体)影响下的发酵效果分析。文章介绍了乙醇发酵的重要环节,如糖分解、代谢路径、代谢调控以及各阶段的操作流程,重点展示了如何通过Matlab建模和仿真实验来探索这两个关键环境因素对发酵过程的具体影响。通过动态模型仿真分析,得出合适的温度范围以及适时排除CO2能显著提升发酵产乙醇的效果与效率,从而提出了基于仿真的优化发酵生产工艺的新方法。 适用人群:从事生物工程相关领域研究的科学家、工程师及相关专业师生。 使用场景及目标:适用于实验室环境、学术交流会议及实际生产指导中,以提升研究人员对该领域内复杂现象的理解能力和技术水平为目标。 其他说明:附录中有详细的数学公式表达和程序代码可供下载执行,便于有兴趣的研究团队重复实验或者继续扩展研究工作。

    Tomcat资源包《Tomcat启动报错:CATALINA-HOME环境变量未正确配置的完整解决方案》

    本资源包专为解决 Tomcat 启动时提示「CATALINA_HOME 环境变量未正确配置」问题而整理,包含以下内容: 1. **Apache Tomcat 9.0.69 官方安装包**:已验证兼容性,解压即用。 2. **环境变量配置指南**: - Windows 系统下 `CATALINA_HOME` 和 `JAVA_HOME` 的详细配置步骤。 - 常见错误排查方法(如路径含空格、未生效问题)。 3. **辅助工具脚本**:一键检测环境变量是否生效的批处理文件。 4. **解决方案文档**:图文并茂的 PDF 文档,涵盖从报错分析到成功启动的全流程。 适用场景: - Tomcat 9.x 版本环境配置 - Java Web 开发环境搭建 - 运维部署调试 注意事项: - 资源包路径需为纯英文,避免特殊字符。 - 建议使用 JDK 8 或更高版本。

    java毕业设计源码 仿360buy京东商城源码 京东JavaWeb项目源代码

    这是一款仿照京东商城的Java Web项目源码,完美复现了360buy的用户界面和购物流程,非常适合Java初学者和开发者进行学习与实践。通过这份源码,你将深入了解电商平台的架构设计和实现方法。欢迎大家下载体验,提升自己的编程能力!

    java-springboot+vue的乒乓球馆预约管理系统源码.zip

    系统选用B/S模式,后端应用springboot框架,前端应用vue框架, MySQL为后台数据库。 本系统基于java设计的各项功能,数据库服务器端采用了Mysql作为后台数据库,使Web与数据库紧密联系起来。 在设计过程中,充分保证了系统代码的良好可读性、实用性、易扩展性、通用性、便于后期维护、操作方便以及页面简洁等特点。

    【javaweb毕业设计源码】大学生求职就业网

    这是一款专为大学生打造的求职就业网JavaWeb毕业设计源码,功能齐全,界面友好。它提供简历投递、职位搜索、在线交流等多种实用功能,能够帮助你顺利进入职场。无论你是想提升技术水平还是寻找灵感,这个源码都是不可多得的资源。快来下载,让你的求职之路更加顺畅吧!

    useTable(1).ts

    useTable(1).ts

    DSP实验报告汇总.pdf

    实验一: 1、进行CCS6.1软件的安装,仿真器的设置,程序的编译和调试; 2、熟悉CCS软件中的C语言编程; 3、使用按键控制LED跑马灯的开始与停止、闪烁频率; 4、调试Convolution、FFT、FIR、FFT-FIR实验,编制IIR算法并调试,并在CCS软件上给出实验结果。 实验二: 1、利用定时器周期中断或下溢中断和比较器比较值的修改来实现占空比可调的PWM波形; 2、改变PWM占空比控制LED灯的亮暗,按键实现10级LED灯亮暗调整; 3、模拟数字转换,转换过程中LED指示,并在变量窗口显示转换结果; 4、数字模拟转换,产生一个正弦波,转换过程中LED指示,转换完成后在CCS调试窗口显示波形。 实验三: 1、SCI异步串行通信实验; 2、SPI及IIC同步串行通信实验; 3、CAN现场总线串行通信实验; 4、传输过程中LED指示。 实验四: 1、电机转速控制实验。

Global site tag (gtag.js) - Google Analytics