Oh, alright my specific issue is just about creating the actual pxe image.. not what happens after -----Original Message----- From: CentOS <centos-bounces@xxxxxxxxxx> On Behalf Of R C Sent: Thursday, December 26, 2019 12:18 PM To: centos@xxxxxxxxxx Subject: Re: livemedia-creator --make-pxe-live CentOS 7 I have "issues" with later versions of Centos/RHEL 7 also. PXE boot seems to work, but after the new kernel kexec's, it seems to drop the NICS and further in the process for some reason, the nics never come up, which leads to all kindsof issues of course (trying to boot a cluster that way). I also have the impression that it is a dracut issue, however, I have not pinpointed it yet. Ron On 12/26/19 9:57 AM, Drew Weaver wrote: > Hello, > > I am trying to build a PXE boot image for CentOS 7. > > livemedia-creator --make-pxe-live --ks=ks --no-virt > > It runs the entire process and then it says: > > losetup: /dev/: detach failed: Inappropriate ioctl for device > 2019-12-26 11:49:47,293: Disk Image install successful > 2019-12-26 11:49:47,293: working dir is /var/tmp/tmpKwqC77 > mount: /dev/loop0 is write-protected, mounting read-only > mount: unknown filesystem type '(null)' > 2019-12-26 11:49:52,301: Command '['mount', '-o', 'loop', '/var/tmp/diskJVpsJd.img', '/var/tmp/lorax.imgutils.OtV8Yh']' returned non-zero exit status 32 > > I then tried it on CentOS 8 and had the same problem until I installed the dracut-live package but that package doesn't exist on CentOS 7. > > I will point out that it seems to work fine with make-iso, just not make-pxe-live. So there is probably a package it needs that I don't know about. Has anyone gotten this to work at all? > > Since it is a disk/image issue this is the part of the ks relevant to disks: > > # Disk partitioning information > reqpart > part / --fstype="ext4" --size=4000 > part swap --size=1000 > zerombr > clearpart --all > bootloader --location=mbr > > Below is my packages part of my kickstart: > > %packages > # Packages needed by anaconda, but not directly required. > # Includes all of the grub2 and shim packages needed, except > # for the grub2-efi-*-cdboot package > @anaconda-tools --optional > @core > anaconda > isomd5sum > kernel > memtest86+ > syslinux > -dracut-config-rescue > dell-system-update > # This package is needed to boot the iso on UEFI > grub2-efi-*-cdboot > grub2-efi-ia32 > %end > > Thanks, > -Drew > > _______________________________________________ > CentOS mailing list > CentOS@xxxxxxxxxx > https://lists.centos.org/mailman/listinfo/centos _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx https://lists.centos.org/mailman/listinfo/centos _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx https://lists.centos.org/mailman/listinfo/centos