xcat2 / xcat-docker

Repository to build Docker image for xCAT
5 stars 5 forks source link

mknb is not run in xcat docker container. #12

Open tingtli opened 5 years ago

tingtli commented 5 years ago

Install and start the xcat docker container robin2008/xcat2:2.14.6, there is no /tftpboot/pxelinux.cfg in it. run mknb manually could create the directory

[root@briggs01 /]# mknb ppc64
Creating genesis.fs.ppc64.gz in /tftpboot/xcat
[root@briggs01 /]# ls /tftpboot/pxelinux.cfg/p
10.0.0.0_8  127.0.0.0_8  172.10.0.0_16  172.11.0.0_16  172.12.0.0_16  172.17.0.0_16
hu-weihua commented 5 years ago

It will add a limitation in xCAT Docker Image document.

robin2008 commented 5 years ago

mknb takes time to create the genesis rootfs, ask user to do it manually especially when he need a special genesis for Power9

robin2008 commented 5 years ago

Known issue:

The shipped xCAT Genesis Base package should work for x86_64 and P8 server. But if you want to it work on P9 server, the xCAT Genesis Base package should be rebuilt. You can do it with steps on a P9 server.

robin2008 commented 5 years ago

@zet809 Is the base genesis could be built out with a P9 container? https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_atomic_host/7/html/getting_started_with_containers/get_started_with_docker_formatted_container_images#supported_architectures_for_containers_on_rhel

jjohnson42 commented 5 years ago

For reference, I was planning to ultimately modify the layout such that the 'mknb' would be mostly unneeded unless customizing. The base and scripts would be separately compressed out of their respective rpms and the custom overlay (e.g. ssh key injection) would be a distinct archive that would be very fast to build).