VMware optimalisation lost on upgrade.



  • During install when on VMware, a file is written (/var/IS_VMWARE) to the filesystem.
    Based on this file 2 special VMware tweaks are made:
    /etc/sysctl.conf:        -> kern.timecounter.hardware=i8254
    /mnt/boot/loader.conf  -> kern.hz="100"

    # If the platform is vmware, lets do some fixups.
    if [ -f /var/IS_VMWARE ]; then echo "" >> /mnt/etc/sysctl.conf; echo "kern.timecounter.hardware=i8254" >> /mnt/etc/sysctl.conf;  echo kern.hz="100" >> /mnt/boot/loader.conf; fi;
    
    

    But after an update only the tweak for loader.conf is still there, the sysctrl.conf tweak is lost.
    Anyone else having this?

    thx,
    Bas



  • I installed "2.0-BETA5 (amd64) built on Sun Feb 6 07:01:51 EST 2011" as guest in vmware player 3.1.3 with Windows 7 x64 host.

    • /var/IS_VMWARE exists

    • /etc/sysctl.conf contains  kern.timecounter.hardware=i8254

    • /boot/loader.conf contains kern.hz="100"

    You might want to mention the exact version you installed. Just cut/paste from Status->Dashboard page.



  • @salvor:

    I installed "2.0-BETA5 (amd64) built on Sun Feb 6 07:01:51 EST 2011" as guest in vmware player 3.1.3 with Windows 7 x64 host.

    • /var/IS_VMWARE exists

    • /etc/sysctl.conf contains  kern.timecounter.hardware=i8254

    • /boot/loader.conf contains kern.hz="100"

    You might want to mention the exact version you installed. Just cut/paste from Status->Dashboard page.

    Please read carefully.
    After install everything indeed is OK, as i mentioned in my first post. But when you do an upgrade after the first install, the sysctl.conf option is gone.
    Please try that.



  • @GrandmasterB:

    @salvor:

    I installed "2.0-BETA5 (amd64) built on Sun Feb 6 07:01:51 EST 2011" as guest in vmware player 3.1.3 with Windows 7 x64 host.

    • /var/IS_VMWARE exists

    • /etc/sysctl.conf contains  kern.timecounter.hardware=i8254

    • /boot/loader.conf contains kern.hz="100"

    You might want to mention the exact version you installed. Just cut/paste from Status->Dashboard page.

    Please read carefully.
    After install everything indeed is OK, as i mentioned in my first post. But when you do an upgrade after the first install, the sysctl.conf option is gone.
    Please try that.

    Sorry I misunderstood what you meant by upgrade (I thought you replaced 1.2.3 with 2.0-BETA5.)

    I remember after updating to Feb 5 version from Feb 2 version, the console would get stuck before showing the menu.  And rebooting with extra logging enabled showed t_delta too long and t_delta too short messages.  Installing from scratch made the console get unstuck.  Maybe this is related?  I was going to try updating to see if I could reproduce your problem, but the snapshot server is down.


Log in to reply