Deploy Image results in Invalid MAC Address


  • Server
    FOG Version: 1.5.9
    OS: Ubuntu Server 20.04 (With GUI)

    Client
    Microsoft Surface 7 Pro (using a dock to connect to the network)

    Description
    I set up a new FOG server to quick deploy images. These machines will be seen once and never again. A client can successfully PXE boot to the server and I am able to capture the image without issues.

    When I attach a new computer (unregistered) and attempt to deploy the image I am presented with the following errors:

    * Checking Mounted File System.................................Failed
    #####################
    #   An error has been detected!
    #####################
    Init Version: 20200906
    Error during failure notification: Invalid MAC Address! (/bin/fog.download)
       Args passed:
    
    Kernel variables and settings:
    bzImage loglevel=4 initrd=init.xz root=/dev/ram0 rw ramdisk_size=275000 web=http://192.168.0.1/fog/ consoleblank=0 rootfstype=ext4 shutdown=1 nvme_core.default_ps_max_latency_us=0 mac= ftp=192.168.0.1 storage ...
    imgFormat=0 mcastrdv=192.168.0.1 capone=1 type=down shutdown=1
    

    (I just typed the error on the client instead of messing with a picture - let me know if you’d rather have a picture)


  • Well now, I’m quite the knucklehead. I created the .mntcheck file in the /images/dev directory but I never did for the /images directory.

    It works perfectly now.

    Thank you so much for your time with this.

  • Senior Developer

    @rivybeast said in Deploy Image results in Invalid MAC Address:

    dev/sdb on /images type ext4 (rw,relatime)

    Ok, you moved your images to a secondary disk. That’s all fine but you simply missed one file we use to check. Run this command to recreate it: touch /images/.mntcheck

    After that just do your deployments.


  • The image path could very well be the issue. I did have to tangle with permissions on the mount because I am using a secondary hard drive for the /images directory. I went full on and set chmod 777 on the directories. I changed the ownership as well.

    Here’s the output:
    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=8104388k,nr_inodes=2026097,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=1630148k,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)
    efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
    none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
    cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
    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/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
    cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
    cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
    cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
    cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
    cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
    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/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
    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=1866)
    mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
    tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
    hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
    debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
    sunrpc on /run/rpc_pipefs type rpc_pipefs (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)
    nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
    /dev/sdb on /images type ext4 (rw,relatime)
    /dev/sda2 on /boot type ext4 (rw,relatime)
    /var/lib/snapd/snaps/core18_1932.snap on /snap/core18/1932 type squashfs (ro,nodev,relatime,x-gdu.hide)
    /dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
    /var/lib/snapd/snaps/snapd_9721.snap on /snap/snapd/9721 type squashfs (ro,nodev,relatime,x-gdu.hide)
    /var/lib/snapd/snaps/core18_1880.snap on /snap/core18/1880 type squashfs (ro,nodev,relatime,x-gdu.hide)
    /var/lib/snapd/snaps/snapd_8542.snap on /snap/snapd/8542 type squashfs (ro,nodev,relatime,x-gdu.hide)
    /var/lib/snapd/snaps/lxd_16099.snap on /snap/lxd/16099 type squashfs (ro,nodev,relatime,x-gdu.hide)
    /var/lib/snapd/snaps/lxd_18150.snap on /snap/lxd/18150 type squashfs (ro,nodev,relatime,x-gdu.hide)
    tmpfs on /run/snapd/ns type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1630148k,mode=755)
    nsfs on /run/snapd/ns/lxd.mnt type nsfs (rw)
    tmpfs on /run/user/128 type tmpfs (rw,nosuid,nodev,relatime,size=1630144k,mode=700,uid=128,gid=132)
    gvfsd-fuse on /run/user/128/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=128,group_id=132)
    tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1630144k,mode=700,uid=1000,gid=1000)
    gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
    

    ls -al /images/

    drwxrwxrwx  5 fogproject fogproject  4096 Nov 17 16:04 .
    drwxr-xr-x 23 root       root        4096 Nov 17 12:30 ..
    drwxrwxrwx  2 root       root        4096 Nov 17 16:04 Surface_Pro_7_AGM_1709
    drwxrwxrwx  2 fogproject fogproject  4096 Nov 17 16:04 dev
    drwxrwxrwx  2 fogproject fogproject 16384 Nov 17 10:08 lost+found
    

    ls -al /images/dev/

    drwxrwxrwx 2 fogproject fogproject 4096 Nov 17 16:04 .
    drwxrwxrwx 5 fogproject fogproject 4096 Nov 17 16:04 ..
    -rwxrwxrwx 1 fogproject fogproject    0 Nov 17 13:32 .mntcheck
    
  • Senior Developer

    @rivybeast said in Deploy Image results in Invalid MAC Address:

    Checking Mounted File System.................................Failed
    

    At first when reading this I got tangled up with the “Invalid MAC” error. But digging through the code I think the above error is actually what we need to look at. Seems like your image directory wasn’t setup correctly when installing FOG. I kind of wonder you don’t have issue capturing an image. Please run the following commands and post full output here:

    mount
    ls -al /images/
    ls -al /images/dev/
    

273
Online

8.2k
Users

15.1k
Topics

141.9k
Posts