- 论坛徽章:
- 0
|
在sun官方网站关于LDOM的接受提到了可以安装linux,但是在sun的网站上没有 更多的技术支持资料。经过一番折腾终于安装成功. 这这里和大家分享一下:
1.在T系列的机器安装SUNWldm 包。
2.创建一个ldm
root@blade-6000-b-3 # ldm list -e linux-ldm
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
linux-ldm active -t---- 5001 4 2G 25% 3m
SOFTSTATE
OpenBoot Running
MAC
00:14:4f:f8:6c:a0
HOSTID
0x84f86ca0
VCPU
VID PID UTIL STRAND
0 8 100% 100%
1 9 0.0% 100%
2 10 0.0% 100%
3 11 0.0% 100%
MEMORY
RA PA SIZE
0x8000000 0x188000000 2G
VARIABLES
auto-boot?=false
network-boot-arguments=host-ip=10.0.0.222,subnet-mask=255.255.255.0,file=tftp://10.0.0.194/debian_sparc_boot.img
NETWORK
NAME SERVICE DEVICE MAC MODE PVID VID MTU
vnet2 primary-vsw0@primary network@0 00:14:4f:fb:02:f1 1 1500
DISK
NAME VOLUME TOUT DEVICE SERVER MPGROUP
zvol1 zvol1@primary-vds0 disk@0 primary
VLDCC
NAME SERVICE DESC
ds primary-vldc0@primary domain-services
VCONS
NAME SERVICE PORT
linux-ldm primary-vcc0@primary 5001
|
3.下载Debian 的for sparc 的网络安装文件 http://ftp.nl.debian.org/debian/ ... es/netboot/boot.img
4.启动ldom 进入ok 。修改 network-boot-arguments 为host-ip=<IP>,subnet-mask=<netmask>,file=tftp://tftp-server/boot.img 具体根据自己的情况选择DHCP还是静态IP,TFTP ,http,ftp等协议。 boot net 启动器安装文件。
Sun Blade T6300 Server Module, No Keyboard
Copyright 2008 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.30.0, 2048 MB memory available, Serial #83389600.
Ethernet address 0:14:4f:f8:6c:a0, Host ID: 84f86ca0.
{0} ok boot net
Boot device: /virtual-devices@100/channel-devices@200/network@0 File and args:
\
[ 0.000000] PROMLIB: Sun IEEE Boot Prom 'OBP 4.30.0 2008/12/11 12:16'
[ 0.000000] PROMLIB: Root node compatible: sun4v
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.26-2-sparc64 (Debian 2.6.26-19) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 Thu Aug 20 15:21:01 UTC 2009
[ 0.000000] console [earlyprom0] enabled
[ 0.000000] ARCH: SUN4V
[ 0.000000] Ethernet address: 00:14:4f:f8:6c:a0
[ 0.000000] Kernel: Using 1 locked TLB entries for main kernel image.
[ 0.000000] Remapping the kernel... done.
[ 0.000000] OF stdout device is: /virtual-devices@100/console@1
[ 0.000000] PROM: Built device tree with 23144 bytes of memory.
[ 0.000000] MDESC: Size is 10224 bytes.
[ 0.000000] PLATFORM: banner-name [Sun Blade T6300 Server Module]
[ 0.000000] PLATFORM: name [SUNW,Sun-Blade-T6300]
[ 0.000000] PLATFORM: hostid [84f86ca0]
[ 0.000000] PLATFORM: serial# [00ab4130]
[ 0.000000] PLATFORM: stick-frequency [47868c00]
[ 0.000000] PLATFORM: mac-address [144ff86ca0]
[ 0.000000] PLATFORM: watchdog-resolution [1000 ms]
[ 0.000000] PLATFORM: watchdog-max-timeout [31536000000 ms]
[ 0.000000] PLATFORM: max-cpus [32]
[ 0.000000] Top of RAM: 0x87ef2000, Total RAM: 0x7fa2a000
........................................ 省略
|
5.安装过程基本都是文本菜单, 网卡选择SUNVNET ,SCSI卡选择SUNVDC 才能顺利安装这点大家要注意。
6.安装好后无法直接启动,会进入initramfs。
(initramfs) modprobe sunvnet
[324164.637414] eth0: Sun LDOM vnet 00:14:4f:be:ef:62 h0: Sun LDOM vnet
[324164.646112] eth0: PORT ( remote-mac 00:14:4f:be:ef:de switch-port )
[324164.651743] eth0: PORT ( remote-mac 00:14:4f:be:ef:c2 )
[initramfs) modprobe sunvdc
[324208.648989] sunvdc.c:v1.0 (June 25, 2007)
[324208.653931] sunvdc: vdiska: 25164600 sectors (12287 MB)
[324208.657314] vdiska: vdiska1 vdiska2 vdiska3 vdiska4 vdiska4
(initramfs) mkdir /target
(initramfs) modprobe ext3
(initramfs) mount /dev/vdiska2 /target
[324285.663774] EXT2-fs warning (device vdiska2): ext2_fill_super: mounting ext3 filesystem as ext2
(initramfs) mount /dev/vdiska1 /target/boot
|
7.vi /target/etc/inittab 取消 “T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100" 的注释 后 exit 继续启动启动
Starting deferred execution scheduler: atd.
Starting periodic command scheduler: crond.
Debian GNU/Linux 5.0 ldm-debian ttyS0
ldm-debian login: root
Password:
Last login: Wed Dec 30 16:06:12 HKT 2009 on ttyS0
Linux ldm-debian 2.6.26-2-sparc64-smp #1 SMP Thu Nov 5 03:34:29 UTC 2009 sparc64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
1 failure since last login.
Last was Wednesday, December 30, 2009 PM04:36:54 HKT on ttyS0.
ldm-debian:~# uname -a
Linux ldm-debian 2.6.26-2-sparc64-smp #1 SMP Thu Nov 5 03:34:29 UTC 2009 sparc64 GNU/Linux
ldm-debian:~# cat /proc/cpuinfo
cpu : UltraSparc T1 (Niagara)
fpu : UltraSparc T1 integrated FPU
prom : OBP 4.30.0 2008/12/11 12:16
type : sun4v
ncpus probed : 4
ncpus active : 4
D$ parity tl1 : 0
I$ parity tl1 : 0
Cpu0ClkTck : 0000000047868c00
Cpu1ClkTck : 0000000047868c00
Cpu2ClkTck : 0000000047868c00
Cpu3ClkTck : 0000000047868c00
MMU Type : Hypervisor (sun4v)
State:
CPU0: online
CPU1: online
CPU2: online
CPU3: online
ldm-debian:~#
|
[ 本帖最后由 IT业的民工 于 2009-12-30 16:53 编辑 ] |
|