In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "how to create a domain and install an Oracle Solaris system". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to create a domain and install an Oracle Solaris system.
Network connection between primary domain and guest domain
By default, virtual networks that connect the control domain to the guest domain are 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 don't want to, 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 and can then be used as the primary interface to replace the associated physical switch.
To configure the virtual switch as a network device, first enter the command ifconfig-a to get all the network parameters of the physical device (in the following example, e1000g0). Then disconnect the device and reconnect the virtual switch with the same information (for example, vsw0). When this process is completed, the guest domain can communicate with the control domain through this network connection.
Important precautions!
Before you try to reconfigure the virtual switch, you must log in from the console of the control domain or from a different interface, not the one you are using now, or your conversation will be abruptly terminated! No one wants to see the web interface being accessed terminated because of login.
These changes only take effect until the control domain is restarted, so you must update etc/hostname.* and / etc/dhcp/* to save these changes. In this example, you will rename the file e1000g0 to vsw0 by using the following command.
# 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 with no encryption accelerator, a single virtual network device, and a single virtual hard disk. The next command defines a ZFS file system and allocates an empty file from 10GB 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 the data without allocating any disk blocks. So the file does not occupy any disk space, even if it is indeed a size of 10 GB:
Virtual disks can also be allocated from other terminals, such as physical disks, but the advantage of ZFS is that it is more flexible to use.
The following command creates a domain. Lines 2 and 3 specify the number of CPU and encryption accelerators. Line 4 regulates the memory size of the domain. Line 5 uses the previously defined layer 2 virtual switch to create a virtual network. If we want to use a separate network for this domain, we can create another network device. Line 6 will export an empty disk image from the virtual disk service as the virtual volume vol10@primary-vds0. Line 7 imports the volume into the arrival domain as a virtual disk vdisk10. The command to add a virtual disk is slightly more loaded than other commands; first use these commands to define the resource exported from the virtual disk server, and then import the resource into the appropriate domain. *, lines 8 and 9 are used to generate an ISO image file containing the DVD format of the Oracle Solaris installation.
At this point, the definition of the domain is complete. Instead of using autoboot, we will set the OpenBoot Prom (OBP) variable to force the domain to enter the ok prompt state. Variables to automatically boot the operating system, so let's take a look at the OBP command. The "\" on this command line is an escape character so that we can enter "?" Character as the text value. Then, we need to bind the domain before allocating the specified resources to the domain. This includes assigning a port for use by the virtual console hub-in this case, port 5000. *, we start this domain, which is similar to a boot operation on a physical server: the domain will first load OBP, and then enter the ok prompt state.
It is a good idea to use another terminal window to observe the process. After the ldm bind command is executed, enter the telnet command to open a terminal window. Initially, there is no output by using the telnet command itself (command line with "Press ~?" Start). After entering ldm staty ldom1, OpenBoot is loaded and {0} ok is output.
At this point, I believe you have a deeper understanding of "how to create a domain and install an Oracle Solaris system". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.