SVN 3125 & Hyper-V 2012 R2



  • – svn: 3125
    – Kernel: 3.19.1
    – iPXE: 1.0.0+ (acc27)

    I am unable to “Quick Register” or “Full Register” a Hyper-V 2012 R2 Generation 1 VM with FOG SVN 3125.

    Quick Register sticks at “Attempting to register host …” plus slowly creeping CR+LF

    Full Register throws up this:

    Unable to register host for the following reasons:

    BUG: using smp_processor_id() in preemptible [00000000] code: hdparm/2312
    SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 … more 00
    HDIO_GET_IDENTITY failed: Invalid argument

    System Information: … lots of info …
    BIOS Information: … lots of info …
    Motherboard Information: … lots of info …

    Then the screen clears and fills with a column of “None” and continues with Memory Info, then [B]Hard Disk: with no information attached[/B], then Case information.

    Then it too sticks at “Attempting to register host …” plus slowly creeping CR+LF

    The VM passes the Compatibility check.

    I have verified that Quick and Full work on physical machines.

    Concurrently, not seeing the HD prevents uploading even if I manually create the host in FOG.

    I’m going to try 3127 now.




  • Moderator

    @sudburr said:

    Why does 3.18.5 work with either both connected or just the Legacy connected? … while 4.1.4 requires that both be connected?

    Who cares, it works??? lol. Stop making our brains hurt and just enjoy the victory :-p



  • Good news everyone! Now it’s my turn to be called an idiot… maybe :smiley:

    When FOG came in as our deployment solution I also quickly ramped up through server revisions (core and gui) to our current 2012 R2u1 and Hyper-V. My initial tests with Fog 0.29 with whichever version of Hyper-V it was at the time, showed that I couldn’t PXE boot properly unless I disconnected the Ethernet adapter from the Virtual Switch, leaving the Legacy Adapter connected alone. One or the other could be connected, but not both at the same time.

    Annoying, but the workaround … worked; albeit at 100Mb.

    I couldn’t sleep tonight (yep, it’s 2am) so I tried something other than Quick or Full Reg; I tried a Quick Image on the Hyper-V VM. This option didn’t exist on FOG way back in 0.29 or so. I expected Quick Image to fail with what appeared to be a controller /sda no hard drive and unable to register error that appeared when attempting Quick or Full Registration. This time though, I got an adapter error.

    How can this be? I can PXE boot. The Legacy adapter is obviously working.

    I double checked the VM. Yep, Legacy is connected, and the ‘Ethernet’ (synthetic) is disconnected.

    Hmm … so I reconnected the VM’s main ‘Ethernet’ adapter to the same virtual switch as the Legacy adapter, so both were connected at once and tried again.

    The bloody thing works. :astonished:

    I’m glad it works but riddle me this batman. Why does 3.18.5 work with either both connected or just the Legacy connected? … while 4.1.4 requires that both be connected?



  • Updating my Development Fog:

    – GIT 4367 aka SVN 3868
    – Kernel: 4.1.4
    – iPXE: 1.0.0+ ( 989f )

    The problem persists as described at the top of this thread for the Hyper-V 2012 R2 client.

    Reverting to Kernel 3.18.5 .

    I’ve uploaded some pics and vids of what happens



  • Meanwhile, updating my Development Fog

    – svn: 3477 – Kernel: 4.0.4
    – iPXE: 1.0.0+ ( 15759 )

    The problem persists as described at the top of this thread for the Hyper-V 2012 R2 client.

    Reverting to Kernel 3.18.5 .


  • Senior Developer

    @sudburr I don’t know exactly what’s causing the problem in the future kernels. Tie that into the fact that not a whole log changed from moving to 3.19.* from 3.18.*. If you would like to see if there’s more, you could try building your own kernels. Of course, I ask if you can, if you figure it out, please let me and/or the community know what had to happen.

    Here’s a link that should at least help you with getting started: https://wiki.fogproject.org/wiki/index.php/Build_TomElliott_Kernel.

    During the

    make menuconfig
    

    or

    make ARCH=i386 menuconfig
    

    phases, check out the options and try to remember what you’ve changed or whatever.

    I do know it’s a bit of work but I haven’t had any in finding a working option for you.


  • Moderator

    Not yet… sorry.

    I’ll try to get to it on Tuesday. It should be pretty easy to test though.

    I’ve got a lot of irons in the fire at work right now.



  • @Wayne-Workman said:

    I’m going to try to network boot a Hyper-V win7 just to see what happens…
    I’ll attempt to register and upload an image.

    Have you had a chance to test yet Wayne?



  • Updating my Development Fog

    – svn: [B]3385[/B] – Kernel: [B]4.0.2[/B]
    – iPXE: 1.0.0+ ( [B]86aa[/B] )

    The problem persists as described at the top of this thread for the Hyper-V 2012 R2 client.

    Reverting to [B]Kernel: 3.18.5 .[/B]



  • Okay, we’re back to the original problem.

    Reverting to [B]Kernel: 3.18.5 .[/B]



  • Hehe … doing that.



  • Actually … it looks like the problem may be svn 3373. Reverting to 3.18.5 does not fix the new errors.


  • Senior Developer

    it’s not the kernel.

    Update again.



  • – svn: 3373
    [B]-- Kernel: 4.0.1[/B]
    – iPXE: 1.0.0+ (50e7)

    New msg for Quick Registration!
    [CODE]

    Starting sshd: OK
    /bin/fog.auto.reg: line 5: displayBanner: command not found
    /bin/fog.auto.reg: line 7: getHardDisk: command not found

    hard disk not found!
    reboot: Restarting system

    [/CODE]

    New msg for Full Registration!
    [CODE]
    Starting sshd: OK
    /usr/share/fog/lib/funcs.sh: line 457: syntax error near unexpected token fi' /usr/share/fog/lib/funcs.sh: line 457: fi’
    /usr/share/fog/lib/funcs.sh: line 457: syntax error near unexpected token fi' /usr/share/fog/lib/funcs.sh: line 457: fi’
    /bin/fog.man.reg: line 4: clearScreen: command not found
    /bin/fog.man.reg: line 5: displayBanner: command not found
    /bin/fog.man.reg: line 7: getHardDisk: command not found

    hard disk not found!
    reboot: Restarting system
    [/CODE]

    Reverting to [B]Kernel: 3.18.5 .[/B]
    [B][/B]



  • Updating my Development Fog

    – svn: [B]3315[/B]
    – Kernel: [B]4.0.0[/B]
    – iPXE: 1.0.0+ ( [B]a25a[/B] )

    The problem persists as described at the top of this thread for the Hyper-V 2012 R2 client.

    Reverting to [B]Kernel: 3.18.5 .[/B]



  • Bingo! Now we’re cookin’ with gas.

    Thank you!

    We now return to our regularly scheduled thread on Hyper-V 2012 R2 …

    Now… what exactly would you like me to do to try and generate some new info on kernels above 3.18.5 not liking Hyper-V 2012 clients?


  • Senior Developer

    Can you run php5enmod mcrypt
    Then restart Apache?



  • Same Apache error … and a reboot later, same error.


  • Senior Developer

    I’m not always perfect, sorry.

    [code]sudo apt-get install --reinstall php5-mcrypt[/code]


Log in to reply
 

426
Online

38951
Users

10701
Topics

101530
Posts

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