virtualization - solaris ldoms - opensistemas

71
Solaris LDOMs Hypervisor-based virtualization for Sparc T Juanjo Amor [email protected] OpenSistemas 27 May 2011 Juanjo Amor Solaris LDOMs

Upload: open-sistemas

Post on 18-Nov-2014

841 views

Category:

Technology


2 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Virtualization - Solaris LDOMs - OpenSistemas

Solaris LDOMsHypervisor-based virtualization for Sparc T

Juanjo Amor

[email protected]

27 May 2011

Juanjo Amor Solaris LDOMs

Page 2: Virtualization - Solaris LDOMs - OpenSistemas

(cc) 2011 Juanjo AmorSome rights reserved. This work licensed under Creative CommonsAttribution-ShareAlike License. To view a copy of full license, see

http://creativecommons.org/licenses/by-sa/3.0/ or write toCreative Commons, 559 Nathan Abbott Way, Stanford,

California 94305, USA.

Juanjo Amor Solaris LDOMs

Page 3: Virtualization - Solaris LDOMs - OpenSistemas

Index

Juanjo Amor Solaris LDOMs

Page 4: Virtualization - Solaris LDOMs - OpenSistemas

About Opensistemas

Opensistemas is an international company

highly

specialized in offering global IT solutions based

onOpen Source andLinux platforms.

Juanjo Amor Solaris LDOMs

Page 5: Virtualization - Solaris LDOMs - OpenSistemas

About Opensistemas

Opensistemas is an international company highly

specialized

in offering global IT solutions based

onOpen Source andLinux platforms.

Juanjo Amor Solaris LDOMs

Page 6: Virtualization - Solaris LDOMs - OpenSistemas

About Opensistemas

Opensistemas is an international company highly

specialized in offering global IT solutions

based

onOpen Source andLinux platforms.

Juanjo Amor Solaris LDOMs

Page 7: Virtualization - Solaris LDOMs - OpenSistemas

About Opensistemas

Opensistemas is an international company highly

specialized in offering global IT solutions based

onOpen Source andLinux platforms.

Juanjo Amor Solaris LDOMs

Page 8: Virtualization - Solaris LDOMs - OpenSistemas

About Opensistemas

Our Vision:

To become the international leader in OpenSource Technologies.

Our Mission: Apply our knowledge of the opportunities offeredby Open Source to deliver effective solutions and innovation toour customers while promoting the professional developmentof our employees and building value for shareholders.

Our Values:

Deliver effective solutiosn to our customers.Corporate social responsibility.Commitment to Open Source.Ethics and Respect for individuals.Research and Innovation.Teamwork.Commitment to the development of a society connected byinformation and knowledge.

Juanjo Amor Solaris LDOMs

Page 9: Virtualization - Solaris LDOMs - OpenSistemas

About Opensistemas

Our Vision: To become the international leader in OpenSource Technologies.

Our Mission: Apply our knowledge of the opportunities offeredby Open Source to deliver effective solutions and innovation toour customers while promoting the professional developmentof our employees and building value for shareholders.

Our Values:

Deliver effective solutiosn to our customers.Corporate social responsibility.Commitment to Open Source.Ethics and Respect for individuals.Research and Innovation.Teamwork.Commitment to the development of a society connected byinformation and knowledge.

Juanjo Amor Solaris LDOMs

Page 10: Virtualization - Solaris LDOMs - OpenSistemas

About Opensistemas

Our Vision: To become the international leader in OpenSource Technologies.

Our Mission:

Apply our knowledge of the opportunities offeredby Open Source to deliver effective solutions and innovation toour customers while promoting the professional developmentof our employees and building value for shareholders.

Our Values:

Deliver effective solutiosn to our customers.Corporate social responsibility.Commitment to Open Source.Ethics and Respect for individuals.Research and Innovation.Teamwork.Commitment to the development of a society connected byinformation and knowledge.

Juanjo Amor Solaris LDOMs

Page 11: Virtualization - Solaris LDOMs - OpenSistemas

About Opensistemas

Our Vision: To become the international leader in OpenSource Technologies.

Our Mission: Apply our knowledge of the opportunities offeredby Open Source to deliver effective solutions and innovation toour customers while promoting the professional developmentof our employees and building value for shareholders.

Our Values:

Deliver effective solutiosn to our customers.Corporate social responsibility.Commitment to Open Source.Ethics and Respect for individuals.Research and Innovation.Teamwork.Commitment to the development of a society connected byinformation and knowledge.

Juanjo Amor Solaris LDOMs

Page 12: Virtualization - Solaris LDOMs - OpenSistemas

About Opensistemas

Our Vision: To become the international leader in OpenSource Technologies.

Our Mission: Apply our knowledge of the opportunities offeredby Open Source to deliver effective solutions and innovation toour customers while promoting the professional developmentof our employees and building value for shareholders.

Our Values:

Deliver effective solutiosn to our customers.Corporate social responsibility.Commitment to Open Source.Ethics and Respect for individuals.Research and Innovation.Teamwork.Commitment to the development of a society connected byinformation and knowledge.

Juanjo Amor Solaris LDOMs

Page 13: Virtualization - Solaris LDOMs - OpenSistemas

About Opensistemas

Our Vision: To become the international leader in OpenSource Technologies.

Our Mission: Apply our knowledge of the opportunities offeredby Open Source to deliver effective solutions and innovation toour customers while promoting the professional developmentof our employees and building value for shareholders.

Our Values:

Deliver effective solutiosn to our customers.Corporate social responsibility.Commitment to Open Source.Ethics and Respect for individuals.Research and Innovation.Teamwork.Commitment to the development of a society connected byinformation and knowledge.

Juanjo Amor Solaris LDOMs

Page 14: Virtualization - Solaris LDOMs - OpenSistemas

About Opensistemas

Our Markets

Juanjo Amor Solaris LDOMs

Page 15: Virtualization - Solaris LDOMs - OpenSistemas

About Opensistemas

Our Partners

Juanjo Amor Solaris LDOMs

Page 16: Virtualization - Solaris LDOMs - OpenSistemas

About Opensistemas

Opensistemas is present in nine locations over five countries: Spain

(Madrid, Valencia, Barcelona, Sevilla, Zaragoza), Chile (Santiago),

Colombia (BogotA¡), United Kingdom (London) and China (Shanghai).

Juanjo Amor Solaris LDOMs

Page 17: Virtualization - Solaris LDOMs - OpenSistemas

About Opensistemas

Contact Informationhttp://www.opensistemas.com/

[email protected]

+34 902 107 396

Juanjo Amor Solaris LDOMs

Page 18: Virtualization - Solaris LDOMs - OpenSistemas

Index

Juanjo Amor Solaris LDOMs

Page 19: Virtualization - Solaris LDOMs - OpenSistemas

Oracle VM projects

Virtualbox:

VMs for all. Cross-platform.

VM server for x86: Xen ported to Solaris/Illumos x86, and forOracle Linux.

VM Server for Sparc (formerly LDOMs): Type I hypervisor,“full”, for Sparc T platform.

Zones: Light virtualization for Solaris/Illumos.

Other: Ops center, VDI. . .

Juanjo Amor Solaris LDOMs

Page 20: Virtualization - Solaris LDOMs - OpenSistemas

Oracle VM projects

Virtualbox: VMs for all. Cross-platform.

VM server for x86: Xen ported to Solaris/Illumos x86, and forOracle Linux.

VM Server for Sparc (formerly LDOMs): Type I hypervisor,“full”, for Sparc T platform.

Zones: Light virtualization for Solaris/Illumos.

Other: Ops center, VDI. . .

Juanjo Amor Solaris LDOMs

Page 21: Virtualization - Solaris LDOMs - OpenSistemas

Oracle VM projects

Virtualbox: VMs for all. Cross-platform.

VM server for x86:

Xen ported to Solaris/Illumos x86, and forOracle Linux.

VM Server for Sparc (formerly LDOMs): Type I hypervisor,“full”, for Sparc T platform.

Zones: Light virtualization for Solaris/Illumos.

Other: Ops center, VDI. . .

Juanjo Amor Solaris LDOMs

Page 22: Virtualization - Solaris LDOMs - OpenSistemas

Oracle VM projects

Virtualbox: VMs for all. Cross-platform.

VM server for x86: Xen ported to Solaris/Illumos x86, and forOracle Linux.

VM Server for Sparc (formerly LDOMs): Type I hypervisor,“full”, for Sparc T platform.

Zones: Light virtualization for Solaris/Illumos.

Other: Ops center, VDI. . .

Juanjo Amor Solaris LDOMs

Page 23: Virtualization - Solaris LDOMs - OpenSistemas

Oracle VM projects

Virtualbox: VMs for all. Cross-platform.

VM server for x86: Xen ported to Solaris/Illumos x86, and forOracle Linux.

VM Server for Sparc (formerly LDOMs):

Type I hypervisor,“full”, for Sparc T platform.

Zones: Light virtualization for Solaris/Illumos.

Other: Ops center, VDI. . .

Juanjo Amor Solaris LDOMs

Page 24: Virtualization - Solaris LDOMs - OpenSistemas

Oracle VM projects

Virtualbox: VMs for all. Cross-platform.

VM server for x86: Xen ported to Solaris/Illumos x86, and forOracle Linux.

VM Server for Sparc (formerly LDOMs): Type I hypervisor,“full”, for Sparc T platform.

Zones: Light virtualization for Solaris/Illumos.

Other: Ops center, VDI. . .

Juanjo Amor Solaris LDOMs

Page 25: Virtualization - Solaris LDOMs - OpenSistemas

Oracle VM projects

Virtualbox: VMs for all. Cross-platform.

VM server for x86: Xen ported to Solaris/Illumos x86, and forOracle Linux.

VM Server for Sparc (formerly LDOMs): Type I hypervisor,“full”, for Sparc T platform.

Zones:

Light virtualization for Solaris/Illumos.

Other: Ops center, VDI. . .

Juanjo Amor Solaris LDOMs

Page 26: Virtualization - Solaris LDOMs - OpenSistemas

Oracle VM projects

Virtualbox: VMs for all. Cross-platform.

VM server for x86: Xen ported to Solaris/Illumos x86, and forOracle Linux.

VM Server for Sparc (formerly LDOMs): Type I hypervisor,“full”, for Sparc T platform.

Zones: Light virtualization for Solaris/Illumos.

Other: Ops center, VDI. . .

Juanjo Amor Solaris LDOMs

Page 27: Virtualization - Solaris LDOMs - OpenSistemas

Oracle VM projects

Virtualbox: VMs for all. Cross-platform.

VM server for x86: Xen ported to Solaris/Illumos x86, and forOracle Linux.

VM Server for Sparc (formerly LDOMs): Type I hypervisor,“full”, for Sparc T platform.

Zones: Light virtualization for Solaris/Illumos.

Other:

Ops center, VDI. . .

Juanjo Amor Solaris LDOMs

Page 28: Virtualization - Solaris LDOMs - OpenSistemas

Oracle VM projects

Virtualbox: VMs for all. Cross-platform.

VM server for x86: Xen ported to Solaris/Illumos x86, and forOracle Linux.

VM Server for Sparc (formerly LDOMs): Type I hypervisor,“full”, for Sparc T platform.

Zones: Light virtualization for Solaris/Illumos.

Other: Ops center, VDI. . .

Juanjo Amor Solaris LDOMs

Page 29: Virtualization - Solaris LDOMs - OpenSistemas

What are LDOMs?

LDOMs (Oracle VM Server for Sparc) are Logical Domains:

Hypervisor for (Open)Solaris running in specific hardware.

Type I hypervisor: layer between hardware and all OS.

LDOMs hypervisor is run by the server firmware...

... and one of the guest OS have special privileges to managehypervisor (“control domain”)

Juanjo Amor Solaris LDOMs

Page 30: Virtualization - Solaris LDOMs - OpenSistemas

What are LDOMs?

LDOMs (Oracle VM Server for Sparc) are Logical Domains:

Hypervisor for (Open)Solaris running in specific hardware.

Type I hypervisor: layer between hardware and all OS.

LDOMs hypervisor is run by the server firmware...

... and one of the guest OS have special privileges to managehypervisor (“control domain”)

Juanjo Amor Solaris LDOMs

Page 31: Virtualization - Solaris LDOMs - OpenSistemas

What are LDOMs?

LDOMs (Oracle VM Server for Sparc) are Logical Domains:

Hypervisor for (Open)Solaris running in specific hardware.

Type I hypervisor: layer between hardware and all OS.

LDOMs hypervisor is run by the server firmware...

... and one of the guest OS have special privileges to managehypervisor (“control domain”)

Juanjo Amor Solaris LDOMs

Page 32: Virtualization - Solaris LDOMs - OpenSistemas

What are LDOMs?

LDOMs (Oracle VM Server for Sparc) are Logical Domains:

Hypervisor for (Open)Solaris running in specific hardware.

Type I hypervisor: layer between hardware and all OS.

LDOMs hypervisor is run by the server firmware...

... and one of the guest OS have special privileges to managehypervisor (“control domain”)

Juanjo Amor Solaris LDOMs

Page 33: Virtualization - Solaris LDOMs - OpenSistemas

What are LDOMs?

LDOMs (Oracle VM Server for Sparc) are Logical Domains:

Hypervisor for (Open)Solaris running in specific hardware.

Type I hypervisor: layer between hardware and all OS.

LDOMs hypervisor is run by the server firmware...

... and one of the guest OS have special privileges to managehypervisor (“control domain”)

Juanjo Amor Solaris LDOMs

Page 34: Virtualization - Solaris LDOMs - OpenSistemas

What are LDOMs?

LDOMs:

“full virtualization”, type I hypervisor

It requires special CPUs (Chip Multithreading = CMT).

Base OS: Solaris 10 / 11 / Opensolaris 2009.06

Guest OS:

Solaris 10/11, Opensolaris 2009.06, Illumos?Sparc Linux and other OS which support this architecture.

Currently, only SunOS is supported as Guest OS.

Juanjo Amor Solaris LDOMs

Page 35: Virtualization - Solaris LDOMs - OpenSistemas

What are LDOMs?

LDOMs:

“full virtualization”, type I hypervisor

It requires special CPUs (Chip Multithreading = CMT).

Base OS: Solaris 10 / 11 / Opensolaris 2009.06

Guest OS:

Solaris 10/11, Opensolaris 2009.06, Illumos?Sparc Linux and other OS which support this architecture.

Currently, only SunOS is supported as Guest OS.

Juanjo Amor Solaris LDOMs

Page 36: Virtualization - Solaris LDOMs - OpenSistemas

What are LDOMs?

LDOMs:

“full virtualization”, type I hypervisor

It requires special CPUs (Chip Multithreading = CMT).

Base OS: Solaris 10 / 11 / Opensolaris 2009.06

Guest OS:

Solaris 10/11, Opensolaris 2009.06, Illumos?Sparc Linux and other OS which support this architecture.

Currently, only SunOS is supported as Guest OS.

Juanjo Amor Solaris LDOMs

Page 37: Virtualization - Solaris LDOMs - OpenSistemas

What are LDOMs?

LDOMs:

“full virtualization”, type I hypervisor

It requires special CPUs (Chip Multithreading = CMT).

Base OS: Solaris 10 / 11 / Opensolaris 2009.06

Guest OS:

Solaris 10/11, Opensolaris 2009.06, Illumos?Sparc Linux and other OS which support this architecture.

Currently, only SunOS is supported as Guest OS.

Juanjo Amor Solaris LDOMs

Page 38: Virtualization - Solaris LDOMs - OpenSistemas

What are LDOMs?

LDOMs:

“full virtualization”, type I hypervisor

It requires special CPUs (Chip Multithreading = CMT).

Base OS: Solaris 10 / 11 / Opensolaris 2009.06

Guest OS:

Solaris 10/11, Opensolaris 2009.06, Illumos?Sparc Linux and other OS which support this architecture.

Currently, only SunOS is supported as Guest OS.

Juanjo Amor Solaris LDOMs

Page 39: Virtualization - Solaris LDOMs - OpenSistemas

What are LDOMs?

LDOMs:

“full virtualization”, type I hypervisor

It requires special CPUs (Chip Multithreading = CMT).

Base OS: Solaris 10 / 11 / Opensolaris 2009.06

Guest OS:

Solaris 10/11, Opensolaris 2009.06, Illumos?

Sparc Linux and other OS which support this architecture.

Currently, only SunOS is supported as Guest OS.

Juanjo Amor Solaris LDOMs

Page 40: Virtualization - Solaris LDOMs - OpenSistemas

What are LDOMs?

LDOMs:

“full virtualization”, type I hypervisor

It requires special CPUs (Chip Multithreading = CMT).

Base OS: Solaris 10 / 11 / Opensolaris 2009.06

Guest OS:

Solaris 10/11, Opensolaris 2009.06, Illumos?Sparc Linux and other OS which support this architecture.

Currently, only SunOS is supported as Guest OS.

Juanjo Amor Solaris LDOMs

Page 41: Virtualization - Solaris LDOMs - OpenSistemas

What are LDOMs?

LDOMs:

“full virtualization”, type I hypervisor

It requires special CPUs (Chip Multithreading = CMT).

Base OS: Solaris 10 / 11 / Opensolaris 2009.06

Guest OS:

Solaris 10/11, Opensolaris 2009.06, Illumos?Sparc Linux and other OS which support this architecture.

Currently, only SunOS is supported as Guest OS.

Juanjo Amor Solaris LDOMs

Page 42: Virtualization - Solaris LDOMs - OpenSistemas

Chip Multithreading (CMT)

Ultrasparc T1/T2/T3

Multithread. A thread is similar to a CPU.

Example: T1 has 8 cores with 4 threads/core.

Direct SSL support on hardware (1 MAU/core).

LDOMs can assign threads to VMs.

Hypervisor runs on server firmware.

“free” hardware: http://www.opensparc.net/

Sun Fire T / Enterprise T / Blade T Servers

Juanjo Amor Solaris LDOMs

Page 43: Virtualization - Solaris LDOMs - OpenSistemas

Chip Multithreading (CMT)

Ultrasparc T1/T2/T3

Multithread. A thread is similar to a CPU.

Example: T1 has 8 cores with 4 threads/core.

Direct SSL support on hardware (1 MAU/core).

LDOMs can assign threads to VMs.

Hypervisor runs on server firmware.

“free” hardware: http://www.opensparc.net/

Sun Fire T / Enterprise T / Blade T Servers

Juanjo Amor Solaris LDOMs

Page 44: Virtualization - Solaris LDOMs - OpenSistemas

Chip Multithreading (CMT)

Ultrasparc T1/T2/T3

Multithread. A thread is similar to a CPU.

Example: T1 has 8 cores with 4 threads/core.

Direct SSL support on hardware (1 MAU/core).

LDOMs can assign threads to VMs.

Hypervisor runs on server firmware.

“free” hardware: http://www.opensparc.net/

Sun Fire T / Enterprise T / Blade T Servers

Juanjo Amor Solaris LDOMs

Page 45: Virtualization - Solaris LDOMs - OpenSistemas

Chip Multithreading (CMT)

Ultrasparc T1/T2/T3

Multithread. A thread is similar to a CPU.

Example: T1 has 8 cores with 4 threads/core.

Direct SSL support on hardware (1 MAU/core).

LDOMs can assign threads to VMs.

Hypervisor runs on server firmware.

“free” hardware: http://www.opensparc.net/

Sun Fire T / Enterprise T / Blade T Servers

Juanjo Amor Solaris LDOMs

Page 46: Virtualization - Solaris LDOMs - OpenSistemas

Chip Multithreading (CMT)

Ultrasparc T1/T2/T3

Multithread. A thread is similar to a CPU.

Example: T1 has 8 cores with 4 threads/core.

Direct SSL support on hardware (1 MAU/core).

LDOMs can assign threads to VMs.

Hypervisor runs on server firmware.

“free” hardware: http://www.opensparc.net/

Sun Fire T / Enterprise T / Blade T Servers

Juanjo Amor Solaris LDOMs

Page 47: Virtualization - Solaris LDOMs - OpenSistemas

Chip Multithreading (CMT)

Ultrasparc T1/T2/T3

Multithread. A thread is similar to a CPU.

Example: T1 has 8 cores with 4 threads/core.

Direct SSL support on hardware (1 MAU/core).

LDOMs can assign threads to VMs.

Hypervisor runs on server firmware.

“free” hardware: http://www.opensparc.net/

Sun Fire T / Enterprise T / Blade T Servers

Juanjo Amor Solaris LDOMs

Page 48: Virtualization - Solaris LDOMs - OpenSistemas

Chip Multithreading (CMT)

Ultrasparc T1/T2/T3

Multithread. A thread is similar to a CPU.

Example: T1 has 8 cores with 4 threads/core.

Direct SSL support on hardware (1 MAU/core).

LDOMs can assign threads to VMs.

Hypervisor runs on server firmware.

“free” hardware: http://www.opensparc.net/

Sun Fire T / Enterprise T / Blade T Servers

Juanjo Amor Solaris LDOMs

Page 49: Virtualization - Solaris LDOMs - OpenSistemas

Chip Multithreading (CMT)

Ultrasparc T1/T2/T3

Multithread. A thread is similar to a CPU.

Example: T1 has 8 cores with 4 threads/core.

Direct SSL support on hardware (1 MAU/core).

LDOMs can assign threads to VMs.

Hypervisor runs on server firmware.

“free” hardware: http://www.opensparc.net/

Sun Fire T / Enterprise T / Blade T Servers

Juanjo Amor Solaris LDOMs

Page 50: Virtualization - Solaris LDOMs - OpenSistemas

Installing LDOMs

1. LDOMs 1.2 may require firmware upgrade:

some servers could have firmware older than 6.7.4.

sc> showhost

Sun-Fire-T2000 System Firmware 6.5.3 2007/10/03 05:56

Host flash versions:

Hypervisor 1.5.2 2007/09/25 08:39

OBP 4.27.4 2007/10/02 18:35

POST 4.27.4 2007/10/02 19:03

# ./sysfwdownload ./Sun_System_Firmware-6_7_4-Sun_Fire_T2000.bin

... ... ... ...

Download completed succesfully.

sc> flashupdate -s 127.0.0.1

... ... ...

Update complete. Reset device to use new software.

sc> resetsc

Juanjo Amor Solaris LDOMs

Page 51: Virtualization - Solaris LDOMs - OpenSistemas

Installing LDOMs

1. LDOMs 1.2 may require firmware upgrade:

some servers could have firmware older than 6.7.4.

sc> showhost

Sun-Fire-T2000 System Firmware 6.5.3 2007/10/03 05:56

Host flash versions:

Hypervisor 1.5.2 2007/09/25 08:39

OBP 4.27.4 2007/10/02 18:35

POST 4.27.4 2007/10/02 19:03

# ./sysfwdownload ./Sun_System_Firmware-6_7_4-Sun_Fire_T2000.bin

... ... ... ...

Download completed succesfully.

sc> flashupdate -s 127.0.0.1

... ... ...

Update complete. Reset device to use new software.

sc> resetsc

Juanjo Amor Solaris LDOMs

Page 52: Virtualization - Solaris LDOMs - OpenSistemas

Installing LDOMs

1. LDOMs 1.2 may require firmware upgrade:

some servers could have firmware older than 6.7.4.

sc> showhost

Sun-Fire-T2000 System Firmware 6.5.3 2007/10/03 05:56

Host flash versions:

Hypervisor 1.5.2 2007/09/25 08:39

OBP 4.27.4 2007/10/02 18:35

POST 4.27.4 2007/10/02 19:03

# ./sysfwdownload ./Sun_System_Firmware-6_7_4-Sun_Fire_T2000.bin

... ... ... ...

Download completed succesfully.

sc> flashupdate -s 127.0.0.1

... ... ...

Update complete. Reset device to use new software.

sc> resetsc

Juanjo Amor Solaris LDOMs

Page 53: Virtualization - Solaris LDOMs - OpenSistemas

Installing LDOMs (II)

2. Install ldoms manager 1.2 package.

Package available in Opensolaris repository.

# pkg install ldomsmanager

3. Initial setup of domain controller.

global# ldm add-vds primary-vds0 primary

global# ldm add-vcc port-range=5000-5100 primary-vcc0

global# ldm add-vsw net-dev=e1000g2 primary-vsw0 primary

global# ldm set-mau 1 primary

global# ldm set-vcpu 16 primary

global# ldm set-memory 16384m primary

global# ldm ls

------------------------------------------------------------------------------

Notice: the LDom Manager is running in configuration mode. Configuration and

resource information is displayed for the configuration under construction;

not the current active configuration. The configuration being constructed

will only take effect after it is downloaded to the system controller and

the host is reset.

------------------------------------------------------------------------------

NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME

primary active -n-cv- SP 16 16G 0.0% 1h 9m

Juanjo Amor Solaris LDOMs

Page 54: Virtualization - Solaris LDOMs - OpenSistemas

Installing LDOMs (II)

2. Install ldoms manager 1.2 package.

Package available in Opensolaris repository.

# pkg install ldomsmanager

3. Initial setup of domain controller.

global# ldm add-vds primary-vds0 primary

global# ldm add-vcc port-range=5000-5100 primary-vcc0

global# ldm add-vsw net-dev=e1000g2 primary-vsw0 primary

global# ldm set-mau 1 primary

global# ldm set-vcpu 16 primary

global# ldm set-memory 16384m primary

global# ldm ls

------------------------------------------------------------------------------

Notice: the LDom Manager is running in configuration mode. Configuration and

resource information is displayed for the configuration under construction;

not the current active configuration. The configuration being constructed

will only take effect after it is downloaded to the system controller and

the host is reset.

------------------------------------------------------------------------------

NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME

primary active -n-cv- SP 16 16G 0.0% 1h 9m

Juanjo Amor Solaris LDOMs

Page 55: Virtualization - Solaris LDOMs - OpenSistemas

Installing LDOMs (II)

2. Install ldoms manager 1.2 package.

Package available in Opensolaris repository.

# pkg install ldomsmanager

3. Initial setup of domain controller.

global# ldm add-vds primary-vds0 primary

global# ldm add-vcc port-range=5000-5100 primary-vcc0

global# ldm add-vsw net-dev=e1000g2 primary-vsw0 primary

global# ldm set-mau 1 primary

global# ldm set-vcpu 16 primary

global# ldm set-memory 16384m primary

global# ldm ls

------------------------------------------------------------------------------

Notice: the LDom Manager is running in configuration mode. Configuration and

resource information is displayed for the configuration under construction;

not the current active configuration. The configuration being constructed

will only take effect after it is downloaded to the system controller and

the host is reset.

------------------------------------------------------------------------------

NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME

primary active -n-cv- SP 16 16G 0.0% 1h 9m

Juanjo Amor Solaris LDOMs

Page 56: Virtualization - Solaris LDOMs - OpenSistemas

Installing LDOMs (II)

2. Install ldoms manager 1.2 package.

Package available in Opensolaris repository.

# pkg install ldomsmanager

3. Initial setup of domain controller.

global# ldm add-vds primary-vds0 primary

global# ldm add-vcc port-range=5000-5100 primary-vcc0

global# ldm add-vsw net-dev=e1000g2 primary-vsw0 primary

global# ldm set-mau 1 primary

global# ldm set-vcpu 16 primary

global# ldm set-memory 16384m primary

global# ldm ls

------------------------------------------------------------------------------

Notice: the LDom Manager is running in configuration mode. Configuration and

resource information is displayed for the configuration under construction;

not the current active configuration. The configuration being constructed

will only take effect after it is downloaded to the system controller and

the host is reset.

------------------------------------------------------------------------------

NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME

primary active -n-cv- SP 16 16G 0.0% 1h 9m

Juanjo Amor Solaris LDOMs

Page 57: Virtualization - Solaris LDOMs - OpenSistemas

Installing LDOMs (II)

2. Install ldoms manager 1.2 package.

Package available in Opensolaris repository.

# pkg install ldomsmanager

3. Initial setup of domain controller.

global# ldm add-vds primary-vds0 primary

global# ldm add-vcc port-range=5000-5100 primary-vcc0

global# ldm add-vsw net-dev=e1000g2 primary-vsw0 primary

global# ldm set-mau 1 primary

global# ldm set-vcpu 16 primary

global# ldm set-memory 16384m primary

global# ldm ls

------------------------------------------------------------------------------

Notice: the LDom Manager is running in configuration mode. Configuration and

resource information is displayed for the configuration under construction;

not the current active configuration. The configuration being constructed

will only take effect after it is downloaded to the system controller and

the host is reset.

------------------------------------------------------------------------------

NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME

primary active -n-cv- SP 16 16G 0.0% 1h 9m

Juanjo Amor Solaris LDOMs

Page 58: Virtualization - Solaris LDOMs - OpenSistemas

Installing LDOMs (III)

5. Load configuration to system controller (SC) and reboot.

global# ldm list-spconfig

factory-default [current]

global# ldm add-spconfig config_01

global# ldm list-spconfig

global# init 6

...

...

syncing file systems... done

rebooting...

SC Alert: Host System has Reset

...

...

Sun Fire T200, No Keyboard

Copyright 2009 Sun Microsystems, Inc. All rights reserved.

OpenBoot 4.30.3, 16384 MB memory available, Serial #70066726.

Ethernet address 0:14:4f:2d:22:26, Host ID: 842d2226.

Juanjo Amor Solaris LDOMs

Page 59: Virtualization - Solaris LDOMs - OpenSistemas

Installing LDOMs (III)

5. Load configuration to system controller (SC) and reboot.

global# ldm list-spconfig

factory-default [current]

global# ldm add-spconfig config_01

global# ldm list-spconfig

global# init 6

...

...

syncing file systems... done

rebooting...

SC Alert: Host System has Reset

...

...

Sun Fire T200, No Keyboard

Copyright 2009 Sun Microsystems, Inc. All rights reserved.

OpenBoot 4.30.3, 16384 MB memory available, Serial #70066726.

Ethernet address 0:14:4f:2d:22:26, Host ID: 842d2226.

Juanjo Amor Solaris LDOMs

Page 60: Virtualization - Solaris LDOMs - OpenSistemas

Creating a LDOMs domain

1. Create and start the domain.

global# ldm add-domain t2000-01

global# ldm add-vcpu 4 t2000-01

global# ldm add-memory 2048m t2000-01

global# mkfile 4G /export/ldomsvdisks/t2000-01-00.img

global# ldm add-vdsdev /export/ldomsvdisks/t2000-01-00.img vol1@primary-vds0

global# ldm add-vdisk vdisk1 vol1@primary-vds0 t2000-01

global# ldm add-vdsdev /export/aiserver/solaris10-01.iso iso@primary-vds0

global# ldm add-vdisk vcdrom iso@primary-vds0 t2000-01

global# ldm add-vnet vnet1 primary-vsw0 t2000-01

global# ldm bind-domain t2000-01

global# ldm start-domain t2000-01

global# ldm ls

NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME

primary active -n-cv- SP 16 16G 0.2% 1h 9m

t2000-01 active -t---- 5000 4 2G 25% 1m

2. Enter the domain console.

global# telnet 127.0.0.1 5000

Connecting to console "t2000-01" in group "t2000-01" ....

Press ~? for control options ..

Sun Fire T200, No Keyboard

Copyright 2009 Sun Microsystems, Inc. All rights reserved.

OpenBoot 4.30.3, 2048 MB memory available, Serial #83521591.

Ethernet address 0:14:4f:fa:70:37, Host ID: 84fa7037.

{0} ok boot vcdrom ...

Juanjo Amor Solaris LDOMs

Page 61: Virtualization - Solaris LDOMs - OpenSistemas

Creating a LDOMs domain

1. Create and start the domain.

global# ldm add-domain t2000-01

global# ldm add-vcpu 4 t2000-01

global# ldm add-memory 2048m t2000-01

global# mkfile 4G /export/ldomsvdisks/t2000-01-00.img

global# ldm add-vdsdev /export/ldomsvdisks/t2000-01-00.img vol1@primary-vds0

global# ldm add-vdisk vdisk1 vol1@primary-vds0 t2000-01

global# ldm add-vdsdev /export/aiserver/solaris10-01.iso iso@primary-vds0

global# ldm add-vdisk vcdrom iso@primary-vds0 t2000-01

global# ldm add-vnet vnet1 primary-vsw0 t2000-01

global# ldm bind-domain t2000-01

global# ldm start-domain t2000-01

global# ldm ls

NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME

primary active -n-cv- SP 16 16G 0.2% 1h 9m

t2000-01 active -t---- 5000 4 2G 25% 1m

2. Enter the domain console.

global# telnet 127.0.0.1 5000

Connecting to console "t2000-01" in group "t2000-01" ....

Press ~? for control options ..

Sun Fire T200, No Keyboard

Copyright 2009 Sun Microsystems, Inc. All rights reserved.

OpenBoot 4.30.3, 2048 MB memory available, Serial #83521591.

Ethernet address 0:14:4f:fa:70:37, Host ID: 84fa7037.

{0} ok boot vcdrom ...

Juanjo Amor Solaris LDOMs

Page 62: Virtualization - Solaris LDOMs - OpenSistemas

Creating a LDOMs domain

1. Create and start the domain.

global# ldm add-domain t2000-01

global# ldm add-vcpu 4 t2000-01

global# ldm add-memory 2048m t2000-01

global# mkfile 4G /export/ldomsvdisks/t2000-01-00.img

global# ldm add-vdsdev /export/ldomsvdisks/t2000-01-00.img vol1@primary-vds0

global# ldm add-vdisk vdisk1 vol1@primary-vds0 t2000-01

global# ldm add-vdsdev /export/aiserver/solaris10-01.iso iso@primary-vds0

global# ldm add-vdisk vcdrom iso@primary-vds0 t2000-01

global# ldm add-vnet vnet1 primary-vsw0 t2000-01

global# ldm bind-domain t2000-01

global# ldm start-domain t2000-01

global# ldm ls

NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME

primary active -n-cv- SP 16 16G 0.2% 1h 9m

t2000-01 active -t---- 5000 4 2G 25% 1m

2. Enter the domain console.

global# telnet 127.0.0.1 5000

Connecting to console "t2000-01" in group "t2000-01" ....

Press ~? for control options ..

Sun Fire T200, No Keyboard

Copyright 2009 Sun Microsystems, Inc. All rights reserved.

OpenBoot 4.30.3, 2048 MB memory available, Serial #83521591.

Ethernet address 0:14:4f:fa:70:37, Host ID: 84fa7037.

{0} ok boot vcdrom ...

Juanjo Amor Solaris LDOMs

Page 63: Virtualization - Solaris LDOMs - OpenSistemas

Creating a LDOMs domain

1. Create and start the domain.

global# ldm add-domain t2000-01

global# ldm add-vcpu 4 t2000-01

global# ldm add-memory 2048m t2000-01

global# mkfile 4G /export/ldomsvdisks/t2000-01-00.img

global# ldm add-vdsdev /export/ldomsvdisks/t2000-01-00.img vol1@primary-vds0

global# ldm add-vdisk vdisk1 vol1@primary-vds0 t2000-01

global# ldm add-vdsdev /export/aiserver/solaris10-01.iso iso@primary-vds0

global# ldm add-vdisk vcdrom iso@primary-vds0 t2000-01

global# ldm add-vnet vnet1 primary-vsw0 t2000-01

global# ldm bind-domain t2000-01

global# ldm start-domain t2000-01

global# ldm ls

NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME

primary active -n-cv- SP 16 16G 0.2% 1h 9m

t2000-01 active -t---- 5000 4 2G 25% 1m

2. Enter the domain console.

global# telnet 127.0.0.1 5000

Connecting to console "t2000-01" in group "t2000-01" ....

Press ~? for control options ..

Sun Fire T200, No Keyboard

Copyright 2009 Sun Microsystems, Inc. All rights reserved.

OpenBoot 4.30.3, 2048 MB memory available, Serial #83521591.

Ethernet address 0:14:4f:fa:70:37, Host ID: 84fa7037.

{0} ok boot vcdrom ...

Juanjo Amor Solaris LDOMs

Page 64: Virtualization - Solaris LDOMs - OpenSistemas

LDOMs domains

3. Installing a guest OS.

Opensolaris 2009.06, through automated install (AI).

Solaris 10/11, through network or cdrom.

Debian, Ubuntu for Sparc (old releases, unsupported).

other, unsupported.

4. Destroying a LDOMs domain.

global# ldm stop t2000-01

global# ldm unbind t2000-01

global# ldm remove-vnet vnet1 t2000-01

global# ldm remove-domain t2000-01

global# ldm remove-vdsdev vdisk1

global# ldm

global# rm /export/ldomvdisks/t2000-01.img

global# ldm remove-vdsdev vcdrom

Juanjo Amor Solaris LDOMs

Page 65: Virtualization - Solaris LDOMs - OpenSistemas

LDOMs domains

3. Installing a guest OS.

Opensolaris 2009.06, through automated install (AI).

Solaris 10/11, through network or cdrom.

Debian, Ubuntu for Sparc (old releases, unsupported).

other, unsupported.

4. Destroying a LDOMs domain.

global# ldm stop t2000-01

global# ldm unbind t2000-01

global# ldm remove-vnet vnet1 t2000-01

global# ldm remove-domain t2000-01

global# ldm remove-vdsdev vdisk1

global# ldm

global# rm /export/ldomvdisks/t2000-01.img

global# ldm remove-vdsdev vcdrom

Juanjo Amor Solaris LDOMs

Page 66: Virtualization - Solaris LDOMs - OpenSistemas

LDOMs domains

3. Installing a guest OS.

Opensolaris 2009.06, through automated install (AI).

Solaris 10/11, through network or cdrom.

Debian, Ubuntu for Sparc (old releases, unsupported).

other, unsupported.

4. Destroying a LDOMs domain.

global# ldm stop t2000-01

global# ldm unbind t2000-01

global# ldm remove-vnet vnet1 t2000-01

global# ldm remove-domain t2000-01

global# ldm remove-vdsdev vdisk1

global# ldm

global# rm /export/ldomvdisks/t2000-01.img

global# ldm remove-vdsdev vcdrom

Juanjo Amor Solaris LDOMs

Page 67: Virtualization - Solaris LDOMs - OpenSistemas

LDOMs domains

3. Installing a guest OS.

Opensolaris 2009.06, through automated install (AI).

Solaris 10/11, through network or cdrom.

Debian, Ubuntu for Sparc (old releases, unsupported).

other, unsupported.

4. Destroying a LDOMs domain.

global# ldm stop t2000-01

global# ldm unbind t2000-01

global# ldm remove-vnet vnet1 t2000-01

global# ldm remove-domain t2000-01

global# ldm remove-vdsdev vdisk1

global# ldm

global# rm /export/ldomvdisks/t2000-01.img

global# ldm remove-vdsdev vcdrom

Juanjo Amor Solaris LDOMs

Page 68: Virtualization - Solaris LDOMs - OpenSistemas

LDOMs domains

3. Installing a guest OS.

Opensolaris 2009.06, through automated install (AI).

Solaris 10/11, through network or cdrom.

Debian, Ubuntu for Sparc (old releases, unsupported).

other, unsupported.

4. Destroying a LDOMs domain.

global# ldm stop t2000-01

global# ldm unbind t2000-01

global# ldm remove-vnet vnet1 t2000-01

global# ldm remove-domain t2000-01

global# ldm remove-vdsdev vdisk1

global# ldm

global# rm /export/ldomvdisks/t2000-01.img

global# ldm remove-vdsdev vcdrom

Juanjo Amor Solaris LDOMs

Page 69: Virtualization - Solaris LDOMs - OpenSistemas

LDOMs domains

3. Installing a guest OS.

Opensolaris 2009.06, through automated install (AI).

Solaris 10/11, through network or cdrom.

Debian, Ubuntu for Sparc (old releases, unsupported).

other, unsupported.

4. Destroying a LDOMs domain.

global# ldm stop t2000-01

global# ldm unbind t2000-01

global# ldm remove-vnet vnet1 t2000-01

global# ldm remove-domain t2000-01

global# ldm remove-vdsdev vdisk1

global# ldm

global# rm /export/ldomvdisks/t2000-01.img

global# ldm remove-vdsdev vcdrom

Juanjo Amor Solaris LDOMs

Page 70: Virtualization - Solaris LDOMs - OpenSistemas

LDOMs domains

3. Installing a guest OS.

Opensolaris 2009.06, through automated install (AI).

Solaris 10/11, through network or cdrom.

Debian, Ubuntu for Sparc (old releases, unsupported).

other, unsupported.

4. Destroying a LDOMs domain.

global# ldm stop t2000-01

global# ldm unbind t2000-01

global# ldm remove-vnet vnet1 t2000-01

global# ldm remove-domain t2000-01

global# ldm remove-vdsdev vdisk1

global# ldm

global# rm /export/ldomvdisks/t2000-01.img

global# ldm remove-vdsdev vcdrom

Juanjo Amor Solaris LDOMs

Page 71: Virtualization - Solaris LDOMs - OpenSistemas

References

Opensolaris LDOMs communityhttp://opensolaris.org/os/community/ldoms

Opensparchttp://www.opensparc.net/

CMT Oracle (formerly Sun) servershttp://www.oracle.com/us/products/

servers-storage/servers/sparc-enterprise/t-series

See our old stuffhttp://dramor.net/blog/archives/243

http://dramor.net/blog/archives/250

Juanjo Amor Solaris LDOMs