Windows 10 UEFI PC opens from fog server but boots into Windows instead PXE



  • My Windows XP PC works fine with fog 1.3.0. Edit: works fine with fog trunk.
    I have problems with my Windows 10 PC:
    I open the Windows 10 PC to register it to fog and it says:
    Checking Media Presence
    Media present
    Starting PXE over IPv4
    Succeeded to download NBP file
    …and then it goes to Boot option 2 and boots in Windows.

    When add manually the host on the fog server and make a task, it opens the Windows 10 PC but it boots into windows after the same message as I wrote above.
    In BIOS only UEFI boot options are enabled.
    Any help please?
    Thank you



  • As I said everything works great! Thank you again for great support!



  • I re-installed fog and everything works fine! :-)


  • Developer

    @hariskar Please get another pcap dump and while it is waiting access this URL from your browser: http://192.168.1.5/fog/management/index.php?node=client&sub=wakeEmUp&mac=00:00:00:00:00:01 (put in your client’s MAC address instead)


  • Developer

    @hariskar Thanks for log info and the new PCAP. It’s empty again… I am kind of lost with this. Will check the code to see how we can further debug this.



  • Sebastian, sorry for confusing you. The log above is just from Scheduler restart, without any task. I upload here a new wol.pcap where you should see a packet from an instant task.0_1459415578972_wol.pcap

    [03-31-16 12:14:22 pm] * 1 active task waiting to wake up.
    [03-31-16 12:14:22 pm] | Sending WOL Packet(s)
    [03-31-16 12:14:22 pm] 		- Host: ergastirio WOL sent to all macs associated
    [03-31-16 12:14:22 pm] * No tasks found!
    
    

  • Developer

    @hariskar said:

    [03-31-16 11:52:20 am] * 0 active tasks waiting to wake up.
    [03-31-16 11:52:20 am] * No tasks found!

    Did you actually schedule a task when capturing the PCAP dump?? Sorry for asking those questions but I cannot help myself. WOL is working great here and I cannot reproduce what’s going wrong on your system.



  • ###########################################
     # Free Computer Imaging Solution #
     # Credits: #
     # http://fogproject.org/credits #
     # GNU GPL Version 3 #
     ###########################################
    
    [03-31-16 11:50:20 am] Interface Ready with IP Address: 94.69.139.243
    [03-31-16 11:50:20 am] Interface Ready with IP Address: 192.168.1.5
    [03-31-16 11:50:20 am] Interface Ready with IP Address: debian-server
    [03-31-16 11:50:20 am] Interface Ready with IP Address: ppp-94-69-139-243.home.otenet.gr
    [03-31-16 11:50:20 am] * Starting TaskScheduler Service
    [03-31-16 11:50:20 am] * Checking for new items every 60 seconds
    [03-31-16 11:50:20 am] * Starting service loop
    [03-31-16 11:50:20 am] * 0 active tasks waiting to wake up.
    [03-31-16 11:50:20 am] * No tasks found!
    [03-31-16 11:51:20 am] * 0 active tasks waiting to wake up.
    [03-31-16 11:51:20 am] * No tasks found!
    [03-31-16 11:52:20 am] * 0 active tasks waiting to wake up.
    [03-31-16 11:52:20 am] * No tasks found!
    

  • Developer

    @hariskar The PCAP file is completely empty. Either something went wrong with capturing or your server does not send WOL packets. The ServiceMaster Log looks ok to me! Please check the FOGScheduler log again. Change “Number of lines” to 1000 so you see it all. On (re)start the scheduler should print the FOG logo and then a couple of lines like:

    Interface Ready with IP Address: ...
    

    Please post that part of the logs here.



  • 0_1459400650652_wol.pcap

    Fog Log Viewer/Service Master newest entry is 2 days ago, is this correct?

    [03-27-16 2:20:17 pm] FOGTaskScheduler fork()ed child process (9831).
    [03-27-16 2:20:17 pm] FOGTaskScheduler child process (9831) is running.
    [03-29-16 12:55:48 pm] service_signal_handler (9812) received signal 15.
    [03-29-16 12:55:48 pm] service_signal_handler (9812) killing child (9831).
    [03-29-16 12:55:48 pm] service_signal_handler (9812) exiting.
    [03-29-16 3:55:48 pm] FOGTaskScheduler Start
    [03-29-16 3:55:48 pm] FOGTaskScheduler fork()ed child process (16875).
    [03-29-16 3:55:48 pm] FOGTaskScheduler child process (16875) is running.
    [03-29-16 3:57:05 pm] service_signal_handler (16859) received signal 15.
    [03-29-16 3:57:05 pm] service_signal_handler (16859) killing child (16875).
    [03-29-16 3:57:05 pm] service_signal_handler (16859) exiting.
    [03-29-16 4:10:24 pm] FOGTaskScheduler Start
    [03-29-16 4:10:24 pm] FOGTaskScheduler fork()ed child process (5292).
    [03-29-16 4:10:24 pm] FOGTaskScheduler child process (5292) is running.
    [03-29-16 5:52:09 pm] service_signal_handler (5273) received signal 15.
    [03-29-16 5:52:09 pm] service_signal_handler (5273) killing child (5292).
    [03-29-16 5:52:09 pm] service_signal_handler (5273) exiting.
    [03-29-16 5:52:09 pm] FOGTaskScheduler Start
    [03-29-16 5:52:09 pm] FOGTaskScheduler fork()ed child process (6073).
    [03-29-16 5:52:09 pm] FOGTaskScheduler child process (6073) is running.


  • Developer

    @hariskar Can you make sure the WOL packets are sent to the network? Install tcpdump package on your FOG server and run tcpdump -i any -w wol.pcap port 9. Leave the command on the console and schedule a task for the PCs, check the logs for WOL packets being sent and then stop tcpdump (Ctrl-c). Please upload the wol.pcap file to the forum so we can have a look.



  • Yes of course. WOL was working in both PCs with undionly.PXE. After I put the 12 lines in DNSMasq it does not work with fog. But I can wake up my PCs from the routers interface.


  • Developer

    @hariskar said:

    But there is still some problem: fog can not boot both PCs.

    Is WOL (wake on LAN) enabled in BIOS/UEFI for both PCs ???

    PS: Updated the wiki article to use ‘dhcp-boot’ instead of ‘dhcp-option-force’ as I can’t think of why ‘dhcp-boot’ should not work for others as well. We’ll see. Please prove me wrong.


  • Developer

    @Wayne-Workman said:

    @Sebastian-Roth Is that for proxy mode or non-proxy mode?

    Quazz is right! Just for the records, definitely not in proxy mode as far as I know. Too bad.



  • I use fog trunk 6957 and Firmware: DD-WRT v24-sp2 (02/04/15) mega

    The log is (times are correct):

    Instant Task:

    1 active task waiting to wake up.
    [03-30-16 8:28:12 am] | Sending WOL Packet(s)
    [03-30-16 8:28:12 am] - Host: ERGASTIRIO WOL sent to all macs associated

    Scheduled Task:

    [03-30-16 8:31:12 am] * Task run time: Wed, 30 Mar 2016 08:31:00 +0300
    [03-30-16 8:31:12 am] * Found a task that should run…
    [03-30-16 8:31:12 am] - Is a host based task.
    [03-30-16 8:31:12 am] - Unicast task found!
    [03-30-16 8:31:12 am] - Host ERGASTIRIO
    [03-30-16 8:31:12 am] - Tasks started for host ERGASTIRIO!
    [03-30-16 8:32:12 am] * 1 active task waiting to wake up.
    [03-30-16 8:32:12 am] | Sending WOL Packet(s)
    [03-30-16 8:32:12 am] - Host: ERGASTIRIO WOL sent to all macs associated
    [03-30-16 8:32:12 am] * No tasks found!
    [03-30-16 8:33:12 am] * 1 active task waiting to wake up.
    [03-30-16 8:33:12 am] | Sending WOL Packet(s)
    [03-30-16 8:33:12 am] - Host: ERGASTIRIO WOL sent to all macs associated
    [03-30-16 8:33:13 am] * No tasks found!


  • Senior Developer

    @hariskar what’s the error you’re seeing with instant tasks? What about for scheduled tasks? Do they say there were started okay?


  • Moderator

    @Quazz I know, just was wanting to check if that fact has changed. Sebastian is always up to something.


  • Moderator

    @Wayne-Workman If I’m not mistaken matching doesn’t work in proxy mode (meaning BIOS + UEFI compatibility is not possible in dnsmasq)



  • Thank you Sebastian!
    There is big progress! :

    I opened both (UEFI, BIOS) PCs and got into PXE menu in both PCs. I successfully fully registered them both. With Host EFI Exit Type=REFIND_EFI UEFI PC goes into windows after PXE exit. BIOS PC goes into windows after PXE exit without putting something in Host Bios Exit Type.

    But there is still some problem: fog can not boot both PCs. Scheduled or instant tasks don’t start. Time is correct, I put local time in General Settings, I restarted fog scheduler with

    sudo service FOGScheduler restart
    

    but nothing happens.
    Thank you again!


  • Moderator

    @Sebastian-Roth Is that for proxy mode or non-proxy mode?


Log in to reply
 

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.