• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. RogerBrownTDL
    3. Posts
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 51
    • Best 2
    • Controversial 0
    • Groups 0

    Posts made by RogerBrownTDL

    • RE: Ubuntu Help - Boot Problem #N00b

      @Sebastian-Roth said in Ubuntu Help - Boot Problem #N00b:

      ls -al /images/dev

      root@tie-fogdeploy-01:~# ls -al /images/dev
      total 16
      drwxrwxrwx 4 fogproject root 4096 Mar  3 15:43 .
      drwxrwxrwx 7 fogproject root 4096 Mar  1 19:31 ..
      drwxrwxrwx 2 root       root 4096 Mar  3 15:45 c8d9d2d4c8ac
      -rwxrwxrwx 1 fogproject root    0 Sep  7 20:42 .mntcheck
      drwxrwxrwx 2 fogproject root 4096 Sep  7 20:42 postinitscripts
      root@tie-fogdeploy-01:~#
      
      posted in Linux Problems
      R
      RogerBrownTDL
    • RE: Ubuntu Help - Boot Problem #N00b

      @Sebastian-Roth said in Ubuntu Help - Boot Problem #N00b:

      root@tie-fogdeploy-01:~# df -h
      Filesystem                         Size  Used Avail Use% Mounted on
      udev                               5.7G     0  5.7G   0% /dev
      tmpfs                              1.2G  118M  1.1G  11% /run
      /dev/mapper/ubuntu--vg-ubuntu--lv   98G   98G     0 100% /
      tmpfs                              5.8G     0  5.8G   0% /dev/shm
      tmpfs                              5.0M     0  5.0M   0% /run/lock
      tmpfs                              5.8G     0  5.8G   0% /sys/fs/cgroup
      /dev/loop0                          92M   92M     0 100% /snap/lxd/23991
      /dev/loop1                          64M   64M     0 100% /snap/core20/1822
      /dev/loop2                          92M   92M     0 100% /snap/lxd/24061
      /dev/loop3                          50M   50M     0 100% /snap/snapd/17950
      /dev/loop5                          50M   50M     0 100% /snap/snapd/18357
      /dev/loop4                          64M   64M     0 100% /snap/core20/1778
      /dev/sda2                          2.0G  207M  1.6G  12% /boot
      
      root@tie-fogdeploy-01:~# du -h --max-depth=1 /
      21M     /tftpboot
      207M    /boot
      118M    /run
      72K     /home
      4.0K    /mnt
      0       /dev
      1.4G    /snap
      1.7G    /var
      48K     /root
      1.5G    /opt
      4.0K    /tftpboot.prev
      du: cannot access '/proc/42729/task/42729/fd/3': No such file or directory
      du: cannot access '/proc/42729/task/42729/fdinfo/3': No such file or directory
      du: cannot access '/proc/42729/fd/4': No such file or directory
      du: cannot access '/proc/42729/fdinfo/4': No such file or directory
      0       /proc
      0       /sys
      2.7G    /usr
      89G     /images
      7.0M    /etc
      4.0K    /media
      12K     /srv
      16K     /lost+found
      28K     /tmp
      100G    /
      
      root@tie-fogdeploy-01:~# mount
      sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
      proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
      udev on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=5941220k,nr_inodes=1485305,mode=755)
      devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
      tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1197472k,mode=755)
      /dev/mapper/ubuntu--vg-ubuntu--lv on / type ext4 (rw,relatime)
      securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
      tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
      tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
      tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
      cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
      cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
      pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
      none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
      cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
      cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
      cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
      cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
      cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
      cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
      cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
      cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
      cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
      cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
      cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
      systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=16183)
      hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
      mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
      sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
      debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
      tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
      nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
      fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
      configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
      binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
      /var/lib/snapd/snaps/lxd_23991.snap on /snap/lxd/23991 type squashfs (ro,nodev,relatime,x-gdu.hide)
      /var/lib/snapd/snaps/core20_1822.snap on /snap/core20/1822 type squashfs (ro,nodev,relatime,x-gdu.hide)
      /var/lib/snapd/snaps/lxd_24061.snap on /snap/lxd/24061 type squashfs (ro,nodev,relatime,x-gdu.hide)
      /var/lib/snapd/snaps/snapd_17950.snap on /snap/snapd/17950 type squashfs (ro,nodev,relatime,x-gdu.hide)
      /var/lib/snapd/snaps/snapd_18357.snap on /snap/snapd/18357 type squashfs (ro,nodev,relatime,x-gdu.hide)
      /var/lib/snapd/snaps/core20_1778.snap on /snap/core20/1778 type squashfs (ro,nodev,relatime,x-gdu.hide)
      /dev/sda2 on /boot type ext4 (rw,relatime)
      tmpfs on /run/snapd/ns type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1197472k,mode=755)
      tracefs on /sys/kernel/debug/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
      
      root@tie-fogdeploy-01:~# lsblk
      NAME                      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
      loop0                       7:0    0 91.8M  1 loop /snap/lxd/23991
      loop1                       7:1    0 63.3M  1 loop /snap/core20/1822
      loop2                       7:2    0 91.9M  1 loop /snap/lxd/24061
      loop3                       7:3    0 49.8M  1 loop /snap/snapd/17950
      loop4                       7:4    0 63.3M  1 loop /snap/core20/1778
      loop5                       7:5    0 49.9M  1 loop /snap/snapd/18357
      sda                         8:0    0  500G  0 disk
      ├─sda1                      8:1    0    1M  0 part
      ├─sda2                      8:2    0    2G  0 part /boot
      └─sda3                      8:3    0  498G  0 part
        └─ubuntu--vg-ubuntu--lv 253:0    0  100G  0 lvm  /
      sr0                        11:0    1 1024M  0 rom
      root@tie-fogdeploy-01:~#
      
      posted in Linux Problems
      R
      RogerBrownTDL
    • Ubuntu Help - Boot Problem #N00b

      Hi All,

      I’m a complete noob when it comes to Linux and it was working fine for a while but now wont “boot” fully. Errors show “OS Error ERRNO 28 No space left on device”

      It’s a VM running on Hyper-V. VHDX is a 500gb max disk with current file size of 97gb?

      FDISK shows:

      root@tie-fogdeploy-01:~# fdisk -l

      Disk /dev/sda: 500 GiB, 536870912000 bytes, 1048576000 sectors
      Disk model: Virtual Disk
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 4096 bytes
      I/O size (minimum/optimal): 4096 bytes / 4096 bytes
      Disklabel type: gpt
      Disk identifier: 62FE1AF7-BC7B-4B14-90C3-A9037D6F882C
      
      Device       Start        End    Sectors  Size Type
      /dev/sda1     2048       4095       2048    1M BIOS boot
      /dev/sda2     4096    4198399    4194304    2G Linux filesystem
      /dev/sda3  4198400 1048573951 1044375552  498G Linux filesystem
      
      
      Disk /dev/mapper/ubuntu--vg-ubuntu--lv: 100 GiB, 107374182400 bytes, 209715200 sectors
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 4096 bytes
      I/O size (minimum/optimal): 4096 bytes / 4096 bytes
      root@tie-fogdeploy-01:~# Disk /dev/sda: 500 GiB, 536870912000 bytes, 1048576000 sectors
      Device       Start        End    Sectors  Size Type
      /dev/sda1     2048       4095       2048    1M BIOS boot
      /dev/sda2     4096    4198399    4194304    2G Linux filesystem
      /dev/sda3  4198400 1048573951 1044375552  498G Linux filesystem
      
      
      Disk /dev/mapper/ubuntu--vg-ubuntu--lv: 100 GiB, 107374182400 bytes, 209715200 sectors
      Units: sectors of 1 * 512 = 512 bytes
      Sector size (logical/physical): 512 bytes / 4096 bytes
      I/O size (minimum/optimal): 4096 bytes / 4096 bytes
      

      What do I do to get this back up? I’m guessing it’s something simple as expanding the OS to see the 500gb but I dont know how to do this and dont want to break this server

      Cheers in advance
      Roger

      posted in Linux Problems
      R
      RogerBrownTDL
    • RE: UEFI PXE Boot - Pain

      @george1421 i can just create a new image for a 256gb drive though right? I guess I can then apply that to either a 256gb or 500gb drive and it wont matter?

      posted in FOG Problems
      R
      RogerBrownTDL
    • RE: UEFI PXE Boot - Pain

      @george1421 I LOVE YOU!!! It’s working
      @brakcounty thanks for your help also

      I have a new problem where it wont apply the image because it says the disk is too big but I’m sure it’s because I captured the image from a 500gb SSD and i’m trying to apply it to a 256gb SSD but I’m happy as hell because the actual PXE is working!!!

      posted in FOG Problems
      R
      RogerBrownTDL
    • RE: UEFI PXE Boot - Pain

      @brakcounty Chill man, it’s all good… Not everyones setup is gonna be the same. Unfortunately i’ve inherited this network from someone who was far more technical than me but why he set the Watchguard as the DHCP server rather than… oh IDK… an actual DHCP server is beyond me. Meh, it is what it is (I hate that saying but it’s true I guess)

      Will try PXE tomorrow and see what happens… It is strange though that dnsmasq was already there and configured but when we first set this up it just fell on its face and wouldn’t PXE any machine hence the need to add the options 66 and 67 to at least get it to PXE so I could put an image out. Fucking manufacturers removing the option for legacy boot is fine and I guess the nature of the IT beast is that nothing stands still for long but it is a proper pain in the arse unpicking stuff to make it work based on them.

      posted in FOG Problems
      R
      RogerBrownTDL
    • RE: UEFI PXE Boot - Pain

      @george1421 bingo it’s started fine now

      posted in FOG Problems
      R
      RogerBrownTDL
    • RE: UEFI PXE Boot - Pain

      @george1421 My ltsp file:

      # Don't function as a DNS server:
      port=0
      
      # Log lots of extra information about DHCP transactions.
      log-dhcp
      
      # Enable TFTP 
      enable-tftp <<<<<<I added this bit as per @brakcounty suggested from his config
      
      # Set the root directory for files available via FTP.
      tftp-root=/tftpboot
      
      # The boot filename, Server name, Server Ip Address
      dhcp-boot=undionly.kpxe,,192.168.15.251
      
      # 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,,192.168.15.251
      dhcp-boot=net:UEFI,ipxe.efi,,192.168.15.251
      dhcp-boot=net:UEFI64,ipxe.efi,,192.168.15.251
      
      # 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
      pxe-service=X86-64_EFI, "Boot to FOG UEFI", ipxe.efi
      pxe-service=BC_EFI, "Boot to FOG UEFI PXE-BC", ipxe.efi
      
      dhcp-range=192.168.15.251,proxy
      
      posted in FOG Problems
      R
      RogerBrownTDL
    • RE: UEFI PXE Boot - Pain

      @brakcounty Okay makes sense… dnsmasq was already installed and configured… Weird that it wouldnt boot before (hence we had to go the legacy option I believe) however now when I try and start dnsmasq it tells me to piss off because 69 is already in use?

      "[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server…
      [624]: dnsmasq: syntax check OK.
      [678]: dnsmasq: failed to create listening socket for port 69: Address already >
      [678]: failed to create listening socket for port 69: Address already in use
      [678]: FAILED to start up
      [1]: dnsmasq.service: Control process exited, code=exited, status=2/INVALIDARGU>
      [1]: dnsmasq.service: Failed with result ‘exit-code’.
      [1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.

      posted in FOG Problems
      R
      RogerBrownTDL
    • RE: UEFI PXE Boot - Pain

      @brakcounty You mention you had to disable tftpd.service and yet your line in that code says “enable-tftp” Are they different things? (Yes I’m a noob to all this but up until recently FOG was a mint replacement to the shitty MDT box we had - Just damn manufacturers now stopping legacy option in bios means i’m forced to change this to UEFI)

      posted in FOG Problems
      R
      RogerBrownTDL
    • RE: UEFI PXE Boot - Pain

      @brakcounty Thats my question really, do I need to leave a setting in (66 67 or 150) to tell the Watchguard to send the PXE request to FOG? I presume I need to put a setting in somewhere or the client wont know where to go for it’s PXE boot

      posted in FOG Problems
      R
      RogerBrownTDL
    • RE: UEFI PXE Boot - Pain

      @george1421 So in effect, I just leave the Watchguard as a DHCP server, set option 66 and 150 to point to my FOG box, remove option 67 and then install DNSMasq? Or do I remove ALL options from my Watchguard and install DNSMasq?

      Forgive my lack of knowledge on the subject lol. How does the PXE request then get to the FOG server? Does the client, send a DHCP request to the Watchguard and then a broadcast for PXE or do I need to leave something in the Watchguard to tell the client to go to FOG?

      posted in FOG Problems
      R
      RogerBrownTDL
    • RE: UEFI PXE Boot - Pain

      @george1421 @brakcounty

      So the DHCP server runs off our Watchguard and is a separate network (we have one for our production lan and one for our build lab)

      I can change the Watchguard interface from a DHCP server to a relay server but that would mean it wouldnt hand out DHCP leases right?

      posted in FOG Problems
      R
      RogerBrownTDL
    • RE: UEFI PXE Boot - Pain

      @brakcounty How is your relay setup? Is it a different server or running from fortigate itself?

      posted in FOG Problems
      R
      RogerBrownTDL
    • RE: UEFI PXE Boot - Pain

      @brakcounty

      Currently configured as:
      Code Name Type Kind Value
      150 TFTP Server IP IP Address(es) Predefined 192.168.15.251
      66 TFTP Server Name Text Predefined 192.168.15.251
      67 TFTP Boot Filename Text Predefined undionly.kpxe

      posted in FOG Problems
      R
      RogerBrownTDL
    • RE: AD password issue

      @lenain said in AD password issue:

      '

      Is the “&#039:”. giving a problem? MYSQL is typing it that way as a HTML code. I have no coding knowledge nor do I know MYSQL very well but this may be of some use:
      Source:
      https://stackoverflow.com/questions/9596652/how-to-escape-apostrophe-in-mysql
      Quote:
      Possibly off-topic, but maybe you came here looking for a way to sanitise text input from an HTML form, so that when a user inputs the apostrophe character, it doesn’t throw an error when you try to write the text to an SQL-based table in a DB. There are a couple of ways to do this, and you might want to read about SQL injection too. Here’s an example of using prepared statements and bound parameters in PHP:

      $input_str = “Here’s a string with some apostrophes (')”;
      // sanitise it before writing to the DB (assumes PDO)
      $sql = “INSERT INTO table (note) VALUES (:note)”;
      try {
      $stmt = $dbh->prepare($sql);
      $stmt->bindParam(‘:note’, $input_str, PDO::PARAM_STR);
      $stmt->execute();
      } catch (PDOException $e) {
      return $dbh->errorInfo();
      }
      return “success”;
      In the special case where you may want to store your apostrophes using their HTML entity references, PHP has the htmlspecialchars() function which will convert them to “&#039 ;”. As the comments indicate, this should not be used as a substitute for proper sanitisation, as per the example given.

      posted in FOG Problems
      R
      RogerBrownTDL
    • UEFI PXE Boot - Pain

      You guys will have already had this as a topic alot I imagine however mine has a little twist. I have a DHCP server running from a Watchguard firewall rather than a Windows server. PXE works fine for legacy boot but we are finding more and more that the option to change laptops to legacy boot are missing and only support UEFI. Is there a way to change/add UEFI option to allow us to continue using FOG?

      posted in FOG Problems
      R
      RogerBrownTDL
    • RE: PXE Issue Ubuntu 20.04

      @george1421 You sir are a fucking LEGEND!!! I’m all set for now. Time to get playing with images and deployments. Thank you so so so sooooo much 😄

      posted in FOG Problems
      R
      RogerBrownTDL
    • RE: PXE Issue Ubuntu 20.04

      @george1421 at the present setup we are quite small so shouldnt need over 100gb, however for future proofing if I extend the VHD on hyper-v to say 500gb how do I extend the partition to claim that extra space? (from what you’re saying it’s the root partition that both fog and ubuntu are running off - this makes sense as I added no second disk for images) Once i’ve done that will the images directory/fog storage node auto detect that and adjust accordingly or will I have to do extra commands on Ubuntu for it to see it?

      posted in FOG Problems
      R
      RogerBrownTDL
    • 1 / 1