- 浏览: 1318532 次
- 性别:
- 来自: 广州
文章分类
- 全部博客 (351)
- Java General (37)
- .net General (2)
- Linux Toy (55)
- Oracle (81)
- Mysql (11)
- Programer Career (12)
- Oh, my living ! (2)
- Shell Script (8)
- Web Service (0)
- Linux Server (22)
- Php/Python/Perl (3P) (2)
- Javascript General (5)
- Saleforce Apex Dev (2)
- Web General (5)
- Xen & VM tech. (17)
- PSP (13)
- OpenSolaris (34)
- php (1)
- RAI/flex/action script (16)
- asterisk/CTI (7)
- 交互设计 (6)
- English (3)
- Lucene (1)
最新评论
-
GuolinLee:
markmark
JVM调优总结 -Xms -Xmx -Xmn -Xss -
di1984HIT:
写的太好啊。
JVM调优总结 -Xms -Xmx -Xmn -Xss -
javajdbc:
javajdbc 写道
JVM调优总结 -Xms -Xmx -Xmn -Xss -
javajdbc:
...
JVM调优总结 -Xms -Xmx -Xmn -Xss -
alvin198761:
非常感谢,国外的被封杀了,你这里还有一份
How to Convert An Image-Based Guest To An LVM-Based Guest
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.
-
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
-
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
-
Run the following command:
# vi /etc/netmasks
And, append this line to the file:
<network> <netmask>
-
Run the following commands:
# ifconfig <ifname> plumb # ifconfig <ifname> <IP_addr> netmask <netmask> up
-
If you use DNS to resolve hostnames, perform these additional steps:
-
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
-
Run the following command:
# cp /etc/nsswitch.dns /etc/nsswitch.conf
-
-
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.
-
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
-
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.
-
Run installadm delete-service to remove the failed install service:
# installadm delete-service [-x ] svcname
-
If that command fails with the following message:
The specified service does not exist: <svcname>
Try the following procedure:
-
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
-
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.
-
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
-
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
-
-
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.
-
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.
-
-
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:
-
The installer gets the recommended size for installing the OpenSolaris OS from the AI libraries. Currently, the recommended size is 12 GB.
-
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.
-
-
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.
-
-
If there is no match, the automated installation fails.
发表评论
-
ZFS Pool 里增加硬盘做镜像
2010-04-04 09:02 5379ZFS 第一次出现在 OpenSolaris 上是 ... -
ZFS 的简单使用
2010-04-04 08:59 1745ZFS 的简单使用 ZFS 被 Sun 称为史上最 ... -
opensolaris 让pkg 更快,请用中国源...
2010-04-03 18:33 2036想写一些关于opensolaris的文章很久了,不过一直没有这 ... -
在osol jeos 中使用zfs
2010-04-03 15:54 1905ZFS 作为 Solaris 10 和 O ... -
在osol jeos 中查看硬件信息 1
2010-04-03 15:38 1298. 查看cpu的状态 # psrinfo -v ... -
在osol jeos 中安装 程序 2
2010-04-03 14:10 2207Part2: Creating NAS server on O ... -
在osol jeos 中安装 程序 1
2010-04-03 14:08 1376Part 1: Check JeOS readiness as ... -
Opensolaris 在xen中的PVM 捷径。
2010-04-03 13:47 1379一直以下,都想在Xen(oracle vm)中安装opens ... -
solaris 10 一句话
2009-09-09 08:59 3177环境:SunOS szxsolaris 5.10 s10_6 ... -
Sun xVM hypervisor
2008-03-16 08:30 1557Here is Sun's announcement on S ... -
Setup the Solaris diskless root server
2008-03-16 08:12 2150Creating an OpenSolaris domUIn ... -
Solaris 8 Network Install from Linux
2008-03-16 08:08 1673I was able to successfully inst ... -
磁带机
2008-03-06 14:11 14921. device: root@nwtgz # ls /dev ... -
Solaris 初步设置
2008-03-05 21:14 25571.配置root用户SSH登陆 # vi /etc/ ... -
Enabling SSH on a Minimal Solaris 10 Install
2008-03-03 16:37 1582If you need to manage a Solaris ... -
Install sis900 on solaris 10 i386
2008-03-02 22:34 13881. download from : http://homep ... -
Export sunos 5.8 NFS to linux client
2008-02-26 20:57 21811. export dir: root@nwtgz # cat ... -
Installation of Solaris 10_x86 on qemu (linux host
2008-02-25 21:45 2239Normally installation of guest ... -
通过pkg-get在Solaris上通过互联网安装软件
2008-02-25 21:41 27181. 安装CSWpkggeg (Install CSWpkgg ... -
OpenSolaris Xen domU
2008-02-25 11:39 2123This page describes the install ...
相关推荐
【OpenSolaris初体验 - OpenSolaris 2008.05】 OpenSolaris是Sun Microsystems开发的一个基于UNIX的开放源代码操作系统,其2008.05版本为初学者提供了一次探索和体验这个系统的绝佳机会。本文将详细介绍如何准备、...
《OpenSolaris操作系统详解——基于北大课件及中文简明使用手册》 OpenSolaris,由Sun Microsystems开发,是一款开源的、基于UNIX的操作系统,它以其先进的技术、强大的性能和高度可定制性著称。本篇文章将结合北京...
### Pro OpenSolaris:一种新的开源操作系统面向Linux开发者与管理员 #### 一、概述 《Pro OpenSolaris:一种新的开源操作系统面向Linux开发者与管理员》是一本由Harry J. Foxwell博士与Christine Tran共同编著的...
OpenSolaris Bible Paperback: 1008 pages Publisher: Wiley; 1 edition (February 12, 2009) Language: English ISBN-10: 0470385480 ISBN-13: 978-0470385487 Format: PDF You can buy this book: Amazon.com ...
**openSolaris系统详解** openSolaris是Sun Microsystems公司推出的一款开源操作系统,它是基于Solaris操作系统的源代码发展而来。Solaris系统以其高效、稳定和安全性闻名,尤其在企业级服务器市场占据重要地位。...
### OpenSolaris 详细介绍 #### SUN公司及其开源产品概述 SUN公司,全称为Stanford University Network,是一家致力于网络计算的先驱企业,其愿景“The Network is the Computer”深刻地体现了其对网络技术的前瞻...
在OpenSolaris操作系统中部署Samba服务是一项关键任务,它允许你将系统作为网络服务器,为其他设备提供文件和打印机共享。以下是如何在OpenSolaris上安装、配置和管理Samba服务的详细步骤: 首先,你需要下载适用于...
标题中提到的知识点是“在VirtualBox下安装OpenSolaris0811安装笔记”。这里需要了解的知识包括: 1. VirtualBox是一款开源的虚拟机软件,允许用户在单个计算机上运行多个操作系统,实现不同系统的虚拟化环境,从而...
《操作系统介绍:OpenSolaris 项目简明使用手册 -- 学生指南》.pdf
OpenSolaris是一款开源的操作系统,它基于Solaris操作系统,后者最早由Sun Microsystems公司开发。OpenSolaris是Sun公司对社区的开放源码版本,提供了一个自由和开放的平台,允许用户和开发者使用、修改和重新发布源...
OpenSolaris 2008.05 是一个开源操作系统,由 Sun Microsystems 开发,它基于 Solaris 操作系统,并提供了许多创新特性和强大的管理工具。这篇文档详细介绍了如何安装和使用 OpenSolaris 2008.05,包括在物理机器、...
《OpenSolaris svcs命令详解及其源码剖析》 OpenSolaris操作系统中,svcs命令是服务管理的核心工具,它提供了对系统服务状态、配置、依赖关系等信息的查询和控制功能。本文将深入探讨svcs命令的工作原理,并对源码...
### OpenSolaris虚拟化技术概览 OpenSolaris是一款开源的操作系统,其源自Sun Microsystems的Solaris操作系统。本文档将详细介绍OpenSolaris中的虚拟化技术,包括Zones、BrandZ、Xen等,并探讨这些技术如何帮助企业...
《OpenSolaris:深入解析安全可靠操作系统的源码》 OpenSolaris,源自Sun Microsystems的Solaris操作系统,曾经是高端服务器领域的领航者。这款操作系统以其卓越的性能、安全性和可靠性著称,尤其是在多处理器系统...
标题:“Writing Device Driver(Illumos/OpenSolaris)”涉及的主题是关于在Illumos开源项目中开发OpenSolaris操作系统设备驱动程序的过程和相关知识。Illumos是基于OpenSolaris的一个开源项目,旨在继续发展和维护...
《OpenSolaris在SPARC平台上的安装指南》 OpenSolaris操作系统不仅支持x86架构,也兼容SPARC架构的硬件。以下是一份详细的OpenSolaris在SPARC平台上的安装教程,旨在帮助用户顺利进行安装过程。 首先,你需要准备...
《OpenSolaris "snoop"命令源码解析》 在OpenSolaris操作系统中,"snoop"是一个强大的网络监控工具,它允许用户捕获并分析网络数据包。深入理解"snoop"命令的源码,有助于我们更好地掌握网络诊断、性能优化和安全...
### Solaris 10 及 OpenSolaris 系统介绍 #### Sun系统平台的飞速发展 Sun Microsystems 是计算机科学领域的重要参与者之一,其产品线覆盖了从硬件架构到操作系统等多个层面。Sun 的系统平台随着时间的推移经历了...
### OpenSolaris系统管理核心知识点解析 #### 一、OpenSolaris系统管理综述 **OpenSolaris** 是一款开源操作系统,它源自Sun Microsystems的Solaris操作系统。OpenSolaris不仅继承了Solaris的强大功能和稳定性,...