From xiechj at mail2.sysu.edu.cn Wed Jul 19 14:47:32 2017 From: xiechj at mail2.sysu.edu.cn (=?ISO-8859-1?B?TWFkcGVy?=) Date: Wed, 19 Jul 2017 22:47:32 +0800 Subject: Howto create installation image. Message-ID: Hey guys, I'm trying to port centos7 to our arm64 server. My goal is creating an installation image which execs anaconda directly after boot. Currently, I'm using `livemedia-creator --make-iso --no-virt --ks centos.ks`[1] on an arm64 centos docker. The livemedia-creator is cloned from lorax git tree.(rhel7-branch) However the generated boot.iso is a LiveOS. Which runs into shell directly without executing anaconda. Also I found the livemedia-creator will use tmpl files under /usr/share/lorax/live which are designed for live image. The tmpl files outside of live directory seems designed for installation image. However I can't make them work after I specify them with --lorax-templates . It seems there are some syntax issue with the tmpl files. And even if I fix the syntax issue I can't generate a bootable iso. May I know how to creating the installation image? Is livemedia-creator the correct tool to do that? Do I need to grab a special tmpl files from somewhere? [1]: https://github.com/CentOS/AltArch/blob/master/aarch64/kickstarts/CentOS-7-aarch64-diskimage.ks Thanks a lot in advance, Madper From dedekind1 at gmail.com Wed Jul 19 16:32:23 2017 From: dedekind1 at gmail.com (Artem Bityutskiy) Date: Wed, 19 Jul 2017 19:32:23 +0300 Subject: Howto create installation image. In-Reply-To: References: Message-ID: <1500481943.7216.38.camel@gmail.com> On Wed, 2017-07-19 at 22:47 +0800, Madper wrote: > Hey guys, > > I'm trying to port centos7 to our arm64 server. My goal is creating > an installation image which execs anaconda directly after boot.? > Currently, I'm using `livemedia-creator --make-iso --no-virt --ks > centos.ks`[1] on an arm64 centos docker. The livemedia-creator is > cloned from lorax git tree.(rhel7-branch) Hi, I successfully used lorax. I used it in Fedora, but you can build CentOS images in Fedora if you point loarax to Centos repos. I used something like this: lorax -p CentOS -v 7 -r 7 -s URL1 -s URL2 results where * URL1 - the base CentOS7 repo * URL2 - the updates repo HTH, Artem. From xiechj at mail2.sysu.edu.cn Thu Jul 20 03:29:13 2017 From: xiechj at mail2.sysu.edu.cn (=?ISO-8859-1?B?TWFkcGVy?=) Date: Thu, 20 Jul 2017 11:29:13 +0800 Subject: Howto create installation image. In-Reply-To: <1500481943.7216.38.camel@gmail.com> References: <1500481943.7216.38.camel@gmail.com> Message-ID: Hi Artem, Did you use your own tmpl file? (e.g.: tweaked the packages that should be installed...) It seems requires dnf in the repo when you build the iso on fedora. However it do seems that I can't find dnf in centos' repo. ``` [root at 87d2d5f6b21b ~]# lorax -p CentOS -v 7 -r 7 -s http://mirror.centos.org/altarch/7/os/aarch64/ -s http://mirror.centos.org/altarch/7/updates/aarch64/ myiso 2017-07-20 03:23:19,207: Added 'lorax-repo-0': http://mirror.centos.org/altarch/7/os/aarch64/ 2017-07-20 03:23:19,207: Fetching metadata... 2017-07-20 03:23:19,882: Added 'lorax-repo-1': http://mirror.centos.org/altarch/7/updates/aarch64/ 2017-07-20 03:23:19,882: Fetching metadata... 2017-07-20 03:23:24,655: checking for root privileges checking for root privileges 2017-07-20 03:23:24,655: checking the selinux mode checking the selinux mode 2017-07-20 03:23:24,656: checking dnf base object checking dnf base object 2017-07-20 03:23:24,659: setting up build architecture setting up build architecture 2017-07-20 03:23:24,660: setting up build parameters setting up build parameters 2017-07-20 03:23:24,662: Using templatedir /usr/share/lorax/templates.d/99-generic Using templatedir /usr/share/lorax/templates.d/99-generic 2017-07-20 03:23:24,662: installing runtime packages installing runtime packages 2017-07-20 03:23:25,045: got release: centos-release got release: centos-release 2017-07-20 03:23:25,089: running runtime-install.tmpl running runtime-install.tmpl 2017-07-20 03:23:25,104: installpkg dnf failed: no package matched installpkg dnf failed: no package matched 2017-07-20 03:23:25,105: template command error in runtime-install.tmpl: template command error in runtime-install.tmpl: 2017-07-20 03:23:25,105: installpkg dnf installpkg dnf 2017-07-20 03:23:25,106: Exception: Required installpkg failed. Exception: Required installpkg failed. Traceback (most recent call last): File "/usr/sbin/lorax", line 273, in main() File "/usr/sbin/lorax", line 133, in main remove_temp=True, verify=opts.verify) File "/usr/lib/python3.5/site-packages/pylorax/__init__.py", line 277, in run rb.install() File "/usr/lib/python3.5/site-packages/pylorax/treebuilder.py", line 119, in install self._runner.run("runtime-install.tmpl") File "/usr/lib/python3.5/site-packages/pylorax/ltmpl.py", line 220, in run self._run(commands) File "/usr/lib/python3.5/site-packages/pylorax/ltmpl.py", line 239, in _run f(*args) File "/usr/lib/python3.5/site-packages/pylorax/ltmpl.py", line 580, in installpkg raise Exception("Required installpkg failed.") Exception: Required installpkg failed. ``` Thanks a lot! BR, Madper ------------------ Original ------------------ From: "Artem Bityutskiy"; Date: Thu, Jul 20, 2017 00:32 AM To: "Discussion list about Kickstart"; Subject: Re: Howto create installation image. On Wed, 2017-07-19 at 22:47 +0800, Madper wrote: > Hey guys, > > I'm trying to port centos7 to our arm64 server. My goal is creating > an installation image which execs anaconda directly after boot. > Currently, I'm using `livemedia-creator --make-iso --no-virt --ks > centos.ks`[1] on an arm64 centos docker. The livemedia-creator is > cloned from lorax git tree.(rhel7-branch) Hi, I successfully used lorax. I used it in Fedora, but you can build CentOS images in Fedora if you point loarax to Centos repos. I used something like this: lorax -p CentOS -v 7 -r 7 -s URL1 -s URL2 results where * URL1 - the base CentOS7 repo * URL2 - the updates repo HTH, Artem. _______________________________________________ Kickstart-list mailing list Kickstart-list at redhat.com https://www.redhat.com/mailman/listinfo/kickstart-list -------------- next part -------------- An HTML attachment was scrubbed... URL: