8
Table of Contents page SUSE Linux Enterprise Server 11 SP2 and PXE Boot for UEFI Clients..2 UEFI IPv4 PXE Setup Procedure.2 UEFI IPv6 PXE Setup Procedure. 4 Glossary..7 SUSE ® Linux Enterprise Server 11 SP2 for UEFI Clients Best Practices White Paper Enterprise.Linux

SUSE Linux Enterprise Server 11 SP2 for UEFI Clients

  • Upload
    others

  • View
    5

  • Download
    1

Embed Size (px)

Citation preview

Page 1: SUSE Linux Enterprise Server 11 SP2 for UEFI Clients

Table of Contents page

SUSE Linux Enterprise Server 11 SP2 and PXE Boot for UEFI Clients. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 UEFI IPv4 PXE Setup Procedure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2UEFI IPv6 PXE Setup Procedure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Glossary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7

SUSE® Linux Enterprise Server 11 SP2 for UEFI Clients

Best Practices White PaperEnterprise.Linux

Page 2: SUSE Linux Enterprise Server 11 SP2 for UEFI Clients

2

Enterprise Linux Best Practices White PaperSUSE Linux Enterprise Server 11 SP2 for UEFI Clients

While Service Pack 1 of version 11 officially introduced support for the installation, Service Pack 2 adds the ability for SUSE Linux Enterprise Server to act as the boot server for UEFI machines using a Preboot Execution Environment (PXE).

Intel.experts,.together.with.SUSE.engineering,.have.devel-oped.a.workflow.for.easy.activation.of.remote.boot.for.UEFI.clients.using.SUSE.Linux.Enterprise.Server.as.the.PXE.boot.server ..The.average.network.administrator.should.be.able.to.follow.the.workflow.without.difficulty ..This.workflow.covers.IPv4.as.well.as.IPv6.networks .

The.following.documentation.is.the.result.of.this.coopera-tion ..Special.thanks.go.to.Dale.Cox,.Harry.Hsiung.and.Vincent.Zimmer.at.Intel.for.their.significant.contributions.to.this.best.practices.paper . ..

UEFI IPv4 PXE Setup ProcedureThis.section.walks.through.setting.up.a.UEFI.PXE.on.a.sys-tem.running.SUSE.Linux.Enterprise.Server.to.allow.instal-lation.of.SUSE.Linux.Enterprise.Server.on.a.UEFI.client.by.booting.from.an.IPv4.network ..You.will.need.a.clean.instal-lation.of.SUSE.Linux.Enterprise.Server.on.the.machine.you.intend.to.use.as.the.PXE.boot.server,.root.access,.the.first.installation.DVD.and.a.network.adapter.installed ..If.working.

from.a.command-line.interface,.the.steps.requiring.YaST®.may.be.completed.using.the.text-mode.YaST.utility.(type.yast from.a.command.line) .

Disable Firewall1.. Start.YaST .2..In.the.Security and Users.section,.select.Firewall .3..Select.Disable Firewall Automatic Starting .4..Click.Stop Firewall Now .

SUSE® Linux Enterprise Server 11 SP2 and PXE Boot for UEFI ClientsThe Unified Extensible Firmware Interface (UEFI) is quickly replacing BIOS as the new standard for firmware interfaces. Because many network administrators use network install and because SUSE saw the importance of this new standard, SUSE invested early in supporting this new technology in SUSE Linux Enterprise Server.

Page 3: SUSE Linux Enterprise Server 11 SP2 for UEFI Clients

3www.suse.com

5..Click.Next .6..Click.Finish .

Configure Network Adapter1.. Start.YaST .2..In.the.Network Devices.section,.select.Network Settings .3..Select.the.adapter.you.wish.to.use,.then.click.Edit .4..Select.Statically assigned IP Address ..Enter.the.following.

settings:. –. IP.Address:.192 .168 .100 .101. –. Subnet.Mask:./24

5..Click.Next .6..Click.OK .

Install ServicesIn.this.section.you.will.install.the.necessary.services.for.PXE.boot:.Dynamic.Host.Configuration.Protocol.(DHCP),.FTP.and.Trivial.FTP.(TFTP).servers ..If.your.installation.already.has.these.services.installed,.skip.this.section .

1.. Start.YaST .2..In.the.Network Services.section,.select.DHCP Server .3..You.will.be.asked.to.install.the.DHCP.server.if.it.is.not.

.already.installed ..Choose.to.install.and.accept.all.defaults .

4..Select.FTP Server in.YaST .5..You.will.be.asked.to.install.the.FTP.server.if.it.has.not.

already.been.installed ..Choose.to.install.and.accept.all..defaults .

6..Select.TFTP Server in.YaST .7..Click.Enable.and.it.will.offer.to.install.the.TFTP.Server ..

Choose.to.install.and.accept.all.defaults .

Configure the DHCP Daemon (DHCPD)In.this.section.you.will.select.the.interface.that.DHCPD.should.listen.on.and.create.a.configuration.file ..A.default.configura-tion.file.may.already.exist ..Create.a.copy.if.you.would.like.to.keep.the.default.configuration.file .

1.. If.you.have.multiple.network.adapters.on.your.system..you.may.have.to.edit./etc/sysconfig/dhcpd.and.verify..DHCPD_INTERFACE.is.set.to.the.network.adapter.you.would.like.the.DHCP.server.to.listen.on.(Usually.“eth0”) .

2..Create./etc/dhcpd .conf.with.the.following.contents:

Configure the EFI Linux Boot Loader (ELILO)In.this.section.you.will.retrieve.ELILO.from.the.installation.DVD.and.create.a.configuration.file .

1.. Place.the.first.SUSE.Linux.Enterprise.Server.install.DVD.in.your.DVD.drive .

2..Open.a.root.terminal .3..Create.a.temporary.directory,.mount.the.boot.image.and.

copy.the.contents .

#dhcpd.conf

option domain-name “pxetest.org”;

option domain-name-servers 192.168.100.101;

option routers 192.168.100.101;

ddns-update-style none;

subnet 192.168.100.0 netmask 255.255.255.0 {

range 192.168.100.120 192.168.100.199;

default-lease-time 14400;

max-lease-time 172800;

next-server 192.168.100.101;

filename “bootx64.efi”;

}

Page 4: SUSE Linux Enterprise Server 11 SP2 for UEFI Clients

4

Enterprise Linux Best Practices White PaperSUSE Linux Enterprise Server 11 SP2 for UEFI Clients

4..Create.a.file.at./tftpboot/elilo .conf.with.the.following..contents:

Copy Installation Files

Restart DHCPDBecause.we.changed.the.configuration.file,.you.will.have.to.restart.the.DHCP .

Test the Setup on a Client1.. Connect.an.EFI.machine.to.the.network.and.turn.it.on .2..Enter.the.Boot.Option.menu.by.pressing.spacebar.on.

startup .3..Select.Boot Manager.from.the.menu .4..Select.EFI Network.to.boot.using.IPv4 .5..At.this.point,.you.should.see.ELILO.appear.and.prompt.you.

to.install.SUSE.Linux.Enterprise.Server ..For.more.information..on.remote.installation.of.SUSE.Linux.Enterprise.Server..via.PXE,.see.the.SUSE.Linux.Enterprise.Server.11.SP2..Deployment.Guide,.section.14 .1 .3 .

UEFI IPv6 PXE Setup ProcedureThis.section.walks.through.setting.up.a.UEFI.PXE.on.a.sys-tem.running.SUSE.Linux.Enterprise.Server.to.allow.instal-lation.of.SUSE.Linux.Enterprise.Server.on.a.UEFI.client.by.booting.from.an.IPv6.network ..You.will.need.a.clean.instal-lation.of.SUSE.Linux.Enterprise.Server.on.the.machine.you.intend.to.use.as.the.PXE.boot.server,.root.access,.the.first.installation.DVD.and.a.network.adapter.installed ..If.working.from.a.command-line.interface,.the.steps.requiring.YaST.may.be.completed.using.the.text-mode.YaST.utility.(type yast from.a.command.line) .

Disable Firewall1.. Start.YaST .2..In.the.Security and Users.section,.select.Firewall .3..Select.Disable Firewall Automatic Starting .4..Click.Stop Firewall Now .

5..Click.Next .6..Click.Finish .

Configure Network Adapter1.. Start.YaST .2..In.the.Network Devices.section,.select.Network Settings .

# mkdir /tmp/efi-img

# mount –t vfat /media/<name of disc>/boot/x86_64/efi /tmp/efi-img

# cp /tmp/efi-img/efi/boot/* /tftpboot

prompt

timeout=50

delay=100

image=/linux

label=suse

initrd=/initrd

append=”install=ftp://192.168.100.101/sles sysrq=1”

# cd /media/<name of disc>

# mkdir /srv/ftp/sles

# cp –r * /srv/ftp/sles

# service dhpcd start

Shutting down ISC DHCPv4 4.x Server done

Starting ISC DHCPv4 4.x Server [chroot] done

Page 5: SUSE Linux Enterprise Server 11 SP2 for UEFI Clients

5www.suse.com

3..Select.the.adapter.you.wish.to.use,.then.click.Edit .4..Select.Statically assigned IP Address ..Enter.the.following.

settings:. –. IP.Address:.192 .168 .100 .101. –. Subnet.Mask:./245..Click.Add.under.the.Additional Addresses.section.to.add..

an.alias:. –. Alias.Name:.ipv6static. –. IP.Address:.fc00:ba49:1625:fb0f::137. –. Netmask:./646..Click.OK .

7..Click.Next .8..Click.OK .

Install ServicesIn.this.section.you.will.install.the.necessary.services.for.PXE.boot:.Dynamic.Host.Configuration.Protocol.(DHCP),.FTP.and.Trivial.FTP.(TFTP).servers ..If.your.installation.already.has.these.services.installed,.skip.this.section .

1.. Start.YaST .2..In.the.Network Services.section,.select.DHCP Server .3..You.will.be.asked.to.install.the.DHCP.server.if.it.is.not.

.already.installed ..Choose.to.install.and.accept.all.defaults .4..Select.FTP Server in.YaST .5..You.will.be.asked.to.install.the.FTP.server.if.it.has.not.

already.been.installed ..Choose.to.install.and.accept.all..defaults .

6..Select.TFTP Server in.YaST .7..Click.Enable.and.it.will.offer.to.install.the.TFTP.Server ..

Choose.to.install.and.accept.all.defaults .

Configure DHCPD6In.this.section,.you.select.an.interface.that.DHCPD6.should.listen.on.and.create.a.configuration.file ..A.default.configura-tion.file.may.already.exist ..Create.a.copy.if.you.would.like.to.keep.the.default.configuration.file .

1.. Edit./etc/sysconfig/dhcpd.and.verify.DHCPD6_INTERFACE.is.set.to.the.network.adapter.you.would.like.the.DHCP.server.to.listen.on.(Usually.“eth0”) .

DHCPD6_INTERFACE=”eth0”

Page 6: SUSE Linux Enterprise Server 11 SP2 for UEFI Clients

6

Enterprise Linux Best Practices White PaperSUSE Linux Enterprise Server 11 SP2 for UEFI Clients

Configure the EFI Linux Boot Loader (ELILO)In.this.section.you.will.retrieve.ELILO.from.the.installation.DVD.and.create.a.configuration.file .

1.. Place.the.first.SUSE.Linux.Enterprise.Server.install.DVD.in.your.DVD.drive .2..Open.a.root.terminal .3..Create.a.temporary.directory,.mount.the.boot.image.and.copy.the.contents .

#dhcpd6.conf

default-lease-time 2592000;

preferred-lifetime 604800;

option dhcp-renewal-time 3600;

option dhcp-rebinding-time 7200;

allow leasequery;

option dhcp6.name-servers fc00:ba49:1625:fb0f::1;

option dhcp6.domain-search “pxetest.org”;

option dhcp6.info-refresh-time 21600;

option dhcp6.bootfile-url code 59 = string;

# The subnet where the server is attached

# (i.e., the server has an address in this subnet)

subnet6 fc00:ba49:1625:fb0f::/64 {

option dhcp6.bootfile-url “tftp://[fc00:ba49:1625:fb0f::137]/bootx64.efi”;

# Nine addresses available to clients

# (the tenth client should get NoAddrsAvail)

range6 fc00:ba49:1625:fb0f::42:10 fc00:ba49:1625:fb0f::42:99;

# Use the whole /64 prefix for temporary addresses

# (i.e., direct application of RFC 4941)

range6 fc00:ba49:1625:fb0f:: temporary;

}

2..Create./etc/dhcpd6 .conf.with.the.following.contents:

# mkdir /tmp/efi-img

# mount –t vfat /media/<name of disc>/boot/x86_64/efi /tmp/efi-img

# cp /tmp/efi-img/efi/boot/* /tftpboot

Page 7: SUSE Linux Enterprise Server 11 SP2 for UEFI Clients

7www.suse.com

Copy Installation Files

Start DHCPD6Start.DHCPD6.and.make.it.start.on.boot .

Test the Setup on a Client1.. Connect.an.EFI.machine.to.the.network.and.turn.it.on .2..Enter.the.Boot.Option.menu.by.pressing.spacebar.on.

startup .3..Select.Boot Manager.from.the.menu .4..Select.EFI Network 1.to.boot.using.IPv6 .5..At.this.point,.you.should.see.ELILO.appear.and.prompt.you.

to.install.SUSE.Linux.Enterprise.Server ..For.more.information..on.remote.installation.of.SUSE.Linux.Enterprise.Server..via.PXE,.see.the.SUSE.Linux.Enterprise.Server.11.SP2..Deployment.Guide.section.14 .1 .3 .

GlossaryClient—The.machine.which.will.be.getting.bootstrap.informa-tion.over.the.network.from.the.server ..Sometimes.referred.to.as.the.“target”.machine .

DHCP—Dynamic.Host.Configuration.Protocol ..One.of.the.pro-tocols.that.PXE.requires.to.operate .

ELILO—The.EFI.Linux.Boot.Loader .

FTP—File.Transfer.Protocol ..One.of.the.protocols.that.PXE..requires.to.operate .

PXE—preboot.execution.environment ..An.environment.that.allows.you.to.use.a.network.interface.to.boot.a.computer..independent.of.a.hard.disk.or.operating.system .

PXE boot server—The.machine.on.which.you.set.up.the.PXE ..This.machine.hands.out.the.bootstrap.information.to.the.cli-ent.machines .

TFTP—Trivial.File.Transfer.Protocol ..One.of.the.protocols.that.PXE.requires.to.operate .

UEFI—Unified.Extensible.Firmware.Interface ..Managed.by.the.Unified.EFI.forum,.the.UEFI.sets.specifications.for.the.interface.between.an.operating.system.and.firmware ..A.replacement.for.the.Basic.Input/Output.System.(BIOS) .

prompt

timeout=50

delay=100

image=/linux

label=suse

initrd=/initrd

append=”install=ftp://fc00:ba49:1625:fb0f::137/sles sysrq=1”

# cd /media/<name of disc>

# mkdir /srv/ftp/sles

# cp –r * /srv/ftp/sles

# service dhpcd6 start

Shutting down ISC DHCPv6 4.x Server done

Starting ISC DHCPv6 4.x Server [chroot] done

# chkconfig dhcpd6 on

4..Create./tftpboot/elilo .conf.with.the.following.contents:

Page 8: SUSE Linux Enterprise Server 11 SP2 for UEFI Clients

www.suse.com

Contact your local SUSE Solutions Provider, or call SUSE at:

1.800.796.3700.U .S ./Canada

1.801.861.4500.Worldwide

SUSE

Maxfeldstrasse.5

90409.Nuremberg

Germany

262-002500-002 | 12/12 | © 2012 SUSE. All rights reserved. SUSE, the SUSE logo and YaST are registered trademarks of Novell, Inc. in the

United States and other countries. All third-party trademarks are the property of their respective owners.