• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Windows 7 image on Hyper-v wont boot from ipxe

    Scheduled Pinned Locked Moved
    FOG Problems
    5
    24
    10.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jahilton2002
      last edited by

      Hi guys, I did a refresh install of 14.04.1/1.20 today.

      Thought i was on to much of a roll… all my clients boot to ipxe ok … i can upload download images fine… just one machine is giving me an issue… my primary windows image machine (typical).

      It’s a windows 7 image hosted on a Hyper-v r2 server. i get the following error. after some research it seems a few have had this issue.

      Any help or direction would be great. thanks

      [ATTACH=full]1393[/ATTACH]

      [url=“/_imported_xf_attachments/1/1393_Untitled.png?:”]Untitled.png[/url]

      1 Reply Last reply Reply Quote 0
      • JunkhackerJ
        Junkhacker Developer
        last edited by

        yes, a few have had this issue, and the fix is posted multiple times. comment out the console lines in the php file

        signature:
        Junkhacker
        We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

        1 Reply Last reply Reply Quote 0
        • J
          jahilton2002
          last edited by

          Hi,

          Thanks for the reply… is it this post you speak of?

          [quote=“netbootdisk, post: 32501, member: 5249”]Had the same problem with 1.1.2 and Hyper-V 2012R2.

          I just made the {fogwebdir}/lib/fog/BootMenu.class.php line 600 hack conditional…

          [PHP]
          if (substr($_REQUEST[‘mac’],0,8)==“00:15:5d”){
          print “# Hyper-V MAC address detected - no console background\n”;
          } else {
          print “console --picture $this->booturl/ipxe/bg.png --left 100 --right 80\n”;
          }
          [/PHP]

          [SIZE=13px][FONT=Tahoma][COLOR=#141414]…Now all users still see the corporate branded background - and I can still capture master images in Hyper V :)[/COLOR][/FONT][/SIZE][/quote][SIZE=13px][FONT=Tahoma][COLOR=#141414][/COLOR][/FONT][/SIZE]

          thanks again

          1 Reply Last reply Reply Quote 0
          • JunkhackerJ
            Junkhacker Developer
            last edited by

            that looks right

            signature:
            Junkhacker
            We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

            1 Reply Last reply Reply Quote 0
            • J
              jahilton2002
              last edited by

              thanks for your reply…looking at my [I][SIZE=12px]BootMenu.class.php file. l[/SIZE][/I][SIZE=12px]ine 600 looks nothing like the above… do you know what i should be changing from?[/SIZE]

              What should the code look like before i change it. Thanks again
              [I][SIZE=12px][/SIZE][/I]

              1 Reply Last reply Reply Quote 0
              • J
                jahilton2002
                last edited by

                I can’t seem to get this working…

                1 Reply Last reply Reply Quote 0
                • JunkhackerJ
                  Junkhacker Developer
                  last edited by

                  the line with "[COLOR=#007700][I][FONT=monospace]print [/FONT][/I][/COLOR][COLOR=#dd0000][I][FONT=monospace]“console --picture [/FONT][/I][/COLOR][COLOR=#0000bb][I][FONT=monospace]$this[/FONT][/I][/COLOR][COLOR=#007700][I][FONT=monospace]->[/FONT][/I][/COLOR][COLOR=#0000bb][I][FONT=monospace]booturl[/FONT][/I][/COLOR][COLOR=#dd0000][I][FONT=monospace]/ipxe/bg.png[/FONT][/I][/COLOR]” is your problem, it’s trying to bring up a console image, and hyper-v doesn’t seem to work properly for that. if you remove that line entirely, it will probably work for you. though, non of your computers will have the nice pretty boot menu anymore

                  signature:
                  Junkhacker
                  We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                  1 Reply Last reply Reply Quote 0
                  • J
                    jahilton2002
                    last edited by

                    I’ve made the below changes and my hyper-v ipxe is still unable to boot… i also tried to // the line also but it too didn’t have any effect.

                    thanks

                    ------------OLD-----------

                    print “#!ipxe\n”;
                    print “cpuid --ext 29 && set arch x86_64 || set arch i386\n”;
                    print “colour --rgb 0xff6600 2\n”;
                    print “cpair --foreground 7 --background 2 2\n”;
                    if (substr($_REQUEST[‘mac’],0,8)==“00:15:5d”){
                    print “# Hyper-V MAC address detected - no console background\n”;
                    } else {
                    print “console --picture $this->booturl/ipxe/bg.png --left 100 --right 80\n”;
                    if (!$this->hiddenmenu)
                    {
                    $showDebug = $_REQUEST[“debug”] === “1”;
                    print “:MENU\n”;
                    print “menu\n”;
                    // Checks if the host is registered or not.
                    // Displays the Host name if it is, otherwise
                    // Tells the user it’s not registered.
                    if ($this->Host && $this->Host->isValid()

                    --------------new------------

                    print “#!ipxe\n”;
                    print “cpuid --ext 29 && set arch x86_64 || set arch i386\n”;
                    print “colour --rgb 0xff6600 2\n”;
                    print “cpair --foreground 7 --background 2 2\n”;
                    if (substr($_REQUEST[‘mac’],0,8)==“00:15:5d”){
                    print “# Hyper-V MAC address detected - no console background\n”;
                    } else {
                    if (!$this->hiddenmenu)
                    {
                    $showDebug = $_REQUEST[“debug”] === “1”;
                    print “:MENU\n”;
                    print “menu\n”;
                    // Checks if the host is registered or not.
                    // Displays the Host name if it is, otherwise
                    // Tells the user it’s not registered.
                    if ($this->Host && $this->Host->isValid()

                    1 Reply Last reply Reply Quote 0
                    • J
                      jahilton2002
                      last edited by

                      i have this at the momment;

                      print “#!ipxe\n”;
                      print “cpuid --ext 29 && set arch x86_64 || set arch i386\n”;
                      print “colour --rgb 0xff6600 2\n”;
                      print “cpair --foreground 7 --background 2 2\n”;
                      [B]//print “console --picture $this->booturl/ipxe/bg.png --left 100 --right 80\n”;[/B]
                      } else {
                      if (!$this->hiddenmenu)
                      {
                      $showDebug = $_REQUEST[“debug”] === “1”;
                      print “:MENU\n”;
                      print “menu\n”;
                      // Checks if the host is registered or not.
                      // Displays the Host name if it is, otherwise
                      // Tells the user it’s not registered.
                      if ($this->Host && $this->Host->isValid()

                      1 Reply Last reply Reply Quote 0
                      • J
                        jahilton2002
                        last edited by

                        Sorry just an update…got this working using the above post#9

                        thanks for all your help

                        [ATTACH=full]1395[/ATTACH]

                        [url=“/_imported_xf_attachments/1/1395_Capture.PNG?:”]Capture.PNG[/url]

                        1 Reply Last reply Reply Quote 0
                        • J
                          jahilton2002
                          last edited by

                          I’m pulling my hair out now, as i had it working!.. i had to do a reinstall of fog as i started to get odd errors… im back to square one again now. Hyper-v wont boot to ipxe… i’ve tried to re enter my settings as in post 9# and after a restart. it nolonger works…

                          i’ve restored the menuboot.class.php to the default settings…(as below) any ideas?

                          [CODE]

                              print "#!ipxe\n";
                              print "cpuid --ext 29 && set arch x86_64 || set arch i386\n";
                              print "colour --rgb 0xff6600 2\n";
                              print "cpair --foreground 7 --background 2 2\n";
                              if (substr($_REQUEST['mac'],0,8)=="00:15:5d"){
                                              print "# Hyper-V MAC address detected - no console background\n";
                                      } else  {
                                              print "console --picture $this->booturl/ipxe/bg.png --left 100 --right 80\n";
                              if (!$this->hiddenmenu)
                              {
                                  $showDebug = $_REQUEST["debug"] === "1";
                                  print ":MENU\n";
                                  print "menu\n";
                          

                          [/CODE]

                          1 Reply Last reply Reply Quote 0
                          • Tom ElliottT
                            Tom Elliott
                            last edited by

                            Did you literally restore the file as menuboot.class.php?

                            It’s name should be BootMenu.class.php (case important.)

                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                            1 Reply Last reply Reply Quote 0
                            • J
                              jahilton2002
                              last edited by

                              sorry, thats a typo on my part…BootMenu.class.php is what was restored. thanks

                              1 Reply Last reply Reply Quote 0
                              • J
                                jahilton2002
                                last edited by

                                any recommendations.

                                1 Reply Last reply Reply Quote 0
                                • B
                                  BPSTravis Developer
                                  last edited by

                                  Can you walk us trough exactly what you get now? Does it grab an IP to PXE to, does anything from fog show up, does it retrieve the init.xz or the bzimage file?

                                  [SIZE=12px]signature:[/SIZE]
                                  [QUOTE]I think I know things, but I really don't. You shouldn't follow any advice I give. - BPSTravis[/QUOTE]

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    jahilton2002
                                    last edited by

                                    Hi thanks for your reply… it looks just like it does now in post #1… that’s my hyper-v windows 7 machine… all other physical clients are unaffected

                                    thanks

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      BPSTravis Developer
                                      last edited by

                                      Ok, did you comment out this line as you did before?

                                      [QUOTE][B]//print “console --picture $this->booturl/ipxe/bg.png --left 100 --right 80\n”[/B][/QUOTE]

                                      [QUOTE]sorry, thats a typo on my part…BootMenu.class.php is what was restored. thanks[/QUOTE]
                                      By restored i’m assuming you put the default menu back in.

                                      [SIZE=12px]signature:[/SIZE]
                                      [QUOTE]I think I know things, but I really don't. You shouldn't follow any advice I give. - BPSTravis[/QUOTE]

                                      1 Reply Last reply Reply Quote 0
                                      • J
                                        jahilton2002
                                        last edited by

                                        Thank you for looking into this.

                                        And yes sir. [B][I][SIZE=12px]//print “console --picture $this->booturl/ipxe/bg.png --left 100 --right 80\n” [/SIZE][/I][/B][I][SIZE=12px]in place[/SIZE][/I]

                                        and yes the default file was put back in place.

                                        1 Reply Last reply Reply Quote 0
                                        • Tom ElliottT
                                          Tom Elliott
                                          last edited by

                                          If you want,

                                          You can try the lastest svn too.

                                          Since 1.2.0 I’ve learned how to test whether the console part will operate or not and adjust the screen accordingly.

                                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                          1 Reply Last reply Reply Quote 0
                                          • J
                                            jahilton2002
                                            last edited by

                                            Did a fresh reinstall of 14.01.1 today…aswell as fog 1.2.0… commentied the line out of BootMenu.class.php.

                                            [B][I][SIZE=12px]//print “console --picture $this->booturl/ipxe/bg.png --left 100 --right 80\n”[/SIZE][/I][/B]

                                            [SIZE=12px]s[/SIZE][SIZE=12px]till the same as post #1 nothing to do with having teamed network cards?[/SIZE]

                                            [SIZE=12px]When i installed fog… i changed from “eth0” to “bond0”[/SIZE]

                                            [SIZE=12px]all clients boot to ipxe fine… hyper-v boots to ipxe but fails to load the bg. as in post one.[/SIZE]

                                            [SIZE=12px]i’m stumped.[/SIZE][SIZE=12px] [/SIZE]

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            158

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project