On Tue, Mar 01, 2016 at 02:07:15PM +0100, Lukas Zapletal wrote: > Hello, > > I build live images of RHEL/CentOS 7 with traditional tools [1] and I am > wondering if I could use Lorax utilities to do the same. I understand > that RHEL7 has dated Anaconda and Yum, but maybe I do things wrong: > > [lzap@lzapx foreman-discovery-image]$ sudo livemedia-creator --make-iso --iso /mnt/data/isos/CentOS-7-x86_64-Everything-1511.iso --ks fdi-image.ks > 2016-03-01 13:42:20,604: disk_size = 1026MiB > 2016-03-01 13:42:20,605: disk_img = /var/tmp/disk7vld5vjj.img > 2016-03-01 13:42:20,605: install_log = /home/lzap/work/foreman-discovery-image/virt-install.log > 2016-03-01 13:42:20,638: Running virt-install. > 2016-03-01 13:42:21,532: Processing logs from ('127.0.0.1', 53448) > ... > 2016-03-01 13:42:51,827: Installation error detected. See logfile. > 2016-03-01 13:42:51,828: Shutting down LiveOS-0b814a3b-331d-4c21-9560-dd8f291557be > Domain LiveOS-0b814a3b-331d-4c21-9560-dd8f291557be destroyed > > Domain LiveOS-0b814a3b-331d-4c21-9560-dd8f291557be has been undefined > > 2016-03-01 13:42:52,093: Shutting down log processing > 2016-03-01 13:42:52,093: unmounting the iso > 2016-03-01 13:42:52,125: Install failed: virt_install failed on line: 12:42:46,593 CRIT anaconda: Traceback (most recent call last):#012#012 File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/simpleline/base.py", line 348, in _mainloop#012 prompt = last_screen.prompt(self._screens[-1][1])#012#012 File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/hubs/summary.py", line 85, in prompt#012 raise CmdlineError(errtxt)#012#012CmdlineError: The following mandatory spokes are not completed:#012Installation Destination > 2016-03-01 13:42:52,126: Removing bad disk image > 2016-03-01 13:42:52,126: ERROR: Image creation failed: virt_install failed on line: 12:42:46,593 CRIT anaconda: Traceback (most recent call last):#012#012 File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/simpleline/base.py", line 348, in _mainloop#012 prompt = last_screen.prompt(self._screens[-1][1])#012#012 File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/hubs/summary.py", line 85, in prompt#012 raise CmdlineError(errtxt)#012#012CmdlineError: The following mandatory spokes are not completed:#012Installation Destination That's anaconda's way of telling you that the disk setup didn't work. You should probably read this: https://rhinstaller.github.io/lorax/livemedia-creator.html#kickstarts which covers converting live spin kickstarts and talks about things that are required. In general your kickstart should work unattended when running it with Anaconda in a VM with the boot.iso. You should also look at the example kickstarts in /usr/share/doc/lorax/ > > [lzap@lzapx foreman-discovery-image]$ cat fdi-image.ks | paste > http://sprunge.us/dQWA Looks like you are missing: clearpart --all --initlabel It starts out with a blank disk, without the clearpart it will not use the blank disk to prevent accidental data loss on disks with unknown partitioning. You should also add the 'shutdown' command to the kickstart to make sure it shuts down the VM when it is finished. Good luck! -- Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT) _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list