Create a zone in Solaris

Source: Internet
Author: User

Create a zone in Solaris (in practice)
------------------------------------------------------------------
1. Create and configure zone Parameters
Zonecfg-Z MoC
MoC: no such zone configured
Use 'create' to begin creating a new zone.
Zonecfg: MOC> Create # create a zone
Zonecfg: MOC> set zonepath =/export/home/MOC # Set the directory where the zone file is located
Zonecfg: MOC> set autoboot = true # Set the zone to automatically start when the host is started.
Zonecfg: MOC> Add net # Add Network
Zonecfg: MoC: Net> set physical = elxl0 # Set the physical Nic used by the Zone
Zonecfg: MoC: Net> set address = 192.168.11.200 # Set the IP address used by the zone. After the setting is successful, the IP address is bound to the physical network card of the system. Use ifconfig-a to view the IP address.
Zonecfg: MoC: Net> end # network configuration completed
Zonecfg: MOC> commit # submit configuration information. In fact, the configuration information is transferred from the memory to the hard disk configuration file.
Zonecfg: MOC> export # export configuration information and print the configuration information on the screen
Zonecfg: MOC> verify # confirm that the required resources are correctly configured and that zonepath has been set
Zonecfg: MOC> exit # exit zonecfg
Zoneadm-z moc install # Install the zone based on the Zone configuration information from the previous commit
Zoneadm-z moc boot # Start Zone

------------------------------------------------------------------
2. Configure the system in the Zone
Zlogin-c moc # log on to the Zone and enter the operating system installation and configuration interface, including language selection and user information configuration.

The cup is very good. Why is the layout of the articles I wrote in VIM so neat.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.