Abstract
SmartOS ist ein immutable Hypervisor - der vom Netzwerk in der Box - bis ins DatenCenter skaliert. Die Vorteile von “Just Boot - no Install” kombiniert mit ZFS / DTrace / Zonen / KVM ergeben ein modernes “CloudOS” welches mit 128MB bis 256MB Ram ebenso gut umgeht, wie mit Maschinen die 512GB RAM und mehr bieten.
Vortragender
Michael Widmann - verwendet smartOS mit OS Level Virtualisierung ebenso wie als OS Virtualisierung im produktiven Umfeld.
2. #whoami
●
Michael – Mike Widmann
●
Cofounder nimbus Development GmbH (seit 1999)
●
System Architekt
●
Lotus Notes Admin & Developer
●
Seit 2005 Online Backup Services
●
Solaris inlove von 2007 bis 2010
●
Gewitterwolken am Beziehungshimmel – Oracle / Sun – Solaris
●
Seit 2011 – Beziehungswechsel – zu SmartOS
3. #talk:milestones
●
Geschichte & Übersicht
●
Just Boot – no Install
●
Technologie Stack & Hardware Assimilierung
●
Global und Regional – Zonen & OS Level Virtualisierung
●
Mehr Durchschlagskraft – Crossbow
●
Ein Mutterschiff ist zuwenig – Cloud Orchestration
●
Automate & Delegate
4. Geschichte
●
OpenSolaris – Sun Microsystems – seit 2005
●
Seit 2010 scheint die Sonne aus dem … von Oracle
●
Illumnos: Garrett D'Amore (Ex Solaris Hacker & Fellows)
●
Alle Closed Bits - „rewritten“ oder von BSD portiert.
●
Joyent / Delphix / Nexenta – neue Home Bases
●
KVM Virtualisierung auf Solaris
●
17.8.2011 - Joyent gibt Smartos OSS mit KVM Virtualisierung
●
18.8.2011 – Internes Oracle Memo – Solaris 11 Source closed
5. Der erleuchtete „Kern“
●
Illumnos – based Distros
–
SmartOS
(2 Weekly Build)
–
NexentaStor (Commercial – teilweise OOS)
–
OmniOS (Hardcore Solaris)
–
OpenIndiana (Desktop & Server)
–
XstreamOS / XstreamServer
–
EON Storage
–
Napp-it to GO
–
OpenSXCE
–
Tribblix (relativ neu – aber Solaris Veteran dahinter)
–
Und weitere
7. Nett Boot...
●
USB
●
CDROM
●
PXE Boot
●
Vorteile von PXE Boot SmartOS
–
Sollte ein Fix notwendig sein – kein „Patching“ - neues Image laden
–
Rollback auf ältere Versionen einfach möglich
–
Immutable = Sicher!
–
ZFS Feature Flags prüfen!
8. CD – ROM Boot (never done)
USB Boot (first steps)
Headnode – PXE Boot (best way)
9. Easy Steps to get lost ...
Root PWD
Network (DHCP / FIXED IP)
NTP Server
Data Pool (RAID-Z / Mirror / Something else)
Reboot
Done …
SSH into the „Global Zone of your new SmartOS Host“
… and you are competely lost …
10. Everything is different ...
●
Gängige Betriebssysteme
–
●
Root FS = ON Disc
SmartOS
–
–
●
Root FS = Ramdisc (immutable)
/usr = read only loopback mounted - single compressed file
Viele Dinge nicht möglich
–
Useradd
–
Cp something /usr /etc /root
–
Install „packages“ (möglich aber nicht ganz einfach)
–
Services (SMF) reset on each Boot
11. Was darf ich nun machen?
Filesystem
zones
zones/var
zones/opt
zones/usbkey
/usbkey/shadow
/usbkey/ssh
size
2.0T
2.0T
2.0T
2.0T
1.8T
1.8T
used
143M
4.0G
55K
154K
154K
154K
avail capacity
1.8T
1%
1.8T
1%
1.8T
1%
1.8T
1%
1.8T
1%
1.8T
1%
vi /usbkey/config
zpool attach zones c0t0d0 c0t1d0 (mirror)
zpool add zones mirror c0t2d0 c0t3d0
Mounted on
/zones
/var
/opt
/usbkey
/etc/shadow
/etc/ssh
14. Captain: Deck 1 bis 4 – gesichert
ZONE 1 - KVM
ZONE 2 OS
ZONE 3 KVM
Application
Application
Application
Global Zone
Immutable
ZFS
VNIC
ZFS
Crossbow – Network Stack
Kernel
Hardware
VNIC
ZFS
Virtueller Storage POOL
DTrace
VNIC
22. Scotty Schutzschild für fremdes OS
vmadm create -f ubuntu.json
zfs set compression=on /zones/UUID-disk0
vmadm boot UUID order=cd,once=d /ubuntu.iso,ide
vmadm info UUID vnc{
KVM ZONE
"vnc": {
"host": "192.168.10.2",
Application
"port": 46776,
"display": 40876
VNIC
ZFS
}
}
dann VNCen wir uns das genauer an
23. Getting all together
KVM ZONE
Application
Crossbow – Network Stack
VNIC
ZFS
VNIC – DHCP
MAC von der VNIC (no spoofing possible)
VLAN possible
Virtual Switch (EtherStub Connection möglich)
Kernel
Memory CAP / Scheduler
CPU Shares / VCPU Assignent
Virtueller Storage POOL
ZVOL – mit EXT4
Compressed (performance)
ZFS Throttle
Max Size
24. Crossbow – Die Herausforderung
●
●
2 physikalische Switches
●
2 mal „Energie“ für Host
●
2 mal „Energie“ für Switch
●
Einstellung für Kunden:
●
HOST1
2 physikalische Hosts
50 Mbit Host 1
●
10 Mbit Host 2
HOST2
PNIC1
PNIC2
50 Mbit
10 Mbit
Physischer Switch
Switch
26. :Crossbow – Was wird benötigt
●
Eintrag in der /usbkey/config → Aggregat
●
Virtueller Switch (automatisch / manuell)
●
Zonen (json Files – KVM / OS Zone)
–
Link Aggregation
●
–
Virtueller Switch
●
–
Interface0=MACADRESSE1,MACADDRESSE2,MACADRESSEX
etherstub=vswitch1,vswitch2
ZoneFile Json – NicTAG für VSwitch inkludieren
●
„nic_tag“:“vswitch1“,
27. Cloudorchestration: Server Flotte
●
Aktuelle Möglichkeiten auf SmartOS
●
Joyent DataCenter – SDC
–
–
All in One Stack vom Headnode zu den Compute Nodes
–
●
Hervorragende Analysen (Dtrace / Monitoring etc)
Kostenpflichtig
Project Fifo
–
–
●
Open Source – laufende Entwicklung – Frei zur Nutzung / Donation
Kleinere Environments (Zone Creation / User Management / Dashboard)
Datasets.at
–
Dataset Builder (JSON) – mit den dementsprechenden Images
31. Infracode & Automatisierung
●
Joyent verwendet „Chef Solo“
●
Git für Deployment der Cookbooks
●
Automatisierung vom PXE Boot bis zu den Zonen
●
Automatisierung durch „datasets / images“
●
Überwachung mit Zabbix
32. Conclusio
●
SmartOS ist ideal für:
–
–
Network in a Box – HomeCloud
–
Systeme wo Performance wichtig ist
–
Basis für Private Cloud Systeme
–
Idealer Bare Metal HyperVisor – Datensicherheit
–
●
Cloud Systeme
Less Latency Systeme (keine SAN Anbindung)
SmartOS ist nicht für
–
Desktop Betrieb
–
Betriebssystem Installation