• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. xutianhong
    • Profile
    • Following 1
    • Followers 0
    • Topics 1
    • Posts 17
    • Best 0
    • Controversial 0
    • Groups 0

    xutianhong

    @xutianhong

    0
    Reputation
    484
    Profile views
    17
    Posts
    0
    Followers
    1
    Following
    Joined Last Online
    Location Shanghai,China

    xutianhong Unfollow Follow

    Latest posts made by xutianhong

    • RE: about use refind(not fog env)

      @george1421 im very sorry to make you confused with word “cobbler”, yes, it is an opensource project

      if akin to FOG. later, i will try FOG to compare it.

      but now, i think my problem is how use dhcp + dnsmasq.proxy mode + ipxe install rhel67(old kernel without efi_stub) with uefi client make it general.

      or how gurb2 auto looking for grub.cfg @ ipxe environment.

      i was confused that, why grub can’t use anyother args like — grubx64.efi --net_bootp --net_default_server=xxxx --configfile=xxxxx/grub.cfg, or like ipxe support ${mac(ip):hexraw} to make grub.cfg be general. that’s will be perfect to support network install.

      how FOG do if someone need install rhel67 with general cfg @ dnsmasq.proxy mode & uefi client(for now all hp gen9 server use efi.)

      thank you.

      posted in Linux Problems
      xutianhongX
      xutianhong
    • RE: about use refind(not fog env)

      @george1421 http://${next-server}/cblr/svc/op/gpxe/system/${mac:hexraw} like blow
      http://192.168.136.201/cblr/svc/op/gpxe/system/000C2996FC90

      #!ipxe
      initrd --name initramfs http://192.168.136.201/cobbler/ks_mirror/rhel73/images/pxeboot/uefiinitrd.img
      kernel http://192.168.136.201/cobbler/ks_mirror/rhel73/images/pxeboot/uefivmlinuz initrd=initramfs  ksdevice=bootif lang=  text net.ifnames=0 biosdevname=0 kssendmac  ks=http://192.168.136.201/cblr/svc/op/ks/system/000C2996FC90
      boot
      

      it’s gen by cobbler.

      posted in Linux Problems
      xutianhongX
      xutianhong
    • RE: about use refind(not fog env)

      @george1421 in rhel73 @ ipxe, i setting like this.

      #!ipxe
      
      :retry_dhcp
      dhcp && echo DHCP Succeeded || goto retry_dhcp
      
      :retry_fetch
      imgfree
      
      imgfetch http://${next-server}/cblr/svc/op/gpxe/system/${mac:hexraw} && echo Get InstallScript Succeeded && goto start_install || goto fail_sleep
      
      :fail_sleep
      echo Fetch/Install failed, sleep 30s && sleep 30 && goto retry_dhcp
      
      :start_install
      echo Booting from ${mac:hexraw}
      chain ${mac:hexraw} || goto fail_sleep
      

      make bin-x86_64-efi/ipxe.efi EMBED=uefi.ipx

      posted in Linux Problems
      xutianhongX
      xutianhong
    • RE: about use refind(not fog env)

      @george1421 is i describe clearly what i need? sorry…

      posted in Linux Problems
      xutianhongX
      xutianhong
    • RE: about use refind(not fog env)

      hi @george1421 , see u again.
      in my env, i want to use cobbler install rhel67&rhel73 with different mac use diff ksfile.
      it’s will be like blow
      client get ip with dhcp server & get tftp info with dnsmasq server.
      client to tftp server get bootinfo & files.
      in legacy bios, it’s works all fine. but uefi.
      the first is rhel73.
      i solved it cuz rhel73 kernel have bug, change the kernel to centos7.1611 kernel 3.10.514.2.2.
      the second is rhel67.
      it’s not efi_stub.
      i try to use ipxe {kernel tftpserver/vmlinuz, initrd tftpserver/initrd.img, boot} it’s not work.
      then, i try ipxe{chain grubx64.efi} it’s give me grub shell, in grub shell { net_bootp, linux tftpserver/vmlinuz, initrd tftpserver/initrd.img, boot} it’s worked.
      or i use grub2-mkstandalone balabalbal burn grub.cfg to grubx64.efi, it’s worked too.
      but i can’t use these two ways cuz grub shell can’t like ipxe can use script & ${mac:hexraw}, and i can’t make standalone grub.efi with every one client.

      so i hear rEFInd like grub. i tried…

      is FOG can do this like cobbler?

      posted in Linux Problems
      xutianhongX
      xutianhong
    • about use refind(not fog env)
      Server
      • FOG Version: none
      • OS: none
      Client
      • Service Version:none
      • OS:none
      Description

      hi, @Tom-Elliott, after that discussion, i was tring to refind. and i can’t find any way to use refind loading network file. i read the refind doc, it’s support ipxe, but it’s looks like loading refind -> jump to ipxe.efi, not any different between dhcp->ipxe.
      and when i try to use refind.conf setting to load manual conf, it’s not support loading network file, like “loader tftp://192.168.136.201/images/rhel64-x86_64/vmlinuz”, but grub support network and tftp, is refind have some setting?

      thank you.

      posted in Linux Problems
      xutianhongX
      xutianhong
    • RE: Dnsmasq bios and uefi

      @Tom-Elliott google translate was good. 🙂 if have any problem, can i ask here again?

      posted in General
      xutianhongX
      xutianhong
    • RE: Dnsmasq bios and uefi

      @Tom-Elliott @george1421 thank you, im came up upon the post from a google search about dnsmasq&pxe boot question.
      this is not wok. screen show uefi setting menu. not grub> yet.

      pxe-service=BC_EFI,"BC_EFI",grub/grub-x86_64.efi --config-file=grub/efidefault,192.168.136.226
      

      this website advice used in my first post. but static network setting not useful.
      https://github.com/openSUSE/kiwi/wiki/Setup-PXE-boot-with-EFI-Using-GRUB2

      thank you @george1421 i tried ipxe, found it’s very powerful. i was working on it to try combine with cobbler.
      but it’s looks like redhat 7.3 have a kernel bug for ipxe uefi boot. http://forum.ipxe.org/showthread.php?tid=8243&pid=13314#pid13314
      finally solved.

      i come from China.:bow_tone2: u know chinese? 😉
      thank you for ur help. both.~ 谢谢

      posted in General
      xutianhongX
      xutianhong
    • RE: Dnsmasq bios and uefi

      @george1421 im not using FOG. only question about pxe booting. use this cuz cobbler default env. im not add/del extra file to it. if default can work. i dont want change any thing.😥

      posted in General
      xutianhongX
      xutianhong
    • RE: Dnsmasq bios and uefi

      @Tom-Elliott there no grub.cfg, only cobbler gen efidefault. ofcuz i copy efidefault to /grub.cfg & /boot/grub/grub.cfg, not work, same grub> msg.

      default=0
      timeout=0
      
      title centos6.0-x86_64
          root (nd)
          kernel /images/centos6.0-x86_64/vmlinuz  ksdevice=bootif lang=  kssendmac text  ks=http://192.168.136.226/cblr/svc/op/ks/profile/centos6.0-x86_64
          initrd /images/centos6.0-x86_64/initrd.img
      
      title centos7.2-x86_64
          root (nd)
          kernel /images/centos7.2-x86_64/vmlinuz  ksdevice=bootif lang=  kssendmac text  ks=http://192.168.136.226/cblr/svc/op/ks/profile/centos7.2-x86_64
          initrd /images/centos7.2-x86_64/initrd.img
      
      title rhel72-x86_64
          root (nd)
          kernel /images/rhel72-x86_64/vmlinuz  ksdevice=bootif lang=  kssendmac text  ks=http://192.168.136.226/cblr/svc/op/ks/profile/rhel72-x86_64
          initrd /images/rhel72-x86_64/initrd.img
      
      title rhel73-x86_64
          root (nd)
          kernel /images/rhel73-x86_64/vmlinuz  ksdevice=bootif lang=  kssendmac text  ks=http://192.168.136.226/cblr/svc/op/ks/profile/rhel73-x86_64
          initrd /images/rhel73-x86_64/initrd.img```
      posted in General
      xutianhongX
      xutianhong