Parted Magic not working in pxe boot



  • followed the instructions found here:
    https://wiki.fogproject.org/wiki/index.php?title=Include_any_ISO_in_the_FOG_Bootmenu

    Parted Magic will not boot:

    http://x.x.x.x/pmagic/bzImage64 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Connection reset (http://ipxe.org/0f0a6039)
    Could not boot: Connection reset (http://ipxe.org/f0a6039)
    Could not boot: Connection reset (http://ipxe.org/f0a6039)

    I am able to register hosts as well as capture and deploy Images. Can anyone help me understand what the problem is?

    my files are stored like this:

    root@FOG:/var/www/html/pmagic# ls
    bzImage64 files.cgz fu.img initrd.img m32.img m64.img


  • Developer

    After some more debugging I found that the redirection loop is not caused by the apache rewrite rules but by /var/www/fog/api/index.php and those included by that PHP file. Maybe this is because we don’t supply correct parameters?! Would be nice if it wouldn’t redirect in an endless loop.

    @Dino_Nerd I think you can re-add the RewriteRule ^/(.*)$ /fog/api/index.php [QSA,L] in your 001-fog.conf and still should be able to access and boot http://192.168.0.143/pmagic/bzImage64 if that folder is in /var/www!!

    Note to myself: Accessing directories (like http://192.168.0.143/pmagic/) does not work albeit the second RewriteCond because DirectoryIndex setting makes it request index.html in that directory, which usually does not exist. Therefore again redirecting it to /fog/api/index.php


  • Moderator

    @george1421 said in Parted Magic not working in pxe boot:

    Your document root for debian/ubuntu should be /var/www not /var/www/html (but I’m a rhel guy, so I’m not absolutely sure)

    /var/www/html is valid for Debian 8.


  • Moderator


  • Developer

    @Dino_Nerd @george1421 I am still wondering about this. Just found out that it is doing this (redirect loop) on a clean fresh install on debian too. Just didn’t see this on my home FOG server where I customize most configs.

    Disabling the redirection rule is fine in this case but I ought to find a general solution for this. When looking at the HTTP traffic I see a HTTP 302 answer with a Location header but the value is empty! I am wondering if this is a ubuntu/debian specific thing or if we have this with RHEL/CentOS as well?



  • @george1421 said in Parted Magic not working in pxe boot:

    @Dino_Nerd I can’t say for sure. By default when you create a vm its bios/legacy mode. I can’t see why it wouldn’t. EFI mode under virtual box is a bit wonky, but VMWare esxi or workstation should be OK. You’ll know right away if it will work or not because centos won’t boot if its wrong.

    I’ll start a new thread when I hit the roadblock I was getting before, thanks so much for your help


  • Moderator

    @Dino_Nerd I can’t say for sure. By default when you create a vm its bios/legacy mode. I can’t see why it wouldn’t. EFI mode under virtual box is a bit wonky, but VMWare esxi or workstation should be OK. You’ll know right away if it will work or not because centos won’t boot if its wrong.

    No advantage for efi. GPT yes if you need really big drives.



  • @george1421 said in Parted Magic not working in pxe boot:

    @Dino_Nerd Centos 7.x and 6.5+ work with FOG. That is what we run on our campus. This IS a current issue with centos 7 in that a defective rpcinfo rpm was released. I believe they just update that in the repo. But other than that, fog works perfectly on cento 7.

    Any idea if it works as a UEFI booted VMWare workstation Virtual machine?
    Is there any advantage to using UEFI over BIOS for a FOG server?


  • Moderator

    @Dino_Nerd Centos 7.x and 6.5+ work with FOG. That is what we run on our campus. This IS a current issue with centos 7 in that a defective rpcinfo rpm was released. I believe they just update that in the repo. But other than that, fog works perfectly on cento 7.



  • @george1421 said in Parted Magic not working in pxe boot:

    @Dino_Nerd key in the following command.

    cp /var/www/html/pmagic /var/www

    Then ls -la /var/www and ensure there is a pmagic directory there.

    Hey that works wonderfully! Thanks a bunch

    Your document root for debian/ubuntu should be /var/www not /var/www/html

    Maybe this should be updated in the wiki as an ubuntu method

    (but I’m a rhel guy, so I’m not absolutely sure)

    I’m a big fan of RHEL myself (also archlinux). maybe you can help me on a new topic trying to get CentOS to play ball with FOG? (I’ll create a new thread for this)


  • Moderator

    @Dino_Nerd key in the following command.

    cp /var/www/html/pmagic /var/www

    Then ls -la /var/www and ensure there is a pmagic directory there.

    Your document root for debian/ubuntu should be /var/www not /var/www/html (but I’m a rhel guy, so I’m not absolutely sure)



  • @george1421
    0_1497979084751_bandicam 2017-06-20 12-17-53-047.jpg

    not that I can see, I hope im in the right place here


  • Moderator

    @george1421 looking at your configs I see a conflict.

    There is /var/www/html/fog and /var/www/fog I’m wondering if the right path for your partition magic files shouldn’t be /var/www/pmagic I’m pretty sure debian variants use /var/www as the document root where rhel based ones use /var/www/html.


  • Moderator

    @Dino_Nerd Well the default was as you had it originally with the redirect in there.

    Is there any hidden .htaccess files in the root directory? hint: ls -la /var/www/html


  • Moderator

    @Dino_Nerd ok fixed no more redirect message…

    next??

    just a minute let me look at what a default one should be.




  • Moderator

    @Dino_Nerd I’m not current with all that apache redirect stuff, but I think this line is your bad guy

    RewriteRule ^/(.*)$ /fog/api/index.php
    

    Remove that from 001-fog.conf and restart apache again. Lets see if the extra files can download now



  • @Sebastian-Roth said in Parted Magic not working in pxe boot:

    @Dino_Nerd So what happens when you open this URL in your browser: http://192.168.0.143/pmagic/bzImage64

    While you access the URL please watch your apache access log.

    0_1497976850804_bandicam 2017-06-20 11-20-54-501.jpg

    site looks like this
    0_1497976870898_bandicam 2017-06-20 11-19-54-452.jpg

    Before
    0_1497975889654_bandicam 2017-06-20 11-24-28-036.jpg

    After
    0_1497975930591_bandicam 2017-06-20 11-24-28-036.jpg

    Testing 001-fog.conf you posted I get an error starting apache. It should be <VirtualHost *:80> instead of <VirtualHost :80>. Did you copy&paste or is this a typo?

    0_1497976000288_bandicam 2017-06-20 11-17-48-094.jpg
    I didn’t type it. I think a problem with the text in this reply box makes * start italics

    I still can’t see why you would have a redirect loop there. Please post the content of /etc/apache2/sites-available/000-default.conf as well. Did you modify any of the apache configs by hand? Did you add htaccess files by hand?

    0_1497976267170_bandicam 2017-06-20 11-18-30-228.jpg

    No I didn’t add htaccess files by hand

    As well please post the output of ls -al /var/www/html /var/www/html/pmagic

    0_1497976157585_bandicam 2017-06-20 11-16-54-571.jpg

    I’d also like to troubleshoot a CentOS 7.3 VM (VMWare Workstation) that doesn’t seem to be working properly with FOG if you guys don’t mind.

    Feel free to open a new topic on that. Better to not mix up things in one topic!!

    alt text


  • Developer

    @Dino_Nerd So what happens when you open this URL in your browser: http://192.168.0.143/pmagic/bzImage64

    While you access the URL please watch your apache access log.

    Testing 001-fog.conf you posted I get an error starting apache. It should be <VirtualHost *:80> instead of <VirtualHost :80>. Did you copy&paste or is this a typo?

    I still can’t see why you would have a redirect loop there. Please post the content of /etc/apache2/sites-available/000-default.conf as well. Did you modify any of the apache configs by hand? Did you add htaccess files by hand?

    As well please post the output of ls -al /var/www/html /var/www/html/pmagic

    I’d also like to troubleshoot a CentOS 7.3 VM (VMWare Workstation) that doesn’t seem to be working properly with FOG if you guys don’t mind.

    Feel free to open a new topic on that. Better to not mix up things in one topic!!



  • @Sebastian-Roth

    FOG running version: 1.4.3
    SVN Revision: 6075

    root@FOG:~# uname -r

    4.4.0-79-generic

    root@FOG:~# lsb_release -a

    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: UBUNTU 16.04.2 LTS
    Release: 16.04
    Codename: xenial

    root@FOG:/etc/apache2/sites-available# nano 001-fog.conf

    NameVirtualHost *:80
    <VirtualHost :80>
    KeepAlive Off
    ServerName 192.168.0.143
    DocumentRoot /var/www/
    <Directory /var/www/fog/>
    DirectoryIndex index.php index.html index.htm
    </Directory>
    RewriteEngine On
    RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
    RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d
    RewriteRule ^/(.
    )$ /fog/api/index.php [QSA,L]
    </VirtualHost>

    root@FOG:/var/log/apache2# nano error.log

    [Mon Jun 19 09:17:16.292436 2017] [mpm_prefork:notice] [pid 1209] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2l configured – resuming normal operations
    [Mon Jun 19 09:17:16.292451 2017] [core:notice] [pid 1209] AH00094: Command line: ‘/usr/sbin/apache2’
    [Mon Jun 19 13:44:43.954922 2017] [mpm_prefork:notice] [pid 1209] AH00169: caught SIGTERM, shutting down
    [Mon Jun 19 13:44:55.550517 2017] [mpm_prefork:notice] [pid 1092] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2l configured – resuming normal operations
    [Mon Jun 19 13:44:55.552045 2017] [core:notice] [pid 1092] AH00094: Command line: ‘/usr/sbin/apache2’
    [Mon Jun 19 17:19:02.054018 2017] [mpm_prefork:notice] [pid 1140] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2l configured – resuming normal operations
    [Mon Jun 19 17:19:02.066832 2017] [core:notice] [pid 1140] AH00094: Command line: ‘/usr/sbin/apache2’
    [Mon Jun 19 21:27:23.219002 2017] [mpm_prefork:notice] [pid 1116] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2l configured – resuming normal operations
    [Mon Jun 19 21:27:23.219438 2017] [core:notice] [pid 1116] AH00094: Command line: ‘/usr/sbin/apache2’

    root@FOG:/var/log/apache2# nano error.log.1

    [Sat Jun 17 11:44:16.537051 2017] [mpm_event:notice] [pid 13072:tid 140127938316160] AH00489: Apache/2.4.25 (Ubuntu) configured – resuming normal operations
    [Sat Jun 17 11:44:16.537105 2017] [core:notice] [pid 13072:tid 140127938316160] AH00094: Command line: ‘/usr/sbin/apache2’
    [Sat Jun 17 11:44:41.717188 2017] [mpm_event:notice] [pid 13072:tid 140127938316160] AH00491: caught SIGTERM, shutting down
    [Sat Jun 17 11:44:41.773329 2017] [mpm_prefork:notice] [pid 22095] AH00163: Apache/2.4.25 (Ubuntu) configured – resuming normal operations
    [Sat Jun 17 11:44:41.773379 2017] [core:notice] [pid 22095] AH00094: Command line: ‘/usr/sbin/apache2’
    [Sat Jun 17 11:44:41.964409 2017] [mpm_prefork:notice] [pid 22095] AH00169: caught SIGTERM, shutting down
    [Sat Jun 17 11:44:42.027780 2017] [mpm_prefork:notice] [pid 22169] AH00163: Apache/2.4.25 (Ubuntu) configured – resuming normal operations
    [Sat Jun 17 11:44:42.027811 2017] [core:notice] [pid 22169] AH00094: Command line: ‘/usr/sbin/apache2’
    [Sat Jun 17 11:53:00.763519 2017] [mpm_prefork:notice] [pid 22169] AH00169: caught SIGTERM, shutting down
    [Sat Jun 17 11:58:42.179445 2017] [mpm_prefork:notice] [pid 102051] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2l configured – resuming normal operations
    [Sat Jun 17 11:58:42.179483 2017] [core:notice] [pid 102051] AH00094: Command line: ‘/usr/sbin/apache2’
    [Sat Jun 17 12:01:48.271475 2017] [mpm_prefork:notice] [pid 102051] AH00169: caught SIGTERM, shutting down
    [Sat Jun 17 12:01:59.407149 2017] [mpm_prefork:notice] [pid 1230] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2l configured – resuming normal operations
    [Sat Jun 17 12:01:59.415165 2017] [core:notice] [pid 1230] AH00094: Command line: ‘/usr/sbin/apache2’
    [Sat Jun 17 16:10:29.707087 2017] [php7:warn] [pid 1249] [client 192.168.0.146:42208] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:10:33.118839 2017] [php7:warn] [pid 1253] [client 192.168.0.146:42210] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:10:36.416152 2017] [php7:warn] [pid 2542] [client 192.168.0.146:42212] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:10:39.452646 2017] [php7:warn] [pid 1250] [client 192.168.0.146:42214] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:10:42.905237 2017] [php7:warn] [pid 1256] [client 192.168.0.146:42216] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:10:45.905132 2017] [php7:warn] [pid 1255] [client 192.168.0.146:42218] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:10:49.312579 2017] [php7:warn] [pid 15480] [client 192.168.0.146:42220] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:10:52.468705 2017] [php7:warn] [pid 16253] [client 192.168.0.146:42222] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:10:55.706956 2017] [php7:warn] [pid 1253] [client 192.168.0.146:42224] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:10:59.020729 2017] [php7:warn] [pid 2542] [client 192.168.0.146:42226] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:11:02.882915 2017] [php7:warn] [pid 1250] [client 192.168.0.146:42228] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:18:26.338430 2017] [php7:warn] [pid 1256] [client 192.168.0.146:40594] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:18:29.232184 2017] [php7:warn] [pid 1255] [client 192.168.0.146:40596] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:18:33.203074 2017] [php7:warn] [pid 15480] [client 192.168.0.146:40598] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:18:36.723317 2017] [php7:warn] [pid 1249] [client 192.168.0.146:40600] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:18:40.655149 2017] [php7:warn] [pid 16253] [client 192.168.0.146:40602] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:18:43.805029 2017] [php7:warn] [pid 1253] [client 192.168.0.146:40604] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:18:47.168462 2017] [php7:warn] [pid 2542] [client 192.168.0.146:40606] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:18:50.946440 2017] [php7:warn] [pid 1250] [client 192.168.0.146:40608] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:18:53.940167 2017] [php7:warn] [pid 1255] [client 192.168.0.146:40610] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:18:58.013875 2017] [php7:warn] [pid 15480] [client 192.168.0.146:40612] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:19:01.297679 2017] [php7:warn] [pid 1249] [client 192.168.0.146:40614] PHP Warning: ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463
    [Sat Jun 17 16:37:22.460841 2017] [mpm_prefork:notice] [pid 1230] AH00169: caught SIGTERM, shutting down
    [Sat Jun 17 16:37:32.243429 2017] [mpm_prefork:notice] [pid 1205] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2l configured – resuming normal operations
    [Sat Jun 17 16:37:32.244688 2017] [core:notice] [pid 1205] AH00094: Command line: ‘/usr/sbin/apache2’
    [Sat Jun 17 16:46:31.856588 2017] [php7:warn] [pid 1297] [client 192.168.0.146:55170] PHP Warning: ftp_chmod(): SITE CHMOD command failed. in /var/www/fog/lib/fog/fogftp.class.php on line 136
    [Sat Jun 17 17:11:03.366251 2017] [mpm_prefork:notice] [pid 1205] AH00169: caught SIGTERM, shutting down
    [Sat Jun 17 17:11:27.278825 2017] [mpm_prefork:notice] [pid 1170] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2l configured – resuming normal operations
    [Sat Jun 17 17:11:27.279316 2017] [core:notice] [pid 1170] AH00094: Command line: ‘/usr/sbin/apache2’
    [Sat Jun 17 19:11:25.128717 2017] [php7:warn] [pid 1177] [client 192.168.0.127:43558] PHP Warning: ftp_chmod(): SITE CHMOD command failed. in /var/www/fog/lib/fog/fogftp.class.php on line 136
    [Sat Jun 17 19:42:44.068262 2017] [mpm_prefork:notice] [pid 1170] AH00169: caught SIGTERM, shutting down
    [Sat Jun 17 19:43:13.649923 2017] [mpm_prefork:notice] [pid 1138] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2l configured – resuming normal operations
    [Sat Jun 17 19:43:13.674419 2017] [core:notice] [pid 1138] AH00094: Command line: ‘/usr/sbin/apache2’
    [Sat Jun 17 20:10:19.437030 2017] [mpm_prefork:notice] [pid 1138] AH00169: caught SIGTERM, shutting down
    [Sat Jun 17 20:10:29.718667 2017] [mpm_prefork:notice] [pid 1100] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2l configured – resuming normal operations
    [Sat Jun 17 20:10:29.727040 2017] [core:notice] [pid 1100] AH00094: Command line: ‘/usr/sbin/apache2’
    [Sat Jun 17 20:22:09.734429 2017] [mpm_prefork:notice] [pid 1100] AH00169: caught SIGTERM, shutting down
    [Sat Jun 17 20:22:19.519622 2017] [mpm_prefork:notice] [pid 1079] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2l configured – resuming normal operations
    [Sat Jun 17 20:22:19.520435 2017] [core:notice] [pid 1079] AH00094: Command line: ‘/usr/sbin/apache2’
    [Sun Jun 18 00:16:06.807729 2017] [mpm_prefork:notice] [pid 1079] AH00169: caught SIGTERM, shutting down
    [Sun Jun 18 11:05:00.695590 2017] [mpm_prefork:notice] [pid 1144] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2l configured – resuming normal operations
    [Sun Jun 18 11:05:00.696140 2017] [core:notice] [pid 1144] AH00094: Command line: ‘/usr/sbin/apache2’
    [Sun Jun 18 11:44:49.941052 2017] [mpm_prefork:notice] [pid 1144] AH00169: caught SIGTERM, shutting down
    [Sun Jun 18 11:45:00.599507 2017] [mpm_prefork:notice] [pid 1098] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2l configured – resuming normal operations
    [Sun Jun 18 11:45:00.600761 2017] [core:notice] [pid 1098] AH00094: Command line: ‘/usr/sbin/apache2’
    [Sun Jun 18 16:50:07.931877 2017] [php7:warn] [pid 1896] [client 192.168.0.129:49388] PHP Warning: ftp_chmod(): SITE CHMOD command failed. in /var/www/fog/lib/fog/fogftp.class.php on line 136
    [Sun Jun 18 17:21:36.499328 2017] [php7:warn] [pid 1930] [client 192.168.0.148:39588] PHP Warning: ftp_chmod(): SITE CHMOD command failed. in /var/www/fog/lib/fog/fogftp.class.php on line 136
    [Mon Jun 19 09:12:18.500072 2017] [mpm_prefork:notice] [pid 1209] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2l configured – resuming normal operations
    [Mon Jun 19 09:12:18.500302 2017] [core:notice] [pid 1209] AH00094: Command line: ‘/usr/sbin/apache2’
    [Mon Jun 19 09:17:16.251711 2017] [mpm_prefork:notice] [pid 1209] AH00171: Graceful restart requested, doing restart
    AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this message

    root@FOG:~# cd /etc/httpd

    -bash: cd: /etc/httpd: No such file or directory

    That’s all the relevant information I could find, if there’s somewhere else I should check let me know.
    I’d also like to troubleshoot a CentOS 7.3 VM (VMWare Workstation) that doesn’t seem to be working properly with FOG if you guys don’t mind.
    Thanks so much for helping me out with this stuff.


Log in to reply
 

356
Online

39.3k
Users

11.0k
Topics

104.4k
Posts

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