Loading...
Life's Curriculum
by Bart Kus - email "me" at this domain
Life's Curriculum
History: Solaris
View page
Source of version: 15
(current)
!#Create a new user {CODE()} # Create a normal user $ sudo useradd -m USER # Make them superuser $ sudo usermod -P "System Administrator" -R root USER # Add them to sudoers $ sudo bash -c 'echo "USER ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/svc-system-config-user' {CODE} !#Create a new zone {CODE()} $ sudo zonecfg -z ZONE create commit exit $ sudo zoneadm -z ZONE install $ sudo zoneadm -z ZONE boot $ sudo zlogin -C ZONE {CODE} !#Configure LDOMs !!#Initial control domain config Based on [http://docs.oracle.com/cd/E19604-01/821-0406/initialconfigofcontroldomain/index.html|this] and [http://www.oracle.com/technetwork/articles/systems-hardware-architecture/beginners-vm-server-sparc-256946.pdf|this]. {CODE()} $ sudo ldm add-vds primary-vds0 primary $ sudo ldm add-vcc port-range=5000-5100 primary-vcc0 primary $ sudo ldm add-vsw net-dev=net0 primary-vsw0 primary $ sudo svcadm enable vntsd $ sudo ldm set-crypto 1 primary # LDOM v1.3 no longer requires control domain to have 0 MAUs in order to shuffle CPUs $ sudo ldm set-vcpu 4 primary $ sudo ldm set-memory 16160M primary $ sudo ldm add-config initial {CODE} !!#Per-LDOM config {CODE()} sudo ldm add-domain scite sudo ldm add-vcpu 128 scite sudo ldm add-memory 32G scite sudo ldm add-vnet vnet1 primary-vsw0 scite sudo zfs create -o sync=disabled -V 32G rpool/scite sudo ldm add-vdsdev /dev/zvol/dsk/rpool/scite vol1@primary-vds0 sudo ldm add-vdisk vdisk1 vol1@primary-vds0 scite sudo ldm set-variable auto-boot\?=false scite sudo ldm set-variable boot-device=/virtual-devices@100/channel-devices@200/disk@0 scite {CODE} !#Modify Gentoo ISO to boot in a Logical Domain The current Gentoo [http://distfiles.gentoo.org/releases/sparc/autobuilds/20141201/install-sparc64-minimal-20141201.iso|install-sparc64-minimal-20141201.iso] doesn't boot in an LDom. It freezes at the mdraid scan step. To bypass this problem, I've removed the mdadm start script from the ISO. Here is the resulting [http://www.bartk.us/gentoo-bkus.iso|gentoo-bkus.iso]. If you'd like to create a new ISO yourself, follow these steps. !!#Modify Gentoo SPARC ISO to remove mdadm from startup {CODE()} # On your Solaris box: sudo lofiadm -a install-sparc64-minimal-20141201.iso sudo mkdir -P /mnt/gentoo sudo mount /dev/lofi/1 /mnt/gentoo scp /mnt/gentoo/image.squashfs linux-box: # Now on your linux-box: unsquashfs image.squashfs rm squashfs-root/etc/init.d/mdraid mksquashfs image.squashfs squashfs-root # Back to your Solaris box: mkdir ~/gentoo-iso cp -r /mnt/gentoo/* ~/gentoo-iso scp linux-box:image.squashfs ~/gentoo-iso mkisofs -N -D -R -d -l -J -G ~/gentoo-iso/boot/isofs.b -B ... -graft-points -relaxed-filenames -V "GentooSPARC" -o gentoo-sparc.iso {CODE}
Source
Comments
Menu
Home
Wiki
Wiki Home
Last Changes
List Pages
Structures
Blogs
List Blogs
Rankings
File Galleries
List Galleries
Log In
Username:
Password:
CapsLock is on.
Log in
I forgot my password
Register