devopstales / devopstales.github.io

8 stars 7 forks source link

https://devopstales.github.io/kubernetes/openshift4-install/ #14

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

How To Install OKD OpenShift 4 on premise - devopstales

https://devopstales.github.io/kubernetes/openshift4-install/

tk-knows commented 2 years ago

are you making a vmware VM from CD image. I thought you are doing it from OVA, customizing the mac addresses manually

devopstales commented 2 years ago

I use nether a CD image nor an OVA. If you check carefully my post you can see I create a netboot server and I use that for the install.

tk-knows commented 2 years ago

I use RHEL8 as helper/webserver, the firewalld of RHE8 (replacement for pfSense) and the tftboot setup server for netboot.

CAn I assume that you created coreOS VMs from vcenter/esxi and assigned MAC addresses manually. Am I right? I think the coreOS while booting seeks DHCP server and dhcp/netboot instructions tell the VM to download the fedora-coreos-33.20210117.3.2-metal.x86_64.raw.xz mage files and boot.

Am I right?

But, then why do we have the instruction to grab ISO image under the headline:

Create okd config

find the iso: https://getfedora.org/en/coreos/download?tab=metal_virtualized&stream=stable 4K vs non 4K wget fedora-coreos-33.20210117.3.2-live.x86_64.iso wget https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/33.20210117.3.2/x86_64/fedora-coreos-33.20210117.3.2-metal.x86_64.raw.xz

I assumed you uploaded ISO image into the datastore and pointed the VM to use ISO also, in addition to netboot grabbing raw.xz file from /var/www/html/ area of webserver.
That does not make sense. The ISO boot does not need raw.xz. So it must be a mistake you may have forgotten to remove this line on ISO file download. Am I right?

tk-knows commented 2 years ago

So, the IP address is assigned to VM with MAC to IP mapping at dhcp server. While booting , at the console , we manually choose, if it is a master or worker or a bootstrap. Am I right.? Now it all makes sense. I thought I need to keep a file under pxelinux.cfg folder, having a name as Mac Address, and throw in few configurations.. Not needed I guess. Thanks.

devopstales commented 2 years ago

Hell @tkvinfolio as you can see I downloaded the is mounted and coped files from it for the net boot sequence. An you are write you can create files for all the mac address to configure it's roles. If you need more help yo can find me on Slack.

tk-knows commented 2 years ago

Thanks a bunch. Could not locate you on slack's mac desktop application. How to locate you on slack. I was trying to locate you as user 'devopstales' in browser application also. I guess I need to give your full email id to locate you. Can you send your email id please?

tk-knows commented 2 years ago

I must have really missed something. Pardon me. your instructions with cp command copies from /usr/share/syslinux to /var/lib/tftboot

mkdir -p /var/lib/tftpboot
cp -v /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
cp -v /usr/share/syslinux/menu.c32 /var/lib/tftpboot/
cp -v /usr/share/syslinux/mboot.c32 /var/lib/tftpboot/
cp -v /usr/share/syslinux/chain.c32 /var/lib/tftpboot/
cp -v /usr/share/syslinux/ldlinux.c32 /var/lib/tftpboot/
cp -v /usr/share/syslinux/libutil.c32 /var/lib/tftpboot/

The CD iso image tree does not have the files pxelinux.0, menu.c32, mboot.c32, chain.c32. But the ISO has libutil.c32 and ldlinux.c32. However you are not using the ISO mounted files here. Did I miss something? Please let me know. What files are you copying from ISO mounted image.? Please update/explain.

Folder /usr/share/syslinux/ is not the CD ISO mounted one, am I right? Where are instructions that copy files from ISO mounted area?

tk-knows commented 2 years ago

Hi @devopstales on the default pxeboot/netboot config below, how would I choose menu option 2 while booting. In the vmWare remote console, that does NOT show any pause option to choose menu option 2 while booting.

menu label ^3) Install OKD Master

I could not find you in "slack connect" as I do not know your email address to invite you. searching on devopstales is not giving any results.

tk-knows commented 2 years ago

Hell @tkvinfolio as you can see I downloaded the is mounted and coped files from it for the net boot sequence. An you are write you can create files for all the mac address to configure it's roles. If you need more help yo can find me on Slack.

CAn you send your email id please to chat in Slack. The Slack connection cannot find you as "devopstales" id. What is your id in Slack? How to find you?

wakbijok commented 1 year ago

Hi @devopstales

I think the part where you need to create nfs etc as part of ignition url (192.168.201.4) mentioned is not part of the tutorial. Is it compulsory

devopstales commented 1 year ago

Hi @razanet

I installed tftp and apache web server on okd4-services machine to hare the necessary files for netinstall. There is no NFS in the picture. I find easier to use this method then configure every booted vm by band for ignition.