VMware
1 Replies Last post: Aug 1, 2008 11:33 AM by etung  

Minor bug in VMware Fusion B2 InstallationCheck script posted: Aug 1, 2008 7:51 AM

Click to view arang's profile Enthusiast 38 posts since
Feb 14, 2007
I noticed an error in console output after installing B2. I tracked it down to this line in the InstallationCheck script:

if [http:// sysctl -bn kern.boottime` -lt `stat -f %c /mach_kernel` |http:// sysctl -bn kern.boottime` -lt `stat -f %c /mach_kernel` ]; then


Using 'sysctl -bn' results in the value coming out as an 8-byte binary, rather than getting the time in seconds in ASCII, as the shell expects.

I don't know a really clean way to get the value desired, but something like

sysctl -n kern.boottime | awk '{ print $4 }' | cut -f 1 -d ,


works. (Yuck!)

P.S. If 'http' inserts itself one more time above, just remove it mentally. Neither 'noformat' nor 'code' seem to be helping me treat square brackets literally.
Click to view etung's profile Guru 11,094 posts since
Oct 15, 2006
What was the error? What version of OS X are you running?

P.S. If 'http' inserts itself one more time above, just remove it mentally. Neither 'noformat' nor 'code' seem to be helping me treat square brackets literally.

Yeah, I don't like the forums habit of over-formatting. Replacing '[' with '[' worked when I was writing up HOWTO: Run a Virtual Machine at Boot

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities