• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Beyondlimitation
    3. Posts
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 5
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by Beyondlimitation

    • RE: iSCSI diskless boot failed

      @george1421 Yeah, not native , but still able to read tech things written English.
      Anyway, i tried several times and my VM boot grub but not OS. But it seems almost works.

      I first check VM firmware to see if everything is UEFI with secure boot disabled.
      And i found ipxe VM firmware was BIOS which is not right.
      So i changed it to UEFI, remove #!ipxe and tried again.

      Not work. But i got new error.
      It said VM cannot sanboot to that iscsi, because server is not found.
      I forgot freenas VM powering on so i tried again.

      It still displayed error message but another new message.
      https://ipxe.org/err/3c2220

      According to note, ACPI table has a problem.
      I read mailing list below.
      https://lists.ipxe.org/pipermail/ipxe-devel/2017-April/005551.html

      I also read this --> https://ipxe.org/cmd/sanboot

      I assumed that ACPI table has a issue so i changed iPXE boot entry.

      set root-path iscsi:freenas.local:tcp:3260:0:iqn.2019-01.local.freenas:iscsi
      sanhook --no-describe --drive 0x81 ${root-path}
      sanboot
      

      Well it doesn’t work cuz i didn’t typed right.
      So changed it and tried again.

      Still error. But i didn’t see this --> https://ipxe.org/err/7f22208e

      At that time, i didn’t thought about how ipxe finds grub…
      So i read command document about sanboot again.
      And the note below the page said “On a UEFI platform, some older operating systems (e.g. RHEL6) will install the bootloader with a non-default filename. You can use the --filename option (or the san-filename setting) to specify the correct bootloader filename.”

      And i changed parameter.

      set root-path iscsi:freenas.local:tcp:3260:0:iqn.2019-01.local.freenas:iscsi-boot
      sanboot --no-describe --filename \EFI\ubuntu\grubx64.efi ${root-path}
      

      Booted again and it booted grub, but failed to boot os.
      I think os installation has some issue… But it successfully booted grub.

      Here are what i learned.
      When computer firmware is UEFI, use --filename argument to notify where the grub is.
      ACPI table issue can be occur on vmware esxi vm.

      posted in Linux Problems
      B
      Beyondlimitation
    • iSCSI diskless boot failed

      Hi, I’m just learning ipxe, iSCSI.
      Recently, i tried several times to boot iSCSI disk.
      I have a nice working fog server, and i can pxe-boot.

      With this server i tried this --> https://backreference.org/2013/12/23/diskless-iscsi-boot-with-pxe-howto/

      Before explain the detail, check this.

      autodraw 2020. 1. 8. 오후 9_49_47.png

      I’m running everything on VMware ESXi 6.7 U3.
      My Final goal is to boot iSCSI disk to boot Ubuntu server in ipxe VM.

      fogserver VM

      fogserver.png

      freenas VM is the iSCSI target.
      Here are the details.
      freenas1.png freenas2.png freenas3.png freenas4.png freenas5.png freenas6.png freenas7.png

      iSCSI disk, iscsi-boot detail

      I chrooted into the iscsi disk and here is the detail.
      All command are executed in chrooted environment.

      /etc/iscsi/initiatorname.iscsi
      
      ## DO NOT EDIT OR REMOVE THIS FILE!
      ## If you remove this file, the iSCSI daemon will not start.
      ## If you change the InitiatorName, existing access control lists
      ## may reject this initiator.  The InitiatorName must be unique
      ## for each iSCSI initiator.  Do NOT duplicate iSCSI InitiatorNames.
      InitiatorName=iqn.2019-01.local.freenas.client:client
      
      /etc/default/grub
      
      # If you change this file, run 'update-grub' afterwards to update
      # /boot/grub/grub.cfg.
      # For full documentation of the options in this file, see:
      #   info -f grub -n 'Simple configuration'
      
      GRUB_DEFAULT=0
      GRUB_HIDDEN_TIMEOUT=0
      GRUB_HIDDEN_TIMEOUT_QUIET=true
      GRUB_TIMEOUT=10
      GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
      GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
      GRUB_CMDLINE_LINUX="ISCSI_INITIATOR=iqn.2019-01.local.freenas.client:client ISCSI_TARGET_NAME=iqn.2019-01.local.freenas:iscsi-boot ISCSI_TARGET_IP=10.0.0.104 ISCSI_TARGET_PORT=3260 root=UUID=8aa17353-7496-4d6e-b300-ad72028906f0 ip=dhcp"
      
      # Uncomment to enable BadRAM filtering, modify to suit your needs
      # This works with Linux (no patch required) and with any kernel that obtains
      # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
      #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
      
      # Uncomment to disable graphical terminal (grub-pc only)
      #GRUB_TERMINAL=console
      
      # The resolution used on graphical terminal
      # note that you can use only modes which your graphic card supports via VBE
      # you can see them in real GRUB with the command `vbeinfo'
      #GRUB_GFXMODE=640x480
      
      # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
      #GRUB_DISABLE_LINUX_UUID=true
      
      # Uncomment to disable generation of recovery mode menu entries
      #GRUB_DISABLE_RECOVERY="true"
      
      # Uncomment to get a beep at grub start
      #GRUB_INIT_TUNE="480 440 1"
      

      result of blkid

      /dev/sda1: UUID="0AC5-AF0E" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="e980ec5f-a6c7-4933-a912-5922f81f8599"
      /dev/sda2: UUID="aba56f48-ca1e-4aa2-aff8-bb229a85505b" TYPE="ext4" PARTUUID="6a81f845-9f28-4d59-9c2f-630b8f65554b"
      /dev/sdb1: UUID="928B-C33F" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="642cf4ed-10fe-44fd-956f-1736ed71c9d3"
      /dev/sdb2: UUID="8aa17353-7496-4d6e-b300-ad72028906f0" TYPE="ext4" PARTUUID="15c9c4d2-c08b-47ed-be10-642e9f57dd18"
      /dev/sdb3: UUID="cbc1696c-a1cf-4548-b3c6-a89005c9f296" TYPE="swap" PARTUUID="a3a01143-4556-4dcd-9959-7a3036418681"
      /dev/loop0: TYPE="squashfs"
      /dev/loop1: TYPE="squashfs"
      /dev/loop2: TYPE="squashfs"
      /dev/loop3: TYPE="squashfs"
      /dev/loop4: TYPE="squashfs"
      /dev/loop5: TYPE="squashfs"
      /dev/loop6: TYPE="squashfs"
      /dev/loop7: TYPE="squashfs"
      /dev/loop8: TYPE="squashfs"
      /dev/loop9: TYPE="squashfs"
      /dev/loop10: TYPE="squashfs"
      /dev/loop11: TYPE="squashfs"
      /dev/loop12: TYPE="squashfs"
      /dev/loop13: TYPE="squashfs"
      /dev/loop14: TYPE="squashfs"
      /dev/loop15: TYPE="squashfs"
      /dev/loop16: TYPE="squashfs"
      /dev/loop17: TYPE="squashfs"
      /dev/loop18: TYPE="squashfs"
      /dev/loop19: TYPE="squashfs"
      

      And the result is this.

      Boot from SAN device 0x80 failed: Operation canceled (http://ipxe.org/0b8080a0)
      Unregistered SAN device 0x80
      Could not boot: Operation canceled (http://ipxe.org/0b8080a0)
      Could not boot: Operation canceled (http://ipxe.org/0b8080a0)

      I can connect to iscsi target and mount it.
      PXE server works great no issue.

      But don’t know why it does not work, and i don’t know how to debug this…
      Now what should i do now?

      posted in Linux Problems
      B
      Beyondlimitation
    • RE: PXE Client tries to find wrong file

      @Junkhacker
      I just found what’s wrong.
      I mis-typed file name. : O
      Type the right file name and re-try. It worked…

      Your answer is really great!

      posted in FOG Problems
      B
      Beyondlimitation
    • RE: PXE Client tries to find wrong file

      @Junkhacker
      Thank you. It worked.
      But now i have a new question.
      When i switched to UEFI, it didn’t worked.

      What should i do? And i want to learn more about pxe-boot. Can you advise me? Tutorial, Official document or something that helps.

      posted in FOG Problems
      B
      Beyondlimitation
    • PXE Client tries to find wrong file

      Hi, thanks for reading.
      I’m noob and have 0 exp about PXE world.

      Today i installed FOG server and run it, and tried to pxe-boot client vm.
      However, something not work.
      My ESXi guest vm found where the pxe server is and tries to boot, but it said “file not found”.
      I checked everything, but nothing helped me…

      So i captured packet and see what’s going on.
      When client request ip, my client vm got ip and file name called “undionly.kpxe.0”.

      This is weird, because i didn’t set my /etc/dnsmasq.d/ltsp.conf to find “undionly.kpxe.0”. It should find “undionly.0”.

      Why fog server give the file name “undionly.kpxe.0”, not “undionly.0”?
      This is my /etc/dnsmasq.d/ltsp.conf.

      
      # Don't function as a DNS server:
      port=0
      
      # Log lots of extra information about DHCP transactions.
      log-dhcp
      
      # Set the root directory for files available via FTP.
      tftp-root=/tftpboot
      
      # The boot filename, Server name, Server Ip Address
      dhcp-boot=undionly.0,,10.0.0.182
      
      # Disable re-use of the DHCP servername and filename fields as extra
      # option space. That's to avoid confusing some old or broken DHCP clients.
      dhcp-no-override
      
      # inspect the vendor class string and match the text to set the tag
      dhcp-vendorclass=BIOS,PXEClient:Arch:00000
      dhcp-vendorclass=UEFI32,PXEClient:Arch:00006
      dhcp-vendorclass=UEFI,PXEClient:Arch:00007
      dhcp-vendorclass=UEFI64,PXEClient:Arch:00009
      
      # Set the boot file name based on the matching tag from the vendor class (above)
      dhcp-boot=net:UEFI32,i386-efi/ipxe.efi,,10.0.0.182
      dhcp-boot=net:UEFI,ipxe.efi,,10.0.0.182
      dhcp-boot=net:UEFI64,ipxe.efi,,10.0.0.182
      
      # PXE menu.  The first part is the text displayed to the user.  The second is the timeout, in seconds.
      pxe-prompt="Booting FOG Client", 1
      
      # The known types are x86PC, PC98, IA64_EFI, Alpha, Arc_x86,
      # Intel_Lean_Client, IA32_EFI, BC_EFI, Xscale_EFI and X86-64_EFI
      # This option is first and will be the default if there is no input from the user.
      pxe-service=X86PC, "Boot to FOG", undionly.kpxe, 10.0.0.182
      pxe-service=X86-64_EFI, "Boot to FOG UEFI", ipxe.efi, 10.0.0.182
      pxe-service=BC_EFI, "Boot to FOG UEFI PXE-BC", ipxe.efi, 10.0.0.182
      
      dhcp-range=10.0.0.182,proxy,255.255.255.0
      

      I exactly followed this --> https://wiki.fogproject.org/wiki/index.php?title=ProxyDHCP_with_dnsmasq
      TFTP working, DNS and DHCP server working…

      By the way, if i copy “undionly.kpxe”, paste it in directory “/tftpboot” and rename it to “undionly.kpxe.0”
      pxe boot successfully works.

      How this weird fog server behavior happens? No clue…

      posted in FOG Problems
      B
      Beyondlimitation
    • 1 / 1