SlideShare a Scribd company logo
1 of 24
Download to read offline
SmartOS Primer
Daniele Stroppa, ZHAW
strp@zhaw.ch, @moviolone
www.cloudcomp.ch
Agenda
■ Getting Started
■ Disk Administration
■ Images Administration
■ Virtual Machines Administration
■ Network Administration
www.cloudcomp.ch
Getting Started - Requirements
■ System Requirements
○ Minimum 1GB RAM*
○ 64-bit x86 CPU
■ To use KVM SmartOS requires an Intel CPU
with VT-x extensions
○ http://ark.intel.com/Products/VirtualizationTechnology
* Since SmartOS is a live OS, the more RAM the better
www.cloudcomp.ch
Getting Started - USB boot
■ Get the latest USB image from http://wiki.
smartos.
org/display/DOC/Download+SmartOS
■ Create a bootable USB drive from the image
○ e.g.: on Linux, dd if=smartos-$RELEASE-usb.img
of=/dev/sdb bs=1024
■ Stick the USB drive in a port and boot
www.cloudcomp.ch
Getting Started - PXE boot
■ Get the latest Platform image from http://wiki.
smartos.
org/display/DOC/Download+SmartOS and
unpack it in your netboot env
○ Make sure the kernel and the boot archive have the
following path: (prefix)
/platform/i86pc/kernel/amd64/unix for the kernel and
(prefix)/platform/i86pc/amd64/boot_archive for the
boot archive. (prefix) can be any path, e.g.
/tftpboot/smartos/20130724
www.cloudcomp.ch
Getting Started - PXE boot
■ Get a PXE client, e.g. iPXE, configure DHCP
for PXE chainloading, e.g. http://ipxe.
org/howto/dhcpd
■ Create a PXE boot script, e.g.
#!ipxe
kernel /smartos/20130724/platform/i86pc/kernel/amd64/unix
initrd /smartos/20130724/platform/i86pc/amd64/boot_archive
boot
www.cloudcomp.ch
Getting Started - Gotcha's
■ Basic configuration is stored in
/usbkey/config
○ This is limited to networking, DNS, and NTP
○ Root password and SSH config are also in /usbkey
■ /etc is non-persistent, /opt and /var are.
www.cloudcomp.ch
Disk Administration - Intro
■ ZFS is default in SmartOS
■ Pools and datasets
○ Pool: a collection of one or more virtual devices, e.g.
disks, files,..
○ Dataset: a control point for a volume or file system
■ Two commands: zpool and zfs
www.cloudcomp.ch
Disk Administration - Pools
■ Create a pool
# zpool create data c0t0d0 c0t1d0
■ Grow a pool
# zpool add data c0t2d0
○ Note: as of today, pools cannot shrink.
www.cloudcomp.ch
Disk Administration - Datasets
■ Create a pool
# zfs create data/db
■ Create a snapshot
# zfs snapshot -r data/db@20130724
■ Rollback a snapshot
# zfs rollback data/db@20130724
■ Clone a snapshot
# zfs clone data/db@20130724 data/db2
www.cloudcomp.ch
Images Administration - Intro
■ Images are templates that contain data (ZFS
dataset) and metadata (JSON)
■ Images are used in SmartOS when creating
Virtual Machines
■ Default image server is datasets.joyent.com
○ found in /var/db/imgadm/sources.list
■ One tool: imgadm
www.cloudcomp.ch
Images Administration - imgadm
■ Get images
www.cloudcomp.ch
# imgadm update
updating local images database...
Get https://datasets.joyent.com/datasets...
done
# imgadm avail
UUID OS PUBLISHED URN
6bf31ce2-f384-11e1-a338-e39c2fe4ab59 smartos 2012-08-31 sdc:sdc:mongodb:1.3.2
a0f8cf30-f2ea-11e1-8a51-5793736be67c smartos 2012-08-30 sdc:sdc:standard64:1.0.7
3390ca7c-f2e7-11e1-8818-c36e0b12e58b smartos 2012-08-30 sdc:sdc:standard:1.0.7
9604da58-f1ee-11e1-aba1-dbda3337ec46 smartos 2012-08-29 sdc:sdc:mongodb:1.3.1
[...]
Images Administration - imgadm
■ Get images
www.cloudcomp.ch
# imgadm import 9eac5c0c-a941-11e2-a7dc-57a6b041988f
9eac5c0c-a941-11e2-a7dc-57a6b041988f doesnt exist. continuing with install
9eac5c0c-a941-11e2-a7dc-57a6b041988f successfully installed
image 9eac5c0c-a941-11e2-a7dc-57a6b041988f successfully imported
# imgadm list
UUID OS PUBLISHED URN
9eac5c0c-a941-11e2-a7dc-57a6b041988f smartos 2013-04-26 sdc:sdc:base64:13.1.0
Virtual Machines Administration -
Intro
■ Two flavours: zone ("joyent" brand) and KVM
("kvm" brand)
○ KVM VMs still run in a zone though
■ VM = Image + manifest (JSON)
■ One tool: vmadm
www.cloudcomp.ch
Virtual Machines Administration -
Creating a Zone
■ Get a zone image
○ Use imgadm avail. Images with the OS type smar
are zone images
■ Zone manifest
{
"brand": "joyent",
"image_uuid": " 9eac5c0c-a941-11e2-a7dc-57a6b041988f ",
"alias": "zone01",
"hostname": "zone01",
"max_physical_memory": 1024,
"quota": 20,
"nics": [
{
"nic_tag": "admin",
"ip": "10.20.50.24",
"netmask": "255.255.255.0",
"gateway": "10.20.50.1"
}
] www.cloudcomp.ch
Virtual Machines Administration -
Creating a KVM
■ Get a KVM image
○ Use imgadm avail. Images with the OS type linux are
KVM images
■ KVM manifest
{
"brand": "kvm",
"resolvers": [
"208.67.222.222",
"8.8.4.4"
],
"default-gateway": "10.20.50.1",
"ram": "2048",
"vcpus": "1",
...
www.cloudcomp.ch
Virtual Machines Administration -
Creating a KVM
■ KVM manifest
"nics": [
{
"nic_tag": "admin",
"ip": "10.20.50.48",
"netmask": "255.255.255.0",
"gateway": "10.20.50.1",
"model": "virtio",
"primary": true
}
],
"disks": [
{
"image_uuid": "e42f8c84-bbea-11e2-b920-078fab2aab1f",
"boot": true,
"model": "virtio",
"image_size": 10240
}
]
}
www.cloudcomp.ch
Virtual Machines Administration -
vmadm
■ Create the VM
# vmadm create -f zone01.json
Successfully created 4aac2fb2-f30a-49ef-08d2-41e6af10bde1
■ Zone login
# vmadm console 4aac2fb2-f30a-49ef-08d2-41e6af10bde1
■ VM listing
# vmadm list
UUID TYPE RAM STATE ALIAS
4aac2fb2-f30a-49ef-08d2-41e6af10bde1 OS 1024 running zone01
f144656f-41d4-460f-75ab-26f38d8f9fc6 KVM 2048 running fedora01
www.cloudcomp.ch
Virtual Machines Administration -
vmadm
■ VM start/stop/reboot/delete
# vmadm start UUID
# vmadm stop UUID
# vmadm reboot UUID
# vmadm delete UUID
■ VM update, e.g. increase disk size
# vmadm update 4aac2fb2-f30a-49ef-08d2-41e6af10bde1 quota=40
■ VM migration (experimental)
# vmadm send 4aac2fb2-f30a-49ef-08d2-41e6af10bde1 |ssh 10.0.1.2 vmadm
receive
Password:
Succesfully sent VM 4aac2fb2-f30a-49ef-08d2-41e6af10bde1
Succesfully received VM 4aac2fb2-f30a-49ef-08d2-41e6af10bde1
www.cloudcomp.ch
Network Administration - Intro
■ Each VM can get up to 32 VNICs
■ VRRP, Link aggregation
■ One tool: dladm
www.cloudcomp.ch
Network Administration - dladm
■ Create and configure the VNIC
# dladm create-vnic -l e1000g0 -v 128 backup0
# ifconfig backup0 plumb
# ifconfig backup0 inet 10.30.50.7 netmask 255.255.255.0 up
■ To persist a VNIC across reboot store the
configuration in /usbkey/config
www.cloudcomp.ch
Network Administration - Link
Aggregation
■ Get available physical NICs
# dladm show-phys -m
LINK SLOT ADDRESS INUSE CLIENT
e1000g0 primary 0:11:45:4f:a6:f5 yes e1000g0
e1000g1 primary 0:11:45:47:90:aa yes e1000g1
■ Add a <name>_aggr config in /usbkey/config
# List MAC address in the aggregation
backup_aggr=0:11:45:4f:a6:f5,0:11:45:47:90:aa
# VM nics with backup nic_tags will now have
# their vnics created on the aggregation
admin_nic=e1000g0
backup_nic=backup
■ Reboot and verify
# dladm show-aggr
LINK POLICY ADDRPOLICY LACPACTIVITY LACPTIMER FLAGS
backup L4 auto active short -----
www.cloudcomp.ch
Q&A?
strp@zhaw.ch, @moviolone
Thank you!
www.cloudcomp.ch
References
■ http://wiki.smartos.org
■ http://smartos.org/2012/08/22/smartos-an-sa-primer/
www.cloudcomp.ch

More Related Content

What's hot

OpenNebula - OpenNebula and tips for CentOS 7
OpenNebula - OpenNebula and tips for CentOS 7OpenNebula - OpenNebula and tips for CentOS 7
OpenNebula - OpenNebula and tips for CentOS 7OpenNebula Project
 
Optimizing VM images for OpenStack with KVM/QEMU
Optimizing VM images for OpenStack with KVM/QEMUOptimizing VM images for OpenStack with KVM/QEMU
Optimizing VM images for OpenStack with KVM/QEMUOpenStack Foundation
 
OpenNebulaConf2015 2.14 Cloud Service Experience in TeideHPC Infrastructure -...
OpenNebulaConf2015 2.14 Cloud Service Experience in TeideHPC Infrastructure -...OpenNebulaConf2015 2.14 Cloud Service Experience in TeideHPC Infrastructure -...
OpenNebulaConf2015 2.14 Cloud Service Experience in TeideHPC Infrastructure -...OpenNebula Project
 
Achieving the ultimate performance with KVM
Achieving the ultimate performance with KVMAchieving the ultimate performance with KVM
Achieving the ultimate performance with KVMStorPool Storage
 
Cinder Live Migration and Replication - OpenStack Summit Austin
Cinder Live Migration and Replication - OpenStack Summit AustinCinder Live Migration and Replication - OpenStack Summit Austin
Cinder Live Migration and Replication - OpenStack Summit AustinEd Balduf
 
TechDay - Cambridge 2016 - OpenNebula Corona
TechDay - Cambridge 2016 - OpenNebula CoronaTechDay - Cambridge 2016 - OpenNebula Corona
TechDay - Cambridge 2016 - OpenNebula CoronaOpenNebula Project
 
LCE13: Virtualization Forum
LCE13: Virtualization ForumLCE13: Virtualization Forum
LCE13: Virtualization ForumLinaro
 
Dave Gilbert - KVM and QEMU
Dave Gilbert - KVM and QEMUDave Gilbert - KVM and QEMU
Dave Gilbert - KVM and QEMUDanny Abukalam
 
OpenNebula Conf 2014 | ONE BIT to rule them all - Stefan Kooman
OpenNebula Conf 2014 | ONE BIT to rule them all - Stefan KoomanOpenNebula Conf 2014 | ONE BIT to rule them all - Stefan Kooman
OpenNebula Conf 2014 | ONE BIT to rule them all - Stefan KoomanNETWAYS
 
Libvirt/KVM Driver Update (Kilo)
Libvirt/KVM Driver Update (Kilo)Libvirt/KVM Driver Update (Kilo)
Libvirt/KVM Driver Update (Kilo)Stephen Gordon
 
NetBSD on Google Compute Engine (en)
NetBSD on Google Compute Engine (en)NetBSD on Google Compute Engine (en)
NetBSD on Google Compute Engine (en)Ryo ONODERA
 
Cloud Storage Introduction ( CEPH )
Cloud Storage Introduction ( CEPH )  Cloud Storage Introduction ( CEPH )
Cloud Storage Introduction ( CEPH ) Alex Lau
 
OpenNebulaConf 2016 - Storage Hands-on Workshop by Javier Fontán, OpenNebula
OpenNebulaConf 2016 - Storage Hands-on Workshop by Javier Fontán, OpenNebulaOpenNebulaConf 2016 - Storage Hands-on Workshop by Javier Fontán, OpenNebula
OpenNebulaConf 2016 - Storage Hands-on Workshop by Javier Fontán, OpenNebulaOpenNebula Project
 
Red Hat Enterprise Linux: Open, hyperconverged infrastructure
Red Hat Enterprise Linux: Open, hyperconverged infrastructureRed Hat Enterprise Linux: Open, hyperconverged infrastructure
Red Hat Enterprise Linux: Open, hyperconverged infrastructureRed_Hat_Storage
 
David Steiman - Getting serious with private kubernetes clusters & cloud nati...
David Steiman - Getting serious with private kubernetes clusters & cloud nati...David Steiman - Getting serious with private kubernetes clusters & cloud nati...
David Steiman - Getting serious with private kubernetes clusters & cloud nati...Codemotion
 
RHEVM - Live Storage Migration
RHEVM - Live Storage MigrationRHEVM - Live Storage Migration
RHEVM - Live Storage MigrationRaz Tamir
 
David Steiman - Getting serious with private kubernetes clusters & cloud nati...
David Steiman - Getting serious with private kubernetes clusters & cloud nati...David Steiman - Getting serious with private kubernetes clusters & cloud nati...
David Steiman - Getting serious with private kubernetes clusters & cloud nati...Codemotion
 
KVM tools and enterprise usage
KVM tools and enterprise usageKVM tools and enterprise usage
KVM tools and enterprise usagevincentvdk
 

What's hot (20)

OpenNebula - OpenNebula and tips for CentOS 7
OpenNebula - OpenNebula and tips for CentOS 7OpenNebula - OpenNebula and tips for CentOS 7
OpenNebula - OpenNebula and tips for CentOS 7
 
Optimizing VM images for OpenStack with KVM/QEMU
Optimizing VM images for OpenStack with KVM/QEMUOptimizing VM images for OpenStack with KVM/QEMU
Optimizing VM images for OpenStack with KVM/QEMU
 
OpenNebulaConf2015 2.14 Cloud Service Experience in TeideHPC Infrastructure -...
OpenNebulaConf2015 2.14 Cloud Service Experience in TeideHPC Infrastructure -...OpenNebulaConf2015 2.14 Cloud Service Experience in TeideHPC Infrastructure -...
OpenNebulaConf2015 2.14 Cloud Service Experience in TeideHPC Infrastructure -...
 
Achieving the ultimate performance with KVM
Achieving the ultimate performance with KVMAchieving the ultimate performance with KVM
Achieving the ultimate performance with KVM
 
Cinder Live Migration and Replication - OpenStack Summit Austin
Cinder Live Migration and Replication - OpenStack Summit AustinCinder Live Migration and Replication - OpenStack Summit Austin
Cinder Live Migration and Replication - OpenStack Summit Austin
 
FreeBSD hosting
FreeBSD hostingFreeBSD hosting
FreeBSD hosting
 
TechDay - Cambridge 2016 - OpenNebula Corona
TechDay - Cambridge 2016 - OpenNebula CoronaTechDay - Cambridge 2016 - OpenNebula Corona
TechDay - Cambridge 2016 - OpenNebula Corona
 
LCE13: Virtualization Forum
LCE13: Virtualization ForumLCE13: Virtualization Forum
LCE13: Virtualization Forum
 
Dave Gilbert - KVM and QEMU
Dave Gilbert - KVM and QEMUDave Gilbert - KVM and QEMU
Dave Gilbert - KVM and QEMU
 
OpenNebula Conf 2014 | ONE BIT to rule them all - Stefan Kooman
OpenNebula Conf 2014 | ONE BIT to rule them all - Stefan KoomanOpenNebula Conf 2014 | ONE BIT to rule them all - Stefan Kooman
OpenNebula Conf 2014 | ONE BIT to rule them all - Stefan Kooman
 
Look Into Libvirt Osier Yang
Look Into Libvirt Osier YangLook Into Libvirt Osier Yang
Look Into Libvirt Osier Yang
 
Libvirt/KVM Driver Update (Kilo)
Libvirt/KVM Driver Update (Kilo)Libvirt/KVM Driver Update (Kilo)
Libvirt/KVM Driver Update (Kilo)
 
NetBSD on Google Compute Engine (en)
NetBSD on Google Compute Engine (en)NetBSD on Google Compute Engine (en)
NetBSD on Google Compute Engine (en)
 
Cloud Storage Introduction ( CEPH )
Cloud Storage Introduction ( CEPH )  Cloud Storage Introduction ( CEPH )
Cloud Storage Introduction ( CEPH )
 
OpenNebulaConf 2016 - Storage Hands-on Workshop by Javier Fontán, OpenNebula
OpenNebulaConf 2016 - Storage Hands-on Workshop by Javier Fontán, OpenNebulaOpenNebulaConf 2016 - Storage Hands-on Workshop by Javier Fontán, OpenNebula
OpenNebulaConf 2016 - Storage Hands-on Workshop by Javier Fontán, OpenNebula
 
Red Hat Enterprise Linux: Open, hyperconverged infrastructure
Red Hat Enterprise Linux: Open, hyperconverged infrastructureRed Hat Enterprise Linux: Open, hyperconverged infrastructure
Red Hat Enterprise Linux: Open, hyperconverged infrastructure
 
David Steiman - Getting serious with private kubernetes clusters & cloud nati...
David Steiman - Getting serious with private kubernetes clusters & cloud nati...David Steiman - Getting serious with private kubernetes clusters & cloud nati...
David Steiman - Getting serious with private kubernetes clusters & cloud nati...
 
RHEVM - Live Storage Migration
RHEVM - Live Storage MigrationRHEVM - Live Storage Migration
RHEVM - Live Storage Migration
 
David Steiman - Getting serious with private kubernetes clusters & cloud nati...
David Steiman - Getting serious with private kubernetes clusters & cloud nati...David Steiman - Getting serious with private kubernetes clusters & cloud nati...
David Steiman - Getting serious with private kubernetes clusters & cloud nati...
 
KVM tools and enterprise usage
KVM tools and enterprise usageKVM tools and enterprise usage
KVM tools and enterprise usage
 

Viewers also liked

Experiences porting KVM to SmartOS
Experiences porting KVM to SmartOSExperiences porting KVM to SmartOS
Experiences porting KVM to SmartOSbcantrill
 
What Have You Learnt About Technologies From the Process of Constructing This...
What Have You Learnt About Technologies From the Process of Constructing This...What Have You Learnt About Technologies From the Process of Constructing This...
What Have You Learnt About Technologies From the Process of Constructing This...LucindaCorrieMedia
 
Omeneu instant (Asma Saleem Product Manager Neutro Pharma)
Omeneu   instant  (Asma Saleem Product Manager Neutro Pharma)Omeneu   instant  (Asma Saleem Product Manager Neutro Pharma)
Omeneu instant (Asma Saleem Product Manager Neutro Pharma)Asma Saleem
 
Next-generation JavaScript - OpenSlava 2014
Next-generation JavaScript - OpenSlava 2014Next-generation JavaScript - OpenSlava 2014
Next-generation JavaScript - OpenSlava 2014Oscar Renalias
 
Prezenticii
PrezenticiiPrezenticii
Prezenticiiylchik
 
Empatic a kompetencje informacyjne
Empatic a kompetencje informacyjneEmpatic a kompetencje informacyjne
Empatic a kompetencje informacyjneEwaRozanska
 
Promocja usług edukacyjnych
Promocja  usług  edukacyjnychPromocja  usług  edukacyjnych
Promocja usług edukacyjnychEwaRozanska
 
50 production deployments a day, at least
50 production deployments a day, at least50 production deployments a day, at least
50 production deployments a day, at leastOscar Renalias
 

Viewers also liked (20)

Experiences porting KVM to SmartOS
Experiences porting KVM to SmartOSExperiences porting KVM to SmartOS
Experiences porting KVM to SmartOS
 
Contents Page Progress
Contents Page ProgressContents Page Progress
Contents Page Progress
 
Tomasz
TomaszTomasz
Tomasz
 
Questionnaire
QuestionnaireQuestionnaire
Questionnaire
 
What Have You Learnt About Technologies From the Process of Constructing This...
What Have You Learnt About Technologies From the Process of Constructing This...What Have You Learnt About Technologies From the Process of Constructing This...
What Have You Learnt About Technologies From the Process of Constructing This...
 
Publisher
PublisherPublisher
Publisher
 
Omeneu instant (Asma Saleem Product Manager Neutro Pharma)
Omeneu   instant  (Asma Saleem Product Manager Neutro Pharma)Omeneu   instant  (Asma Saleem Product Manager Neutro Pharma)
Omeneu instant (Asma Saleem Product Manager Neutro Pharma)
 
Next-generation JavaScript - OpenSlava 2014
Next-generation JavaScript - OpenSlava 2014Next-generation JavaScript - OpenSlava 2014
Next-generation JavaScript - OpenSlava 2014
 
Case Study
Case StudyCase Study
Case Study
 
Front Cover Progress
Front Cover ProgressFront Cover Progress
Front Cover Progress
 
MOVIE MAKER
MOVIE MAKERMOVIE MAKER
MOVIE MAKER
 
OPSpedia demo MOH
OPSpedia demo MOHOPSpedia demo MOH
OPSpedia demo MOH
 
Prezenticii
PrezenticiiPrezenticii
Prezenticii
 
Front Cover Progress
Front Cover ProgressFront Cover Progress
Front Cover Progress
 
Analysis of Magazines
Analysis of MagazinesAnalysis of Magazines
Analysis of Magazines
 
Empatic a kompetencje informacyjne
Empatic a kompetencje informacyjneEmpatic a kompetencje informacyjne
Empatic a kompetencje informacyjne
 
Microsoft Word
Microsoft WordMicrosoft Word
Microsoft Word
 
Promocja usług edukacyjnych
Promocja  usług  edukacyjnychPromocja  usług  edukacyjnych
Promocja usług edukacyjnych
 
Front Cover Progress 2
Front Cover Progress 2Front Cover Progress 2
Front Cover Progress 2
 
50 production deployments a day, at least
50 production deployments a day, at least50 production deployments a day, at least
50 production deployments a day, at least
 

Similar to SmartOS Primer

Google Compute Engine Starter Guide
Google Compute Engine Starter GuideGoogle Compute Engine Starter Guide
Google Compute Engine Starter GuideSimon Su
 
openQRM how-to: Setup UEC and openQRM cloud
openQRM how-to: Setup UEC and openQRM cloudopenQRM how-to: Setup UEC and openQRM cloud
openQRM how-to: Setup UEC and openQRM cloudopenQRM Enterprise GmbH
 
Hyper-V: Best Practices
Hyper-V: Best PracticesHyper-V: Best Practices
Hyper-V: Best PracticesTomica Kaniski
 
Qemu device prototyping
Qemu device prototypingQemu device prototyping
Qemu device prototypingYan Vugenfirer
 
AnsibleFest 2021 - DevSecOps with Ansible, OpenShift Virtualization, Packer a...
AnsibleFest 2021 - DevSecOps with Ansible, OpenShift Virtualization, Packer a...AnsibleFest 2021 - DevSecOps with Ansible, OpenShift Virtualization, Packer a...
AnsibleFest 2021 - DevSecOps with Ansible, OpenShift Virtualization, Packer a...Mihai Criveti
 
Building a cloud ready linux image locally using KVM
Building a cloud ready linux image locally using KVM Building a cloud ready linux image locally using KVM
Building a cloud ready linux image locally using KVM OpenStack_Online
 
SCCM 2007 Introduction - PICC 2012
SCCM 2007 Introduction - PICC 2012SCCM 2007 Introduction - PICC 2012
SCCM 2007 Introduction - PICC 2012capriguy84
 
Lessons from Driverless AI going to Production
Lessons from Driverless AI going to ProductionLessons from Driverless AI going to Production
Lessons from Driverless AI going to ProductionSri Ambati
 
Starting Raspberry Pi
Starting Raspberry PiStarting Raspberry Pi
Starting Raspberry PiLloydMoore
 
OpenNebulaConf 2013 - Hands-on Tutorial: 2. Installing and Basic Usage
OpenNebulaConf 2013 - Hands-on Tutorial: 2. Installing and Basic UsageOpenNebulaConf 2013 - Hands-on Tutorial: 2. Installing and Basic Usage
OpenNebulaConf 2013 - Hands-on Tutorial: 2. Installing and Basic UsageOpenNebula Project
 
A million ways to provision embedded linux devices
A million ways to provision embedded linux devicesA million ways to provision embedded linux devices
A million ways to provision embedded linux devicesMender.io
 
SenchaCon 2016: Develop, Test & Deploy with Docker - Jonas Schwabe
SenchaCon 2016: Develop, Test & Deploy with Docker - Jonas Schwabe SenchaCon 2016: Develop, Test & Deploy with Docker - Jonas Schwabe
SenchaCon 2016: Develop, Test & Deploy with Docker - Jonas Schwabe Sencha
 
Manchester OpenStack Meetup: I have an OpenStack Cloud, now what? OpenStack 101
Manchester OpenStack Meetup: I have an OpenStack Cloud, now what? OpenStack 101Manchester OpenStack Meetup: I have an OpenStack Cloud, now what? OpenStack 101
Manchester OpenStack Meetup: I have an OpenStack Cloud, now what? OpenStack 101Kevin Jackson
 
WT-4069, WebCL: Enabling OpenCL Acceleration of Web Applications, by Mikael ...
WT-4069, WebCL: Enabling OpenCL Acceleration of Web Applications, by  Mikael ...WT-4069, WebCL: Enabling OpenCL Acceleration of Web Applications, by  Mikael ...
WT-4069, WebCL: Enabling OpenCL Acceleration of Web Applications, by Mikael ...AMD Developer Central
 
TechDay - April - Customizing VM Images
TechDay - April - Customizing VM ImagesTechDay - April - Customizing VM Images
TechDay - April - Customizing VM ImagesOpenNebula Project
 
Virtualization workshop - part 1
Virtualization workshop - part 1Virtualization workshop - part 1
Virtualization workshop - part 1Davide Pelosi
 
Google Cloud Platform for DeVops, by Javier Ramirez @ teowaki
Google Cloud Platform for DeVops, by Javier Ramirez @ teowakiGoogle Cloud Platform for DeVops, by Javier Ramirez @ teowaki
Google Cloud Platform for DeVops, by Javier Ramirez @ teowakijavier ramirez
 
How to use TripleO tools for your own project
How to use TripleO tools for your own projectHow to use TripleO tools for your own project
How to use TripleO tools for your own projectGonéri Le Bouder
 
Bare metal Hadoop provisioning
Bare metal Hadoop provisioningBare metal Hadoop provisioning
Bare metal Hadoop provisioningGoDataDriven
 

Similar to SmartOS Primer (20)

Google Compute Engine Starter Guide
Google Compute Engine Starter GuideGoogle Compute Engine Starter Guide
Google Compute Engine Starter Guide
 
openQRM how-to: Setup UEC and openQRM cloud
openQRM how-to: Setup UEC and openQRM cloudopenQRM how-to: Setup UEC and openQRM cloud
openQRM how-to: Setup UEC and openQRM cloud
 
Hyper-V: Best Practices
Hyper-V: Best PracticesHyper-V: Best Practices
Hyper-V: Best Practices
 
Qemu device prototyping
Qemu device prototypingQemu device prototyping
Qemu device prototyping
 
AnsibleFest 2021 - DevSecOps with Ansible, OpenShift Virtualization, Packer a...
AnsibleFest 2021 - DevSecOps with Ansible, OpenShift Virtualization, Packer a...AnsibleFest 2021 - DevSecOps with Ansible, OpenShift Virtualization, Packer a...
AnsibleFest 2021 - DevSecOps with Ansible, OpenShift Virtualization, Packer a...
 
Building a cloud ready linux image locally using KVM
Building a cloud ready linux image locally using KVM Building a cloud ready linux image locally using KVM
Building a cloud ready linux image locally using KVM
 
SCCM 2007 Introduction - PICC 2012
SCCM 2007 Introduction - PICC 2012SCCM 2007 Introduction - PICC 2012
SCCM 2007 Introduction - PICC 2012
 
Lessons from Driverless AI going to Production
Lessons from Driverless AI going to ProductionLessons from Driverless AI going to Production
Lessons from Driverless AI going to Production
 
Starting Raspberry Pi
Starting Raspberry PiStarting Raspberry Pi
Starting Raspberry Pi
 
OpenNebulaConf 2013 - Hands-on Tutorial: 2. Installing and Basic Usage
OpenNebulaConf 2013 - Hands-on Tutorial: 2. Installing and Basic UsageOpenNebulaConf 2013 - Hands-on Tutorial: 2. Installing and Basic Usage
OpenNebulaConf 2013 - Hands-on Tutorial: 2. Installing and Basic Usage
 
A million ways to provision embedded linux devices
A million ways to provision embedded linux devicesA million ways to provision embedded linux devices
A million ways to provision embedded linux devices
 
SenchaCon 2016: Develop, Test & Deploy with Docker - Jonas Schwabe
SenchaCon 2016: Develop, Test & Deploy with Docker - Jonas Schwabe SenchaCon 2016: Develop, Test & Deploy with Docker - Jonas Schwabe
SenchaCon 2016: Develop, Test & Deploy with Docker - Jonas Schwabe
 
Manchester OpenStack Meetup: I have an OpenStack Cloud, now what? OpenStack 101
Manchester OpenStack Meetup: I have an OpenStack Cloud, now what? OpenStack 101Manchester OpenStack Meetup: I have an OpenStack Cloud, now what? OpenStack 101
Manchester OpenStack Meetup: I have an OpenStack Cloud, now what? OpenStack 101
 
WT-4069, WebCL: Enabling OpenCL Acceleration of Web Applications, by Mikael ...
WT-4069, WebCL: Enabling OpenCL Acceleration of Web Applications, by  Mikael ...WT-4069, WebCL: Enabling OpenCL Acceleration of Web Applications, by  Mikael ...
WT-4069, WebCL: Enabling OpenCL Acceleration of Web Applications, by Mikael ...
 
TechDay - April - Customizing VM Images
TechDay - April - Customizing VM ImagesTechDay - April - Customizing VM Images
TechDay - April - Customizing VM Images
 
MIPS-X
MIPS-XMIPS-X
MIPS-X
 
Virtualization workshop - part 1
Virtualization workshop - part 1Virtualization workshop - part 1
Virtualization workshop - part 1
 
Google Cloud Platform for DeVops, by Javier Ramirez @ teowaki
Google Cloud Platform for DeVops, by Javier Ramirez @ teowakiGoogle Cloud Platform for DeVops, by Javier Ramirez @ teowaki
Google Cloud Platform for DeVops, by Javier Ramirez @ teowaki
 
How to use TripleO tools for your own project
How to use TripleO tools for your own projectHow to use TripleO tools for your own project
How to use TripleO tools for your own project
 
Bare metal Hadoop provisioning
Bare metal Hadoop provisioningBare metal Hadoop provisioning
Bare metal Hadoop provisioning
 

Recently uploaded

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 

Recently uploaded (20)

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 

SmartOS Primer

  • 1. SmartOS Primer Daniele Stroppa, ZHAW strp@zhaw.ch, @moviolone www.cloudcomp.ch
  • 2. Agenda ■ Getting Started ■ Disk Administration ■ Images Administration ■ Virtual Machines Administration ■ Network Administration www.cloudcomp.ch
  • 3. Getting Started - Requirements ■ System Requirements ○ Minimum 1GB RAM* ○ 64-bit x86 CPU ■ To use KVM SmartOS requires an Intel CPU with VT-x extensions ○ http://ark.intel.com/Products/VirtualizationTechnology * Since SmartOS is a live OS, the more RAM the better www.cloudcomp.ch
  • 4. Getting Started - USB boot ■ Get the latest USB image from http://wiki. smartos. org/display/DOC/Download+SmartOS ■ Create a bootable USB drive from the image ○ e.g.: on Linux, dd if=smartos-$RELEASE-usb.img of=/dev/sdb bs=1024 ■ Stick the USB drive in a port and boot www.cloudcomp.ch
  • 5. Getting Started - PXE boot ■ Get the latest Platform image from http://wiki. smartos. org/display/DOC/Download+SmartOS and unpack it in your netboot env ○ Make sure the kernel and the boot archive have the following path: (prefix) /platform/i86pc/kernel/amd64/unix for the kernel and (prefix)/platform/i86pc/amd64/boot_archive for the boot archive. (prefix) can be any path, e.g. /tftpboot/smartos/20130724 www.cloudcomp.ch
  • 6. Getting Started - PXE boot ■ Get a PXE client, e.g. iPXE, configure DHCP for PXE chainloading, e.g. http://ipxe. org/howto/dhcpd ■ Create a PXE boot script, e.g. #!ipxe kernel /smartos/20130724/platform/i86pc/kernel/amd64/unix initrd /smartos/20130724/platform/i86pc/amd64/boot_archive boot www.cloudcomp.ch
  • 7. Getting Started - Gotcha's ■ Basic configuration is stored in /usbkey/config ○ This is limited to networking, DNS, and NTP ○ Root password and SSH config are also in /usbkey ■ /etc is non-persistent, /opt and /var are. www.cloudcomp.ch
  • 8. Disk Administration - Intro ■ ZFS is default in SmartOS ■ Pools and datasets ○ Pool: a collection of one or more virtual devices, e.g. disks, files,.. ○ Dataset: a control point for a volume or file system ■ Two commands: zpool and zfs www.cloudcomp.ch
  • 9. Disk Administration - Pools ■ Create a pool # zpool create data c0t0d0 c0t1d0 ■ Grow a pool # zpool add data c0t2d0 ○ Note: as of today, pools cannot shrink. www.cloudcomp.ch
  • 10. Disk Administration - Datasets ■ Create a pool # zfs create data/db ■ Create a snapshot # zfs snapshot -r data/db@20130724 ■ Rollback a snapshot # zfs rollback data/db@20130724 ■ Clone a snapshot # zfs clone data/db@20130724 data/db2 www.cloudcomp.ch
  • 11. Images Administration - Intro ■ Images are templates that contain data (ZFS dataset) and metadata (JSON) ■ Images are used in SmartOS when creating Virtual Machines ■ Default image server is datasets.joyent.com ○ found in /var/db/imgadm/sources.list ■ One tool: imgadm www.cloudcomp.ch
  • 12. Images Administration - imgadm ■ Get images www.cloudcomp.ch # imgadm update updating local images database... Get https://datasets.joyent.com/datasets... done # imgadm avail UUID OS PUBLISHED URN 6bf31ce2-f384-11e1-a338-e39c2fe4ab59 smartos 2012-08-31 sdc:sdc:mongodb:1.3.2 a0f8cf30-f2ea-11e1-8a51-5793736be67c smartos 2012-08-30 sdc:sdc:standard64:1.0.7 3390ca7c-f2e7-11e1-8818-c36e0b12e58b smartos 2012-08-30 sdc:sdc:standard:1.0.7 9604da58-f1ee-11e1-aba1-dbda3337ec46 smartos 2012-08-29 sdc:sdc:mongodb:1.3.1 [...]
  • 13. Images Administration - imgadm ■ Get images www.cloudcomp.ch # imgadm import 9eac5c0c-a941-11e2-a7dc-57a6b041988f 9eac5c0c-a941-11e2-a7dc-57a6b041988f doesnt exist. continuing with install 9eac5c0c-a941-11e2-a7dc-57a6b041988f successfully installed image 9eac5c0c-a941-11e2-a7dc-57a6b041988f successfully imported # imgadm list UUID OS PUBLISHED URN 9eac5c0c-a941-11e2-a7dc-57a6b041988f smartos 2013-04-26 sdc:sdc:base64:13.1.0
  • 14. Virtual Machines Administration - Intro ■ Two flavours: zone ("joyent" brand) and KVM ("kvm" brand) ○ KVM VMs still run in a zone though ■ VM = Image + manifest (JSON) ■ One tool: vmadm www.cloudcomp.ch
  • 15. Virtual Machines Administration - Creating a Zone ■ Get a zone image ○ Use imgadm avail. Images with the OS type smar are zone images ■ Zone manifest { "brand": "joyent", "image_uuid": " 9eac5c0c-a941-11e2-a7dc-57a6b041988f ", "alias": "zone01", "hostname": "zone01", "max_physical_memory": 1024, "quota": 20, "nics": [ { "nic_tag": "admin", "ip": "10.20.50.24", "netmask": "255.255.255.0", "gateway": "10.20.50.1" } ] www.cloudcomp.ch
  • 16. Virtual Machines Administration - Creating a KVM ■ Get a KVM image ○ Use imgadm avail. Images with the OS type linux are KVM images ■ KVM manifest { "brand": "kvm", "resolvers": [ "208.67.222.222", "8.8.4.4" ], "default-gateway": "10.20.50.1", "ram": "2048", "vcpus": "1", ... www.cloudcomp.ch
  • 17. Virtual Machines Administration - Creating a KVM ■ KVM manifest "nics": [ { "nic_tag": "admin", "ip": "10.20.50.48", "netmask": "255.255.255.0", "gateway": "10.20.50.1", "model": "virtio", "primary": true } ], "disks": [ { "image_uuid": "e42f8c84-bbea-11e2-b920-078fab2aab1f", "boot": true, "model": "virtio", "image_size": 10240 } ] } www.cloudcomp.ch
  • 18. Virtual Machines Administration - vmadm ■ Create the VM # vmadm create -f zone01.json Successfully created 4aac2fb2-f30a-49ef-08d2-41e6af10bde1 ■ Zone login # vmadm console 4aac2fb2-f30a-49ef-08d2-41e6af10bde1 ■ VM listing # vmadm list UUID TYPE RAM STATE ALIAS 4aac2fb2-f30a-49ef-08d2-41e6af10bde1 OS 1024 running zone01 f144656f-41d4-460f-75ab-26f38d8f9fc6 KVM 2048 running fedora01 www.cloudcomp.ch
  • 19. Virtual Machines Administration - vmadm ■ VM start/stop/reboot/delete # vmadm start UUID # vmadm stop UUID # vmadm reboot UUID # vmadm delete UUID ■ VM update, e.g. increase disk size # vmadm update 4aac2fb2-f30a-49ef-08d2-41e6af10bde1 quota=40 ■ VM migration (experimental) # vmadm send 4aac2fb2-f30a-49ef-08d2-41e6af10bde1 |ssh 10.0.1.2 vmadm receive Password: Succesfully sent VM 4aac2fb2-f30a-49ef-08d2-41e6af10bde1 Succesfully received VM 4aac2fb2-f30a-49ef-08d2-41e6af10bde1 www.cloudcomp.ch
  • 20. Network Administration - Intro ■ Each VM can get up to 32 VNICs ■ VRRP, Link aggregation ■ One tool: dladm www.cloudcomp.ch
  • 21. Network Administration - dladm ■ Create and configure the VNIC # dladm create-vnic -l e1000g0 -v 128 backup0 # ifconfig backup0 plumb # ifconfig backup0 inet 10.30.50.7 netmask 255.255.255.0 up ■ To persist a VNIC across reboot store the configuration in /usbkey/config www.cloudcomp.ch
  • 22. Network Administration - Link Aggregation ■ Get available physical NICs # dladm show-phys -m LINK SLOT ADDRESS INUSE CLIENT e1000g0 primary 0:11:45:4f:a6:f5 yes e1000g0 e1000g1 primary 0:11:45:47:90:aa yes e1000g1 ■ Add a <name>_aggr config in /usbkey/config # List MAC address in the aggregation backup_aggr=0:11:45:4f:a6:f5,0:11:45:47:90:aa # VM nics with backup nic_tags will now have # their vnics created on the aggregation admin_nic=e1000g0 backup_nic=backup ■ Reboot and verify # dladm show-aggr LINK POLICY ADDRPOLICY LACPACTIVITY LACPTIMER FLAGS backup L4 auto active short ----- www.cloudcomp.ch