• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. marted
    3. Posts
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 11
    • Posts 99
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Post-install snapin failed

      @Sebastian-Roth I didnt answer because now we have a problem with the client on the cloned host and cannot check the package works or not. The problem started few days ago ONLY with new cloned hosts. On all new cloned hosts we have the same error message in the fog.log file.

       2020-02-18 11:06 Client-Info Client OS:      Windows
      
       2020-02-18 11:06 Client-Info Server Version: 1.5.7
      
       2020-02-18 11:06 Middleware::Response ERROR: Unable to get subsection
      
       2020-02-18 11:06 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
      
      
      
      ------------------------------------------------------------------------------
      
      --------------------------------HostnameChanger-------------------------------
      
      ------------------------------------------------------------------------------
      
       2020-02-18 11:06 Client-Info Client Version: 0.11.16
      
       2020-02-18 11:06 Client-Info Client OS:      Windows
      
       2020-02-18 11:06 Client-Info Server Version: 1.5.7
      
       2020-02-18 11:06 Middleware::Response ERROR: Unable to get subsection
      
       2020-02-18 11:06 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
      
      
      
      ------------------------------------------------------------------------------
      
      ---------------------------------SnapinClient---------------------------------
      
      ------------------------------------------------------------------------------
      
       2020-02-18 11:06 Client-Info Client Version: 0.11.16
      
       2020-02-18 11:06 Client-Info Client OS:      Windows
      
       2020-02-18 11:06 Client-Info Server Version: 1.5.7
      
       2020-02-18 11:06 Middleware::Response ERROR: Unable to get subsection
      
       2020-02-18 11:06 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
      
      
      
      ------------------------------------------------------------------------------
      
      --------------------------------PrinterManager--------------------------------
      
      ------------------------------------------------------------------------------
      
       2020-02-18 11:06 Client-Info Client Version: 0.11.16
      
       2020-02-18 11:06 Client-Info Client OS:      Windows
      
       2020-02-18 11:06 Client-Info Server Version: 1.5.7
      
       2020-02-18 11:06 Middleware::Response ERROR: Unable to get subsection
      
       2020-02-18 11:06 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
      
      
      
      ------------------------------------------------------------------------------
      
      --------------------------------PowerManagement-------------------------------
      
      ------------------------------------------------------------------------------
      
       2020-02-18 11:06 Client-Info Client Version: 0.11.16
      
       2020-02-18 11:06 Client-Info Client OS:      Windows
      
       2020-02-18 11:06 Client-Info Server Version: 1.5.7
      
       2020-02-18 11:06 Middleware::Response ERROR: Unable to get subsection
      
       2020-02-18 11:06 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
      
      
      
      ------------------------------------------------------------------------------
      
      ----------------------------------UserTracker---------------------------------
      
      ------------------------------------------------------------------------------
      
       2020-02-18 11:06 Client-Info Client Version: 0.11.16
      
       2020-02-18 11:06 Client-Info Client OS:      Windows
      
       2020-02-18 11:06 Client-Info Server Version: 1.5.7
      
       2020-02-18 11:06 Middleware::Response ERROR: Unable to get subsection
      
       2020-02-18 11:06 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
      
       2020-02-18 11:06 Service Sleeping for 63 seconds
      
       2020-02-18 11:07 Middleware::Communication URL: http://192.168.149.43/fog/management/index.php?sub=requestClientInfo&configure&newService&json
      
       2020-02-18 11:07 Middleware::Response Success
      
       2020-02-18 11:07 Middleware::Communication URL: http://192.168.149.43/fog/management/index.php?sub=requestClientInfo&mac=0A:00:27:00:00:17|40:B0:34:F7:EF:D8|A0:AF:BD:82:49:FC|A0:AF:BD:82:49:FD|A2:AF:BD:82:49:FC|A0:AF:BD:82:4A:00&newService&json
      
       2020-02-18 11:07 Middleware::Communication ERROR: Could not contact FOG server
      
       2020-02-18 11:07 Middleware::Communication ERROR: Le serveur distant a retourné une erreur : (500) Erreur interne du serveur.
      
       2020-02-18 11:07 Middleware::Response Success
      
       2020-02-18 11:07 Middleware::Communication URL: http://192.168.149.43/fog/service/getversion.php?clientver&newService&json
      
       2020-02-18 11:07 Middleware::Communication URL: http://192.168.149.43/fog/service/getversion.php?newService&json
      
      
      
       2020-02-18 11:07 Service Creating user agent cache
      
       2020-02-18 11:07 Middleware::Response ERROR: Unable to get subsection
      
       2020-02-18 11:07 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
      
       2020-02-18 11:07 Middleware::Response ERROR: Unable to get subsection
      
       2020-02-18 11:07 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
      
       2020-02-18 11:07 Middleware::Response ERROR: Unable to get subsection
      
       2020-02-18 11:07 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
      
      
      
      ------------------------------------------------------------------------------
      
      ---------------------------------ClientUpdater--------------------------------
      
      ------------------------------------------------------------------------------
      
       2020-02-18 11:07 Client-Info Client Version: 0.11.16
      
       2020-02-18 11:07 Client-Info Client OS:      Windows
      
       2020-02-18 11:07 Client-Info Server Version: 1.5.7
      
       2020-02-18 11:07 Middleware::Response Success
      
      ------------------------------------------------------------------------------
      
      
      
      
      
      ------------------------------------------------------------------------------
      
      ----------------------------------TaskReboot----------------------------------
      
      ------------------------------------------------------------------------------
      
       2020-02-18 11:07 Client-Info Client Version: 0.11.16
      
       2020-02-18 11:07 Client-Info Client OS:      Windows
      
       2020-02-18 11:07 Client-Info Server Version: 1.5.7
      
       2020-02-18 11:07 Middleware::Response ERROR: Unable to get subsection
      
       2020-02-18 11:07 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
      
      
      
      ------------------------------------------------------------------------------
      
      --------------------------------HostnameChanger-------------------------------
      
      ------------------------------------------------------------------------------
      
       2020-02-18 11:07 Client-Info Client Version: 0.11.16
      
       2020-02-18 11:07 Client-Info Client OS:      Windows
      
       2020-02-18 11:07 Client-Info Server Version: 1.5.7
      
       2020-02-18 11:07 Middleware::Response ERROR: Unable to get subsection
      
       2020-02-18 11:07 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
      
      
      
      ------------------------------------------------------------------------------
      
      ---------------------------------SnapinClient---------------------------------
      
      ------------------------------------------------------------------------------
      
       2020-02-18 11:07 Client-Info Client Version: 0.11.16
      
       2020-02-18 11:07 Client-Info Client OS:      Windows
      
       2020-02-18 11:07 Client-Info Server Version: 1.5.7
      
       2020-02-18 11:07 Middleware::Response ERROR: Unable to get subsection
      
       2020-02-18 11:07 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
      
      
      
      ------------------------------------------------------------------------------
      
      --------------------------------PrinterManager--------------------------------
      
      ------------------------------------------------------------------------------
      
       2020-02-18 11:07 Client-Info Client Version: 0.11.16
      
       2020-02-18 11:07 Client-Info Client OS:      Windows
      
       2020-02-18 11:07 Client-Info Server Version: 1.5.7
      
       2020-02-18 11:07 Middleware::Response ERROR: Unable to get subsection
      
       2020-02-18 11:07 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
      
      
      
      ------------------------------------------------------------------------------
      
      --------------------------------PowerManagement-------------------------------
      
      ------------------------------------------------------------------------------
      
       2020-02-18 11:07 Client-Info Client Version: 0.11.16
      
       2020-02-18 11:07 Client-Info Client OS:      Windows
      
       2020-02-18 11:07 Client-Info Server Version: 1.5.7
      
       2020-02-18 11:07 Middleware::Response ERROR: Unable to get subsection
      
       2020-02-18 11:07 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
      

      I wanted also to try to upgrade to 11.18 the client to see maybe this will solve the problem but honestly I couldn’t find how to upgrade the client to 11.18 . I downloaded the file from your official page release, uncompressed and nothing. Don’t know which file to pick up and how to upgrade the client to all hosts

      posted in Windows Problems
      M
      marted
    • RE: Post-install snapin failed

      @Sebastian-Roth I’ll try in few minutes

      posted in Windows Problems
      M
      marted
    • RE: Post-install snapin failed

      @Sebastian-Roth, I still have some problems with executing a batch command like admin in a script.
      When I execute locally the command it works very well but in snapin it doesn’t work. Even we tried to make an EMCO package with admin rights. Now we dont see any error codes and it says installed but the file is not imported.
      Very simple command but still not working in snapin

      @ECHO ON
      bcdedit /import  C:\Grub\Linux\file_bcd
      posted in Windows Problems
      M
      marted
    • RE: Post-install snapin failed

      @Sebastian-Roth how to specify which snapin run first and which second. What I did I put on the second one I want to be executed, a timeout of 60 sec. Is there a different way to say which script run first and which second?

      posted in Windows Problems
      M
      marted
    • Post-install snapin failed

      Hi,
      we run two batch scripts after deployment of windows OS.
      First one works great, just a copy of a file to EFI partition:

      @ECHO ON
      
      mountvol s: /s
      s:
      cd EFI/grub2win
      
      copy c:\grub\linux\grub.cfg s:\EFI\grub2win
      
      mountvol s: /d
      
      

      second one is always with error (sometimes I see it with exit code -1 sometimes with 1)
      We use bcdedit to import a store with list of bootloaders. When I run it locally like an Admin it works great.
      The quesiton is how to run this snapin with Admin privilege? I think this is the problem.

      @ECHO ON
      bcdedit /import  C:\Grub\Linux\file_bcd
      

      the imported file is saved in the image in C:\Grub\Linux\file_bcd

      posted in Windows Problems
      M
      marted
    • RE: 2019...a step by step activating ssl and complying iPXE with it

      @Sebastian-Roth Thank you

      posted in FOG Problems
      M
      marted
    • RE: FOG doesn’t copy NVRAM from cloned machine to the new machine

      @george1421 thank you !

      posted in FOG Problems
      M
      marted
    • RE: FOG doesn’t copy NVRAM from cloned machine to the new machine

      @george1421 @Sebastian-Roth I did the changes, just please confirm that everything I did is correct :

      1. I created a file with permission 775 on the server FOG in /images/postdownloadscripts called fog.grub2win
      #!/bin/bash
      /bin/efibootmgr --create --disk /dev/sda --part 1 --loader ‘\EFI\grub2win\g2bootmgr\gnugrub.kernel64.efi’ --label “Grub2Win”
      
      1. I added the script in fog.postdownload
      #!/bin/bash
      ## This file serves as a starting point to call your custom postimaging scripts.
      ## <SCRIPTNAME> should be changed to the script you're planning to use.
      ## Syntax of post download scripts are
      . ${postdownpath}fog.grub2win
      

      is everything OK?

      posted in FOG Problems
      M
      marted
    • RE: FOG doesn’t copy NVRAM from cloned machine to the new machine

      @george1421 Thank you so much!

      posted in FOG Problems
      M
      marted
    • RE: FOG doesn’t copy NVRAM from cloned machine to the new machine

      @Sebastian to run this command with efibootmgr, do I need just to create a bash script, make it executable and put it in /images/postdownloadscripts. ?

      posted in FOG Problems
      M
      marted
    • RE: FOG doesn’t copy NVRAM from cloned machine to the new machine

      @Sebastian I tried your other suggestion for executing a postscript and I came with this command I executed in debug session on a client and it works 🙂
      For me, it will be a better solution instead to mess up with rEFInd boot.
      Now I need just to figure out how to add the script and where

      efibootmgr --create --disk /dev/sda --part 1 --loader ‘\EFI\grub2win\g2bootmgr\gnugrub.kernel64.efi’ --label “Grub2Win”

      posted in FOG Problems
      M
      marted
    • RE: FOG doesn’t copy NVRAM from cloned machine to the new machine

      @Sebastian, from the downloaded zip file, do I need just to find the .efi file x64 and replace the old one on the server with it? what about the .conf example in the zip? Do I have to copy it also to the server replacing the old one?

      posted in FOG Problems
      M
      marted
    • RE: FOG doesn’t copy NVRAM from cloned machine to the new machine

      @Sebastian-Roth sorry for my late response but I wanted to test everything before asking you again for help.
      Now the problem is that I see the rEfind menu in some model UEFI (HP 800 G2 UEFI) and on other HP 800 G4 UEFI), the boot stays on the message rEFInd initializing and does nothing.
      Furthermore, on the first one model where I see the menu, I still don’t understand something - I added the menuentry for grub2win you suggested and I cannot see it. After I deactivated ALL entries and still see the same menu on boot! Do I have to run some command to apply the changes in refind.conf file or it applies the changes every time it boots?
      Just to mention we compare the BIOS of both two computers G2 and G4 and they are equal, secure boot disable and legacy disable.

      posted in FOG Problems
      M
      marted
    • RE: FOG doesn’t copy NVRAM from cloned machine to the new machine

      Thank yo so much @Sebastian-Roth . I’ll try tomorrow the config you suggested and will give you feedback.

      posted in FOG Problems
      M
      marted
    • RE: FOG doesn’t copy NVRAM from cloned machine to the new machine

      @Sebastian-Roth said in FOG doesn’t copy NVRAM from cloned machine to the new machine:

      Can you be more specific on what you mean by that? Why do you use grub2win and is it installed on disk (in the EFI partition)? Why? As well, which version of grub2win do you use? Is your version ready to handle EFI properly at all?

      Ok, I’ll try to explain. Now we have a lab with 400 hosts and all of them are dualboot Windows Linux. All computers must be booted in windows when nobody use them. The choice of Grub2win came after we couldn’t find a propre solution how to make the host to boot from a distance in Linux partition from Windows, because was not easy to change grub 2 from windows and even we are able to mount Linux partition and change the options in grub.cfg file and reboot after , it was not a stable solution and even when Linux partition is formatted on ext4 it was more difficult. We have to used different software. Now we found Grub2win (grub efi version more customizable and excellent solution for dual boots do Windows installed) which we can very easy control with a simple Bach script. I created a process which works perfectly for imaging the hosts- install a image host with Windows/Ubuntu and Grub2win - take the image and send it to a host - it will boot in Windows because Grub2win was made if a client doesn’t make a choice between Windows Ubuntu in 5 sec it will automatically boot in Windows - join domain grace a fog - after small snapin change the conf file of Grub2win and make Linux default and reboot - the computer reboot and go to Linux - there I created a script to rename the host an it joins Active Directory - at the end the script change again the config file of Grub2win from Linux and make Windows again default system - reboot. Works great!
      Now, without touching the host we have two system renamed and joined domain and stays booted in Windows at the end (condition asked by the professors who give courses in the lab). Staying in Windows give us possibilities to always control hosts with fog client (stop, restart, send packages) and if we want to boot in Linux we send a snapin and puppet make it’s job in the Linux partition for update Ubuntu and install packages.

      Now I need only to figure out how to solve the problem with NVRAM.
      I hope is clear the information.

      posted in FOG Problems
      M
      marted
    • RE: FOG doesn’t copy NVRAM from cloned machine to the new machine

      @Sebastian-Roth said in FOG doesn’t copy NVRAM from cloned machine to the new machine:
      @Sebastian-Roth that’s I love FOG, not only for the great features but for the great support. I’m surprised guys how you always try to help and you love what you do.
      Now I see a light in the tunnel 🙂 after a hard one week of tests.

      Now let’s go and see what we can do for you. First I suggest you schedule a debug capture task for your master/source host. Boot it up till you get to the shell and run passwd to set a root password and then ip a s to see which IP the client got. Now open s SSH connection from your working PC to this host (using Linux ssh command, Windows Putty or other SSH tool) and login. This is a great way to be able to copy and paste commands and output from and to that host.

      The first thing to do Monday morning when I go back to work. Actually I have already done some tests with efibootmgr in the Linux partition on the source host and I have some idea for the syntax of the command I should run on the new host post script.
      for the imaged host it always depends what kind of OS it was used before imaged and if this was windows it figured it out to find the path to .efi file of windows.

      Note: Beside all that I am really wondering if you keep your hosts to boot through PXE after deployment. In that case it should load iPXE and then exit back to the local hard drive via rEFInd. That usually is able to find the Windows EFI bootloader on disk and will boot into that straight away.

      Actually I have a question for you about rEfind boot loader.
      I know it is the default selected for exit from iPXE boot but because probably of the fact we use grub2win before the windows boot loader in the list, rEFInd is not capable to start it and stay on start black screen and do nothing. I was wondering if I can add a new entry in rEfind manualy and like this send it to the .efi file of grub2win or even better to add a new entry in the iPXE menu with path to grub2win .efi and select it like the default one on the top. In this case I think even the machine can not find the boot loader will boot in iPXE and on the exit menu will go find the .efi of grub2win. Now the question is how to do that in FOG? I still didn’t figured it out.
      But even I do that and works, the question is how to provoke the host to go and rewrite the NVRAM variable once it is in windows for example. I still don’t understand it. Because on one host, new cloned, it was able to boot in windows but had never rewrite the NVRAM variable and on reboot start again windows without seeing the grub2win, which is cleary on its place in the EFI partition.
      Thanks again fo your help!

      posted in FOG Problems
      M
      marted
    • FOG doesn’t copy NVRAM from cloned machine to the new machine

      I’m writing this poste, because we’re in front of BIG issue, the NVRAM variable of the client machine.
      Just few words to describe the situation:
      We have image poste UEFI/GPT with installed Windows and Ubuntu and Grub2win (small boot loader something like grub but installed from windows) Up to now everything was fine the image works grate.but when we send the image to another machine UEFI the computer doesn’t see any more geib2win boot loader and boot only in windows.
      We tried many different way to overcome this problem but with no success.
      I was thinking for few scenarios and I really need your opinion on that:

      1. When we boot in windows, obviously it boot in windows, can I make some poste install script/snapin to copy the efi partition (cloned from the image machine) to NVRAM variable of the new machine and on next boot to have a new efi boot entry? Up to now I tried with bcdedit to replace boot efi file of windows with the efi file of Grub2win but this doesn’t work. Is there any other way in windows environment?
      2. I red in your forum for init post script , which if I understand correctly will run before cloning the machine. Is there a way to make a copy of the boot entry of my image machine with efibootmgr and with the same tool to copy this entries to my client machine before even it was wiped or written?
        Or at least a command to add an entry to NVRAM like défaut entry to the new machine?
        I really want to resolve this problem because we came too far with FOG and we really love it and we won’t give it up for an issue like this one, but we have 400 computers UEFI and we have to find a way to image them with our Bootloader on the top of windows Bootloader.
        Thanks in advance for all your suggestions and help
      posted in FOG Problems
      M
      marted
    • RE: Remove press F12 for network boot (PXE)

      Thank you for your answer but I figured it out. When I shutdown all machine from a distance and send wake-up on lan, actually the commuters start loading ipxe even lan option is not on the first place in the boot menu. WOW this one made my day. No need to press F12 if I stop all computers and send a signal with the image wake-up on lan WOW.
      Thanks a lot to all who work on this great project FOGproject!

      posted in General Problems
      M
      marted
    • Remove press F12 for network boot (PXE)

      Hi, I was wondering if it is possible in FOG same like SCCM Pxe boot can Remove Press F12 for network service boot?
      remove press f12 SCCM

      Thanks in advance!

      posted in General Problems
      M
      marted
    • RE: FOG Client cannot communicate with the server (token.data missing)

      Please close the Topic. We have decided to use http instead of https and I reinstalled the server and everything is working fine with the agent. All our machines are in closed environment 192.168 and we don’t really need https.
      Thanks again for your help.

      posted in Windows Problems
      M
      marted
    • 1 / 1