• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Thiago
    • Profile
    • Following 0
    • Followers 0
    • Topics 14
    • Posts 100
    • Best 21
    • Controversial 0
    • Groups 0

    Thiago

    @Thiago

    33
    Reputation
    1.6k
    Profile views
    100
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Thiago Unfollow Follow

    Best posts made by Thiago

    • RE: FOG 1.3 RC8 - Fails to Apply 'swap' UUID on Image Deploy

      @dholtz-docbox
      Looking at my old scripts ( i am not using at moment) i found one that changes linux hostname and swap uuid:

      /images/postdownloadscripts/fog.hosts
      
      
      #the file contents
      -----------------------
      #/bin/sh
      . /usr/share/fog/lib/funcs.sh;
      
      partition=`lsblk -o KNAME,FSTYPE,LABEL /dev/sda? | grep -v -E "swap|KNAME" | awk '{print $1}'`
      mountpoint="/test"
      linuxhostname="$mountpoint/etc/hostname"
      
      comandomount="mount"
      swappart=`blkid | grep swap | awk -F"\"" '{print $2}'`
      
      dots "Creating mount point" 
      mkdir -p $mountpoint 2>/dev/null && echo "OK" || echo "Error"
      
      
      for i in $partition
      do
         tipopart=`lsblk -o FSTYPE /dev/$i | grep -v FSTYPE`
         if [ $tipopart = "ext4" ]
         then
             comandomount="mount -t $tipopart"
         fi
         dots "Mounting Partition /dev/$i"
         $comandomount /dev/$i $mountpoint && status="OK" || status="Error"
         
         if [ $status = "OK" ]
         then
             echo "OK"
             if [ -e $linuxhostname ]; then
                 dots "Changing hostname on Linux"
                 echo $hostname > $linuxhostname && echo "OK" || echo "Error"
             fi
            dots "Changing swap UUID inside fstab file"
            fstabpart=`cat $mountpoint/etc/fstab | grep swap | grep UUID | cut -d"=" -f2| awk '{print $1}'`
            sed -i "s/$fstabpart/$swappart/g" $mountpoint/etc/fstab && echo "OK" || echo "Error"
            umount $mountpoint
         else
             echo "Error mounting partition $partition"
         fi
      done
      

      don’t forget to put directive calling this script inside /images/postdownloadscripts/fog.postdownload

      It was used many times and works, but i don’t know if this is the final version put at production.
      some ideas.

      posted in General
      ThiagoT
      Thiago
    • RE: FOGCrypt is not recognized as an internal or external command, operable program or batch file

      @DEMONTECH
      You need to run the Fogcrypt command passing all the path where fogcrypt file is, or add the location to path variable.
      eg. “C:\Test\FogCrypt.exe” …

      an advice:
      when you hear: “legacy client”, run in the opposite direction as fast as possible … save your life … 🙂

      posted in Windows Problems
      ThiagoT
      Thiago
    • RE: Deploy wim images with fog

      @lebrun78
      My fog server is used to boot winpe and then launch setup with unnatended xml file to automatically install windows…
      i think that you can boot winpe environmnent from your fog and then deploy wim image with dism command automatically too.

      posted in General
      ThiagoT
      Thiago
    • RE: How to determine image type

      @Tom-Elliott
      My image was created with trunk version and what you said about d1 files work for me. Thanks a lot to all!

      posted in FOG Problems
      ThiagoT
      Thiago
    • RE: SnapinPack Error: Version required to extract this entry not supported

      @Quazz
      Now it works with 7zip too.
      Definitely something went wrong at last time.

      posted in FOG Problems
      ThiagoT
      Thiago
    • RE: CentOS 6 GUI login loop.

      @ManofValor
      Try logging into text mode with root account. when this happens to me, I can only log in with the root account and locally, because root login with ssh is disabled in our environment.

      posted in Linux Problems
      ThiagoT
      Thiago
    • RE: CMD or Batch snapins are not working! I have no more idea.

      I always run my .bat files with fog and all works.
      I’ve installed mathematica, matlab, ampl, quartus, salt agent and other config things.
      Try /C argument for cmd.exe

      Snapin Run With C:\Windows\System32\cmd.exe
      Snapin Run With Argument /C

      posted in General
      ThiagoT
      Thiago
    • RE: Select multiple partition to deploy/capture

      @Sebastian-Roth @ch3i
      tested with my dual boot system (Vista/Debian8) and worked!!.

      posted in Feature Request
      ThiagoT
      Thiago
    • RE: Multiple problems with FOG after Upgrade.

      I don’t know if your problem is like mine.

      When i did a upload of my 8.1, i got this message too (“file systems needs to be check” ).

      I solved the case, when i shutdown the system completely without using the Win8.1 hybrid mode, then turning on computer into fog boot process.
      see: http://windows.microsoft.com/en-us/windows-8/how-shut-down-turn-off-pc

      posted in FOG Problems
      ThiagoT
      Thiago
    • RE: Integrating PartedMagic in Fog 1.2.0

      Try this:

      :PMagic2015
      kernel http://${fog-ip}/${fog-webroot}/your-path-to-parted-magic/bzImage
      initrd http://${fog-ip}/${fog-webroot}/your-path-to-parted-magic/initrd.img
      imgargs bzImage edd=off noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=791 sleep=0 loglevel=0 keymap=us
      boot || goto MENU

      posted in General
      ThiagoT
      Thiago

    Latest posts made by Thiago

    • RE: Linux client could not authenticate

      @Tom-Elliott oh sorry…my mistake (as always)
      “doing it the right way, wil work”
      my sources.list was wrong.

      posted in Bug Reports
      ThiagoT
      Thiago
    • RE: Linux client could not authenticate

      I have the same error, but in ubuntu 16.04 client:

      ------------------------------------------------------------------------------
      --------------------------------Authentication--------------------------------
      ------------------------------------------------------------------------------
       02/06/2017 15:47 Client-Info Version: 0.11.12
       02/06/2017 15:47 Client-Info OS:      Linux
       02/06/2017 15:47 Middleware::Authentication Waiting for authentication timeout to pass
       02/06/2017 15:47 Middleware::Communication Download: http://192.168.1.12/fog/management/other/ssl/srvpublic.crt
       02/06/2017 15:47 Middleware::Authentication ERROR: Could not authenticate
       02/06/2017 15:47 Middleware::Authentication ERROR: Value cannot be null.
      Parameter name: authority
      

      I tried reinstall all mono packages, reinstall the client, reset encryption data, delete/create host, registering host with ipxe boot and nothing change the error.

      posted in Bug Reports
      ThiagoT
      Thiago
    • RE: Directories under /var/www/html not showing after upgrade to 1.4

      @Tom-Elliott It is not failing, the installer can get the file successfully!!!
      what is not working: list directory content in browser (same behavior using Indexes option in apache)
      This is not a problem because i can access file directly, but just curious about this.
      Sorry for taking your time.

      @Wayne-Workman i agree with your recommendation and i will implement this soon.

      Thanks all you guys…

      posted in FOG Problems
      ThiagoT
      Thiago
    • RE: Directories under /var/www/html not showing after upgrade to 1.4

      i am acessing directory with ipxe menu, like:

      :centos7auto
      set base http://${fog-ip}/repos/centos/base
      set iso http://${fog-ip}/iso/centos7
      kernel ${iso}/vmlinuz
      initrd ${iso}/initrd.img
      ....and other things
      

      i have no index.html or .php at /var/www/html and welcome.conf can not show his test page.

      posted in FOG Problems
      ThiagoT
      Thiago
    • Directories under /var/www/html not showing after upgrade to 1.4
      Server
      • FOG Version: 1.4
      • OS: CentOS 7
      Description

      Maybe this is more a apache config issue than Fog.
      I have some directories under /var/www/html (iso, repos, configs) and are used with fog ipxe to boot systems and automated installs.
      After upgraded to 1.4, puting in browser: http://(ip)/iso or /configs it returns with incorrect redirection error msg.
      Commenting lines from /etc/httpd/conf.d/fog.conf:

      RewriteEngine On
      RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
      RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d
      RewriteRule ^/(.*)$ /fog/api/index.php [QSA,L]
      

      all work like expected, but not tested with the fog things (snapin, clone…)
      what these lines do?

      posted in FOG Problems
      ThiagoT
      Thiago
    • RE: Deploy wim images with fog

      @lebrun78
      My fog server is used to boot winpe and then launch setup with unnatended xml file to automatically install windows…
      i think that you can boot winpe environmnent from your fog and then deploy wim image with dism command automatically too.

      posted in General
      ThiagoT
      Thiago
    • RE: Join Multicast Image problem : No session found with that name

      @Wayne-Workman Both on the same switch, tested with another computers (it’s a lab with 20) and always the second returns No session found with that name.
      If i do multicast via groups, it works with no problems.
      I can use it creating a multicast group and join all the computers that i need to deploy.
      Just curious to see if any other has the same problem… 🙂

      posted in FOG Problems
      ThiagoT
      Thiago
    • Join Multicast Image problem : No session found with that name
      Server
      • FOG Version: 1.3.0- RC-14
      • OS: CentOS 7
      Client
      • Service Version:
      • OS:
      Description

      Testing different ways to clone using multicast method…
      I created a multicast image session under image settings in UI:

      Session Name	test
      Client Count	2
      Timeout (minutes) 5	
      Select Image testimage
      

      Then:

      first client -> selected Join to multicast session in fog menu, asked for my credentials, then inserted test to multicast session name, the first client begins the process and wait at Starting to Restore image (-) to device (/dev/sda2) …

      second client -> the same procedure, but when inserted test it returns No session found with that name .

      After this, if i go to UI, there´s no Active Multi-cast Tasks and no Multicast Image, only active task for the first client is listed.

      I’m using it the right way or is this a problem in my setup?
      Thanks

      posted in FOG Problems
      ThiagoT
      Thiago
    • RE: Can not deploy using multicast - read image_hdr block_size error

      @Wayne-Workman, @Quazz
      Firewalld was disabled when testing, but enabled at production…
      My mistake!!!
      I did not open 49152 to 65532/udp ports in my firewall.
      Thanks to all Fog team!

      posted in FOG Problems
      ThiagoT
      Thiago
    • RE: Can not deploy using multicast - read image_hdr block_size error

      This is the first time that i try this.
      sending .fogsettings using udp-sender/udp-receiver worked.
      and this error (read image_hdr block_size error) happens on all images when multicasting.

      posted in FOG Problems
      ThiagoT
      Thiago