How to Create a domain and install the Oracle Solaris System

Source: Internet
Author: User
Tags oracle solaris

We have learned about installing logical domains and creating guest domains in previous articles. Next we will discuss network connections between main domains and guest domains, the installation of the Oracle Solaris system is also involved. Speaking of Solaris, is your application compatible with Solaris 11?

Network Connection between main domains and guest Domains

By default, the virtual network of the Connection Control domain and the guest domain is disabled. This method provides an additional security layer by isolating the network traffic from the control domain to the guest domain. Of course, if you do not want this, for example, if the control domain is used as a Jumpstart server for the guest domain, the virtual switch can be configured as a network device, then, it can be used as the main interface to replace the related physical switch.

To configure a vswitch as a network device, run ifconfig-a to obtain all network parameters of the physical device (in the example below, e1000g0 ). Disconnect the device and reconnect to the vswitch with the same information (for example, vsw0 ). When this process is completed, the guest domain can communicate with the control domain through this network.

Important Notes!

Before you attempt to reconfigure the vswitch, you must log on from the console of the control domain or from a different interface instead of the current interface. Otherwise, your conversation will be terminated suddenly! No one wants to see that the network interface being accessed is terminated due to logon.

Oracle Solaris "src =" http://windows.chinaitlab.com/UploadFiles_3263/201103/20110328103607997.jpg "width = 498 onload =" javascript: if (this. width> 498) this. width = 498; ">

These changes are only valid before the control domain is restarted. Therefore, you must update etc/hostname. * and/etc/dhcp/* to save these changes. In this example, you can use the following command to rename the e1000g0 file to vsw0.

# Mv/etc/hostname. e1000g0/etc/hostname. vsw0

# Mv/etc/dhcp. e1000g0/etc/dhcp. vsw0

Create a domain and install the Oracle Solaris System

In the following example, we create a fictitious guest domain ldom1 without an encryption accelerator, a single virtual network device, and a single virtual hard disk. The following command defines a ZFS file system and assigns a 10 Gb empty file as the Solaris System Disk:

# Zfs create rpool/ldoms

# Zfs set mountpoint =/ldoms rpool/ldoms

# Zfs set compression = on rpool/ldoms

# Zfs create rpool/ldoms/ldom1

# Mkfile-n 10g/ldoms/ldom1/disk0.img

In the previous command line, start ZFS compression to save disk space. Use the mkfile command to create an empty file and then write data without allocating any disk blocks. Therefore, the file does not occupy any disk space, even if it is indeed 10 GB:

Virtual Disks can also be allocated from other terminals, such as physical disks. However, ZFS is more flexible to use.

The following command creates a domain. 2nd and 3 lines specify the number of CPUs and encryption accelerators. Row 3 specifies the memory size of the domain. Row 5th uses the previously defined layer-2 vswitch to create a virtual network. If you want to use an independent network for this domain, you can create another network device. Line 6th exports an empty disk image from the Virtual Disk Service as the Virtual Volume vol10 @ primary-vds0. Line 3 imports the volume into the guest domain as the Virtual Disk vdisk10. Compared with other commands, the command for adding a virtual disk is a little load. First, use these commands to define the resources exported from the virtual disk server, and then import the resources to the corresponding domain. Finally, lines 8th and 9 are used to generate an ISO image file that contains the Oracle Solaris installation DVD format.

Now, the domain definition operation has been completed. We need to set the OpenBoot Prom (OBP) variable to force the domain to enter the OK prompt State, instead of using autoboot? Variable to automatically guide the operating system, so let's take a look at the OBP command. "\" In this command line is an escape character, so that we can enter "? "Character as text value. Then, we need to bind the domain before assigning the specified resource to the domain. This includes allocating a port for the vconsole hub-in this example, port 5000. Finally, we start this domain, which is similar to executing the boot operation on the physical server: The domain first loads OBP and then enters the OK status.

Using another terminal window to observe this process is a good way. After the ldm bind command is executed, enter the telnet command to open a terminal window. Initially, the telnet command itself does not have any output (the command line uses "Press ~?" ). After ldm staty ldom1 is input, OpenBoot is loaded and {0} OK is output.

Related Article

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.