This article will show you how to import the solaris 10 branded zone VM Templates to solaris 11.You can download the VM Templates from here.
Before import,ensure that the brand-solaris10 package are installed.
[root@db02:~]# pkg info brand-solaris10
Name: system/zones/brand/brand-solaris10
Summary: Solaris 10 Containers: solaris10 branded zone
Description: Support for the 'solaris10' Brand
Category: System/Virtualization
State: Installed
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.175.0.0.0.2.1
Packaging Date: Wed Oct 19 08:51:32 2011
Size: 784.32 kB
FMRI: pkg://solaris/system/zones/brand/brand-solaris10@0.5.11,5.11-0.175.0.0.0.2.1:20111019T085132Z
If the brand-solaris10 not install then you can use following command to install:
[root@db02:~]#pkg install pkg:/system/zones/brand/brand-solaris10
Packages to install: 1
Create boot environment: No
Create backup boot environment: Yes
DOWNLOAD PKGS FILES XFER (MB)
Completed 1/1 44/44 0.4/0.4
PHASE ACTIONS
Install Phase 74/74
PHASE ITEMS
Package State Update Phase 1/1
Image State Update Phase 2/2
Now,importing solaris 10 branded zone to solaris 11:
[root@db02:zones]# ./solaris-10u10-x86.bin -p /zones -a 192.168.91.12 -i net1 -z zone01
This is an Oracle VM Template for Oracle Solaris Zones.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.
This software and related documentation are provided under a license
agreement containing restrictions on use and disclosure and are
protected by intellectual property laws. Except as expressly
permitted in your license agreement or allowed by law, you may not
use, copy, reproduce, translate, broadcast, modify, license,
transmit, distribute, exhibit, perform, publish, or display any
part, in any form, or by any means. Reverse engineering,
disassembly, or decompilation of this software, unless required by
law for interoperability, is prohibited.
Checking disk-space for extraction
Ok
Checking platform compatibility
The host and the p_w_picpath do not have the same Solaris release:
host Solaris release: 5.11
p_w_picpath Solaris release: 5.10
Will create a Solaris 10 branded zone.
Warning: could not find a defaultrouter
Zone won't have any defaultrouter configured
IMAGE: ./solaris-10u10-x86.bin
ZONE: zone01
ZONEPATH: /zones/zone01
INTERFACE: net1
VNIC: vnicZBI24647
MAC ADDR: 2:8:20:0:61:5d
IP ADDR: 192.168.91.12
NETMASK: 255.255.255.0
DEFROUTER: NONE
TIMEZONE: PRC
Checking disk-space for installation
Ok
Installing in /zones/zone01 ...
100% [===============================>]
Using a static exclusive-IP
Attaching zone01
Booting zone01
Waiting for boot to complete
booting...
booting...
booting...
booting...
booting...
Zone zone01 booted
The zone's root password has been set using the
root password of the local host.
You can change the zone's root password to
further harden the security of the zone: being
root, log into the zone from the local host
with the command 'zlogin zone01'.
Once logged in, change the root password with the
command 'passwd'.
-a: The IP address to be assigned to the zone
-p: The path where the zone is installed.
-i: The network interface card used by the zone //physical network card
-z: Both the zone's name and hostname.
After that,login to zone01 and change root password:
[root@db02:zones]# zlogin zone01
[Connected to zone 'zone01' pts/3]
Oracle Corporation SunOS 5.10 Generic Patch January 2005
# passwd
passwd: Changing password for root
New Password:
Re-enter new Password:
passwd: password successfully changed for root
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
vnicZBI24647: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.91.12 netmask ffffff00 broadcast 192.168.91.255
ether 2:8:20:b1:77:9b
# ping 192.168.91.11
192.168.91.11 is alive
On global zone display network informatiaon:
[root@db02:~]# ifconfig -a4
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
net0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.91.10 netmask ffffff00 broadcast 192.168.91.255
ether 0:c:29:e2:9d:73
net1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 192.168.91.11 netmask ffffff00 broadcast 192.168.91.255
ether 0:c:29:e2:9d:7d
vnic1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 9000 index 4
inet 192.168.92.10 netmask ffffff00 broadcast 192.168.92.255
ether 2:8:20:ee:2a:2b
[root@db02:~]# dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
net0 Ethernet up 1000 full e1000g0
net1 Ethernet up 1000 full e1000g1
[root@db02:~]# dladm show-link
LINK CLASS MTU STATE OVER
net0 phys 1500 up --
net1 phys 1500 up --
hub0 etherstub 9000 unknown --
vnic1 vnic 9000 unknown hub0
vnicZBI24647 vnic 1500 up net1
zone01/vnicZBI24647 vnic 1500 up net1
zone01/net0 vnic 1500 up net0
[root@db02:~]# dladm show-vnic
LINK OVER SPEED MACADDRESS MACADDRTYPE VID
vnic1 hub0 0 2:8:20:ee:2a:2b random 0
vnicZBI24647 net1 1000 2:8:20:b1:77:9b random 0
zone01/vnicZBI24647 net1 1000 2:8:20:b1:77:9b random 0
zone01/net0 net0 1000 2:8:20:6c:e:12 random 0
[root@db02:~]# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/v4 static ok 192.168.91.10/24
net1/v4 static ok 192.168.91.11/24
vnic1/v4 static ok 192.168.92.10/24
lo0/v6 static ok ::1/128
net0/v6 addrconf ok fe80::20c:29ff:fee2:9d73/10
Enable ftp and apache2 on solaris 10 brand zone:
bash-3.2# svcs ftp
STATE STIME FMRI
disabled 3:34:41 svc:/network/ftp:default
bash-3.2# svcs apache2
STATE STIME FMRI
disabled 3:34:35 svc:/network/http:apache2
bash-3.2# svcadm enable ftp
bash-3.2# svcadm enable apache2
bash-3.2# svcs ftp
STATE STIME FMRI
online 3:49:02 svc:/network/ftp:default
bash-3.2# svcs apache2
STATE STIME FMRI
online 3:49:05 svc:/network/http:apache2
©著作权归作者所有:来自51CTO博客作者candon123的原创作品,谢绝转载,否则将追究法律责任
solarisSolaris
共同学习,写下你的评论
评论加载中...
作者其他优质文章