@jc35
mount /dev/sda1 /mnt
mount --bind /sys /mnt/sys
mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
chroot /mnt ./usr/sbin/grub-install /dev/sda
@jc35
mount /dev/sda1 /mnt
mount --bind /sys /mnt/sys
mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
chroot /mnt ./usr/sbin/grub-install /dev/sda
Hi,
@sebastian-roth said in Ubuntu Image with both - UEFI and Legacy support:
@jc35 said in Ubuntu Image with both - UEFI and Legacy support:
Can we use chroot in a script?
Sure you can. But I suggest you try it out in a FOS debug session first for easier debugging. I think you need to bind mount special filesystems like /dev and maybe also /proc and /sys for grub-install to properly work in this chroot environment. Just use your favorit search engine to find hints on this topic on the web.
It’s works fine.
Thanks you very much.
@sebastian-roth said in Ubuntu Image with both - UEFI and Legacy support:
@jc35 What I mean is mount the root partition of your Ubuntu system (that you deployed) and use
chroot
to switch into that system…
Can we use chroot in a script?
@sebastian-roth said in Ubuntu Image with both - UEFI and Legacy support:
@jc35 said in Ubuntu Image with both - UEFI and Legacy support:
The solution is grub-install, but is not include in FOS.
How to put grub-install on FOS ?
So far I have not succeeded, I have compiled GRUB on my pc, then I try to copy the files to the FOS, but dependency problem. We would have to figure out how to compile GRUB in STATIC and copy into FOS.
Well then you use FOS to
chroot
into the Ubuntu install after imaging and run grub-install there.
With chroot, this requires manual intervention unfortunately, I would like to do it automatically in the postinstall scripts.
Hi,
I have create a ubuntu image to boot in legacy and uefi mode, it works fine in virtualbox.
But when I upload the image on FOG. When I deploy this image on a legacy computer, it dosen’t boot, but boot on uefi computer.
The solution is grub-install, but is not include in FOS.
How to put grub-install on FOS ?
@george1421 said in problem boot ipxe with usb nic after update FOG 1.5.8 -> 1.5.9:
@Sebastian-Roth Just circling back on this.
I took 3 of the dell systems here that have thunderbolt/usb-c ports and use the WD15 (mainly), WD19 and the Dell usb-c to ethernet adapter.
I downloaded the ipxe.efi from the github site: https://github.com/FOGProject/fogproject/blob/master/packages/tftp/ipxe.efi and installed it on my production 1.5.7 server. I confirmed the iPXE build number is [g4bd0].
It works with usbc->ethernet dongle.
I was able to pxe boot into the FOG iPXE menu with a Dell 7400, 7389, 3520 laptops with the WD15 and usb-c to ethernet dongle. The 7389 pxe booted with the WD19 dock OK. I did not test the others.
I can confirm that the version if ipxe.efi from FOG 1.5.7 is [990f4]. So as far as I can tell there is no impact of updating from 1.5.7 to 1.5.9 on network booting.
Thanks you very much.
@Sebastian-Roth said in problem boot ipxe with usb nic after update FOG 1.5.8 -> 1.5.9:
As we don’t know much about the NIC you use (beyond it being USB) we can’t say which change in the iPXE code could cause the new behaviour. So let’s see if we can gather some more information. Can you post the exact USB NIC model you have. Best if you have USB IDs at hand.
As well you might try George’s suggestion on using snponly.efi instead of ipxe.efi just to see if that makes a difference with those USB NICs.
Docks dell wd15,wd19
Dongle dell usb-c -> network
on Linux with “lsusb”
ID : 0bda:8153
@Sebastian-Roth said in problem boot ipxe with usb nic after update FOG 1.5.8 -> 1.5.9:
@Sebastian-Roth said in problem boot ipxe with usb nic after update FOG 1.5.8 -> 1.5.9:
For how long does it sit there waiting? Does it proceed at all?
Would you mind answering those questions?
I had already answered these 2 previous questions.
As well I wonder if your switch is setup with spanning tree? What happens if you connect a dumb mini switch in between?
@george1421 said in problem boot ipxe with usb nic after update FOG 1.5.8 -> 1.5.9:
@jc35 said in problem boot ipxe with usb nic after update FOG 1.5.8 -> 1.5.9:
While waiting to find a solution, we have put back the “/ tftpboot” folder and the “/ var / www / fog / service / ipxe” folder from version 1.5.8, and it works.
Lets have you rerun the fog installer for 1.5.9 this will restore your system to 1.5.9 version. Then put back just the /tftpboot directory. See if this combination works OK. I feel your fix to put back /tftpboot fixed the problem.
I restore “/var/www/fog/service/ipxe” from 1.5.9 backup.
“/tfptboot” from 1.5.8 And I reboot the server. It works.
@Sebastian-Roth said in problem boot ipxe with usb nic after update FOG 1.5.8 -> 1.5.9:
@jc35 For how long does it sit there waiting? Does it proceed at all?
About 3 minutes, and it boot on a hard disk.
I’d suggest you download the ipxe.efi file we released with FOG 1.5.8 from github to see if that really makes a difference.
Rename the current file
/tftpboot/ipxe.efi
to have a backup copy of it and then put the file downloaded above in place. See if it’s doing the same thing using that iPXE binary.
While waiting to find a solution, we have put back the “/ tftpboot” folder and the “/ var / www / fog / service / ipxe” folder from version 1.5.8, and it works.
Hello,
I have upgrade FOG from 1.5.8 to 1.5.9. we are on debian 10.6.
When I boot the client, in pxe we have the message on picture :
Only in uefi and with usb nic (on Dell notebook).
how to resolv the problem ?
@jc35 Hi,
Yesterday I have the same problem on a machine, when a powerdown.
I retry this. The client can’t contact the server because the vpn is down.
Client updater works on Linux ?
@Sebastian-Roth I try on 2 machines and it works.
@jc35 The next of log:
I06/04/2020 11:09:05 Middleware::Communication URL: http://fogserver/fog/management/index.php?sub=requestClientInfo&configure&newService&json
06/04/2020 11:09:05 Middleware::Response Success
06/04/2020 11:09:05 Middleware::Communication URL: http://fogserver/fog/management/index.php?sub=requestClientInfo&mac=18:03:73:3F:B4:FF&newService&json
06/04/2020 11:09:06 Middleware::Authentication Waiting for authentication timeout to pass
06/04/2020 11:11:05 Middleware::Communication Download: http://fogserver/fog/management/other/ssl/srvpublic.crt
06/04/2020 11:11:05 Data::RSA FOG Server CA cert found
06/04/2020 11:11:05 Middleware::Authentication Cert OK
06/04/2020 11:11:05 Middleware::Authentication No token found at /opt/fog-service/token.dat, this is expected if the client has not authenticated before
06/04/2020 11:11:05 Middleware::Authentication ERROR: Could not get security token
06/04/2020 11:11:05 Middleware::Authentication ERROR: Could not find file "/opt/fog-service/token.dat".
06/04/2020 11:11:05 Middleware::Communication POST URL: http://fogserver/fog/management/index.php?sub=requestClientInfo&authorize&newService
06/04/2020 11:11:05 Middleware::Response Invalid security token
06/04/2020 11:11:05 Middleware::Response Success
06/04/2020 11:11:05 Middleware::Communication URL: http://fogserver/fog/service/getversion.php?clientver&newService&json
06/04/2020 11:11:05 Middleware::Communication URL: http://fogserver/fog/service/getversion.php?newService&json
06/04/2020 11:11:06 Service Creating user agent cache
06/04/2020 11:11:06 Middleware::Response ERROR: Unable to get subsection
06/04/2020 11:11:06 Middleware::Response ERROR: Object reference not set to an instance of an object
06/04/2020 11:11:06 Middleware::Response ERROR: Unable to get subsection
06/04/2020 11:11:06 Middleware::Response ERROR: Object reference not set to an instance of an object
06/04/2020 11:11:06 Middleware::Response ERROR: Unable to get subsection
06/04/2020 11:11:06 Middleware::Response ERROR: Object reference not set to an instance of an object
06/04/2020 11:11:06 Service Initializing modules
------------------------------------------------------------------------------
---------------------------------ClientUpdater--------------------------------
------------------------------------------------------------------------------
06/04/2020 11:11:06 Client-Info Client Version: 0.11.19
06/04/2020 11:11:06 Client-Info Client OS: Linux
06/04/2020 11:11:06 Client-Info Server Version: 1.5.8
06/04/2020 11:11:06 Middleware::Response Success
------------------------------------------------------------------------------
------------------------------------------------------------------------------
----------------------------------TaskReboot----------------------------------
------------------------------------------------------------------------------
06/04/2020 11:11:06 Client-Info Client Version: 0.11.19
06/04/2020 11:11:06 Client-Info Client OS: Linux
06/04/2020 11:11:06 Client-Info Server Version: 1.5.8
06/04/2020 11:11:06 Middleware::Response ERROR: Unable to get subsection
06/04/2020 11:11:06 Middleware::Response ERROR: Object reference not set to an instance of an object
------------------------------------------------------------------------------
--------------------------------HostnameChanger-------------------------------
------------------------------------------------------------------------------
06/04/2020 11:11:06 Client-Info Client Version: 0.11.19
06/04/2020 11:11:06 Client-Info Client OS: Linux
06/04/2020 11:11:06 Client-Info Server Version: 1.5.8
06/04/2020 11:11:06 Middleware::Response ERROR: Unable to get subsection
06/04/2020 11:11:06 Middleware::Response ERROR: Object reference not set to an instance of an object
------------------------------------------------------------------------------
---------------------------------SnapinClient---------------------------------
------------------------------------------------------------------------------
06/04/2020 11:11:06 Client-Info Client Version: 0.11.19
06/04/2020 11:11:06 Client-Info Client OS: Linux
06/04/2020 11:11:06 Client-Info Server Version: 1.5.8
06/04/2020 11:11:06 Middleware::Response ERROR: Unable to get subsection
06/04/2020 11:11:06 Middleware::Response ERROR: Object reference not set to an instance of an object
------------------------------------------------------------------------------
--------------------------------PrinterManager--------------------------------
------------------------------------------------------------------------------
06/04/2020 11:11:06 Client-Info Client Version: 0.11.19
06/04/2020 11:11:06 Client-Info Client OS: Linux
06/04/2020 11:11:06 Client-Info Server Version: 1.5.8
06/04/2020 11:11:06 Middleware::Response ERROR: Unable to get subsection
06/04/2020 11:11:06 Middleware::Response ERROR: Object reference not set to an instance of an object
------------------------------------------------------------------------------
--------------------------------PowerManagement-------------------------------
------------------------------------------------------------------------------
06/04/2020 11:11:06 Client-Info Client Version: 0.11.19
06/04/2020 11:11:06 Client-Info Client OS: Linux
06/04/2020 11:11:06 Client-Info Server Version: 1.5.8
06/04/2020 11:11:06 Middleware::Response ERROR: Unable to get subsection
06/04/2020 11:11:06 Middleware::Response ERROR: Object reference not set to an instance of an object
------------------------------------------------------------------------------
----------------------------------UserTracker---------------------------------
------------------------------------------------------------------------------
06/04/2020 11:11:06 Client-Info Client Version: 0.11.19
06/04/2020 11:11:06 Client-Info Client OS: Linux
06/04/2020 11:11:06 Client-Info Server Version: 1.5.8
06/04/2020 11:11:06 Middleware::Response ERROR: Unable to get subsection
06/04/2020 11:11:06 Middleware::Response ERROR: Object reference not set to an instance of an object
06/04/2020 11:11:06 Service Sleeping for 940 seconds
06/04/2020 11:26:46 Middleware::Communication URL: http://fogserver/fog/management/index.php?sub=requestClientInfo&configure&newService&json
06/04/2020 11:26:46 Middleware::Response Success
06/04/2020 11:26:46 Middleware::Communication URL: http://fogserver/fog/management/index.php?sub=requestClientInfo&mac=18:03:73:3F:B4:FF&newService&json
06/04/2020 11:26:47 Middleware::Authentication Waiting for authentication timeout to pass
06/04/2020 11:26:47 Middleware::Communication Download: http://fogserver/fog/management/other/ssl/srvpublic.crt
06/04/2020 11:26:47 Data::RSA FOG Server CA cert found
06/04/2020 11:26:47 Middleware::Authentication Cert OK
06/04/2020 11:26:47 Middleware::Authentication No token found at /opt/fog-service/token.dat, this is expected if the client has not authenticated before
06/04/2020 11:26:47 Middleware::Authentication ERROR: Could not get security token
06/04/2020 11:26:47 Middleware::Authentication ERROR: Could not find file "/opt/fog-service/token.dat".
06/04/2020 11:26:47 Middleware::Communication POST URL: http://fogserver/fog/management/index.php?sub=requestClientInfo&authorize&newService
06/04/2020 11:26:47 Middleware::Response Invalid security token
06/04/2020 11:26:47 Middleware::Response Success
06/04/2020 11:26:47 Middleware::Communication URL: http://fogserver/fog/service/getversion.php?clientver&newService&json
06/04/2020 11:26:47 Middleware::Communication URL: http://fogserver/fog/service/getversion.php?newService&json
06/04/2020 11:26:48 Service Creating user agent cache
06/04/2020 11:26:48 Middleware::Response ERROR: Unable to get subsection
06/04/2020 11:26:48 Middleware::Response ERROR: Object reference not set to an instance of an object
06/04/2020 11:26:48 Middleware::Response ERROR: Unable to get subsection
06/04/2020 11:26:48 Middleware::Response ERROR: Object reference not set to an instance of an object
06/04/2020 11:26:48 Middleware::Response ERROR: Unable to get subsection
06/04/2020 11:26:48 Middleware::Response ERROR: Object reference not set to an instance of an object
------------------------------------------------------------------------------
---------------------------------ClientUpdater--------------------------------
------------------------------------------------------------------------------
06/04/2020 11:26:48 Client-Info Client Version: 0.11.19
06/04/2020 11:26:48 Client-Info Client OS: Linux
06/04/2020 11:26:48 Client-Info Server Version: 1.5.8
06/04/2020 11:26:48 Middleware::Response Success
------------------------------------------------------------------------------
------------------------------------------------------------------------------
----------------------------------TaskReboot----------------------------------
------------------------------------------------------------------------------
06/04/2020 11:26:48 Client-Info Client Version: 0.11.19
06/04/2020 11:26:48 Client-Info Client OS: Linux
06/04/2020 11:26:48 Client-Info Server Version: 1.5.8
06/04/2020 11:26:48 Middleware::Response ERROR: Unable to get subsection
06/04/2020 11:26:48 Middleware::Response ERROR: Object reference not set to an instance of an object
------------------------------------------------------------------------------
--------------------------------HostnameChanger-------------------------------
------------------------------------------------------------------------------
06/04/2020 11:26:48 Client-Info Client Version: 0.11.19
06/04/2020 11:26:48 Client-Info Client OS: Linux
06/04/2020 11:26:48 Client-Info Server Version: 1.5.8
06/04/2020 11:26:48 Middleware::Response ERROR: Unable to get subsection
06/04/2020 11:26:48 Middleware::Response ERROR: Object reference not set to an instance of an object
------------------------------------------------------------------------------
---------------------------------SnapinClient---------------------------------
------------------------------------------------------------------------------
06/04/2020 11:26:48 Client-Info Client Version: 0.11.19
06/04/2020 11:26:48 Client-Info Client OS: Linux
06/04/2020 11:26:48 Client-Info Server Version: 1.5.8
06/04/2020 11:26:48 Middleware::Response ERROR: Unable to get subsection
06/04/2020 11:26:48 Middleware::Response ERROR: Object reference not set to an instance of an object
------------------------------------------------------------------------------
--------------------------------PrinterManager--------------------------------
------------------------------------------------------------------------------
06/04/2020 11:26:48 Client-Info Client Version: 0.11.19
06/04/2020 11:26:48 Client-Info Client OS: Linux
06/04/2020 11:26:48 Client-Info Server Version: 1.5.8
06/04/2020 11:26:48 Middleware::Response ERROR: Unable to get subsection
06/04/2020 11:26:48 Middleware::Response ERROR: Object reference not set to an instance of an object
------------------------------------------------------------------------------
--------------------------------PowerManagement-------------------------------
------------------------------------------------------------------------------
06/04/2020 11:26:48 Client-Info Client Version: 0.11.19
06/04/2020 11:26:48 Client-Info Client OS: Linux
06/04/2020 11:26:48 Client-Info Server Version: 1.5.8
06/04/2020 11:26:48 Middleware::Response ERROR: Unable to get subsection
06/04/2020 11:26:48 Middleware::Response ERROR: Object reference not set to an instance of an object
------------------------------------------------------------------------------
----------------------------------UserTracker---------------------------------
------------------------------------------------------------------------------
06/04/2020 11:26:48 Client-Info Client Version: 0.11.19
06/04/2020 11:26:48 Client-Info Client OS: Linux
06/04/2020 11:26:48 Client-Info Server Version: 1.5.8
06/04/2020 11:26:48 Middleware::Response ERROR: Unable to get subsection
06/04/2020 11:26:48 Middleware::Response ERROR: Object reference not set to an instance of an object
06/04/2020 11:26:48 Service Sleeping for 972 secondsnsert Code Here
@Sebastian-Roth Hi,
I install SmartInstaller_Linux_stop_hang_fixed.exe
mono /opt/SmartInstaller_Linux_stop_hang_fixed.exe --server="fogserver" --webroot="/fog" -s -t 0
06/04/2020 11:01:04 Main Overriding exception handling
06/04/2020 11:01:05 Main Bootstrapping Zazzles
06/04/2020 11:01:05 Controller Initialize
06/04/2020 11:01:05 Controller Start
06/04/2020 11:01:05 Service Starting service
06/04/2020 11:01:05 Bus Became bus server
06/04/2020 11:01:05 Bus Emmiting message on channel: Status
06/04/2020 11:01:05 Service Invoking early JIT compilation on needed binaries
------------------------------------------------------------------------------
--------------------------------Authentication--------------------------------
------------------------------------------------------------------------------
06/04/2020 11:01:05 Client-Info Version: 0.11.19
06/04/2020 11:01:05 Client-Info OS: Linux
06/04/2020 11:01:05 Middleware::Authentication Waiting for authentication timeout to pass
06/04/2020 11:01:05 Middleware::Communication Download: http://fogserver/fog/management/other/ssl/srvpublic.crt
06/04/2020 11:01:05 Data::RSA FOG Server CA cert found
06/04/2020 11:01:05 Middleware::Authentication Cert OK
06/04/2020 11:01:05 Middleware::Authentication No token found at /opt/fog-service/token.dat, this is expected if the client has not authenticated before
06/04/2020 11:01:05 Middleware::Authentication ERROR: Could not get security token
06/04/2020 11:01:05 Middleware::Authentication ERROR: Could not find file "/opt/fog-service/token.dat".
06/04/2020 11:01:05 Middleware::Communication POST URL: http://fogserver/fog/management/index.php?sub=requestClientInfo&authorize&newService
06/04/2020 11:01:05 Middleware::Response Invalid security token
------------------------------------------------------------------------------
--------------------------------Authentication--------------------------------
------------------------------------------------------------------------------
06/04/2020 11:01:05 Client-Info Version: 0.11.19
06/04/2020 11:01:05 Client-Info OS: Linux
06/04/2020 11:01:05 Middleware::Authentication Waiting for authentication timeout to pass
Hi,
FOG 1.5.8, fog client 0.11.19.
When I stop the service, it take 1mn and 32 s to stop.
It’s very long.
Have you an idea ?
Hi,
with the modification of “hostinfo.php”, it’s works fine.
Thank you very much.
Hi,
FOG 1.5.8
In post install, we get fog variables with
curl -A “” -Lkso /tmp/hinfo.txt ${web}service/hostinfo.php -d “mac=$mac”
It’s works fine in deploy mode, but it doesn’t work in multicast mode.
Apache error_logs :
[proxy_fcgi:error] [pid 7589:tid 140504964466432] [client xxx:xxx] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to a member function get() on null in pathweb/fog/service/hostinfo.php:97\nStack trace:\n#0 {main}\n thrown in pathweb/fog/service/hostinfo.php on line 97\n’
the file /tmp/hinfo.txt is empty.