Tag Archive: OS X


I powered up a new ESX host and enabled passthrough. This got me a bit further:

I thought it had hung here but patience paid off and the installer booted:

Damn- the keyboard/mouse doesn’t work (the pointer was moving around but I couldn’t click anything). Again- patience paid off and eventually it automatically moved on to the next step:

No target disks were listed when I chose to "Reinstall OS X". I went in to Disk Utility to investigate:

Damn. I tried using both IDE and SCSI disks in ESX but neither appear.

No doubt I’ll try some other ideas at a later date. I have a feeling I need to replace a .kext file on the install disc.

L

No success unfortunately- although I’m not overly fussed about getting it to work- just fancied a try.

ESX 5:

VirtulBox:

Again, getting stuck on "Still waiting for root device".

This was mounting the iso or trying client dvd drive. I can’t take ESX offline at the moment to reboot and enable USB passthrough.

If I get an opportunity to bring my other ESX host up sometime I’ll give it another go.

L

Busy busy busy

Unfortunately I’ve been very busy with work so little time for blogging. Just a few little bits:

Problem Steps Recorder

A colleague told me about this recently. A new tool available in Windows 7 designed to record steps to recreate problems- you can then send the output to support desks etc who can analyse the output.

You can access PSR (Problem Steps Recorder) by typing psr into the start menu and clicking the top result (highlighted above).

The tool is very straight forward- I’ve only used it a few times to date, but essentially it records screenshots and describes each "action"- for example clicking, dragging, user input etc. The output file is then a zipped, self-contained html type structure. See example: http://tickett.net/downloads/ip_address.zip (I have to admit I’m a little puzzled as I recorded the steps to launch a command prompt and run ipconfig to determine your ipaddress but the keyboard input doesn’t appear to’ve been captured- I think I need to play a bit more).

The beauty of the tool is that it could quite easily be used to simplify the process of creating documentation and user guides as well as the intended purpose of recording problem steps (currently we often create documentation but taking numerous screenshots and manually pasting into word with annotations- this automates that process somewhat).

Lock Screen in OS X

I did a google a while back as I’ve started to use my laptop in the office a lot more and never like leaving the screen unlocked. In windows I’m sure we all know ctrl-alt-del allows us to lock the workstation, but I’d yet to find an option/keyboard shortcut in OS X. My search didn’t turn up much- and the first item I tried didn’t work at all.

The next day a colleague showed me the "hot corners" option available in the system preferences under displays / screen savers. This works pretty well but my ideal solution would be a keyboard shortcut.

I resorted to trusty stackexchange and was informed that shift-ctrl-eject which actually puts the display to sleep but effectively achieves the desired result of locking the screen (as once awoken the password is requiring to resume).

Ubiquiti AirVision / AirCam Update

I have finished permanent installation of my 3rd Ubiquiti AirCam but have been experiencing increasing problems with the AirVision and NVR software.

For example the above screenshot- you can see the Back Garden feed is blank. These increasingly problems in addition to the rather cpu/memory hungry windows processes spurred me on to give the linux software a go.

I diverted a little from the linux installation guide on the forum: http://forum.ubnt.com/showthread.php?t=44098

Here are my steps:

  • Install Ubuntu server edition checking only the OpenSSH option
  • SSH into the ubuntu server and escalate to root: sudo su
  • Modify the apt-get sources file: nano /etc/apt-get/sources.list
  • Add at bottom of file: deb-src http://extras.ubuntu.com/ubuntu natty main
  • Add at bottom of file: deb http://www.ubnt.com/downloads/airvision/apt natty ubiquiti
  • Quit and save changes: ctrl-x
  • Update apt-get: apt-get update
  • Install AirVision and all dependencies: apt-get install airvision
  • Install AirVision NVR and all dependencies: apt-get install airvision-nvr
  • Ensure everything is up to date: apt-get upgrade

You should now be good to go! Try an browse to https://server-ip-or-hostname:7443 and you should be presented with the configuration/setup wizard.

NB: HTTPS. I made the mistake of trying to browse to http://server-ip:7443 and wondered why it wasn’t working :)

So far performance seems better and resource usage seems a little lighter. Fingers crossed.

L

I wanted to deploy a new OSX Lion 10.7.2 virtual machine this morning so thought I best first run the latest unlocker from : http://www.insanelymac.com/forum/index.php?showtopic=267296

I downloaded the unlocker, unzipped onto one of my datastores and tried to run it from one of my ESXi hosts:

/vmfs/volumes/9fe35ffc-47004197/unlock/esxi # ./install.sh 
VMware ESXi 5.0 Unlocker 1.0.1
==============================
Patching files...
Setting permissions...
Patching bin/vmx
open failed Permission denied

Damn- the error was coming from the Unlocker.ESXi application so I couldn’t peak at the code to see which file(s) were causing the permissions error. However, as we’re passing the newly patched files from bin/ I thought it was safe to assume these were the cause of the problem. I chmod 777 bin/* then ran ./Unlock.ESXi bin/ and the permission error had gone :)

I modified install.sh and ran again:

/vmfs/volumes/9fe35ffc-47004197/unlock/esxi # ./install.sh 
VMware ESXi 5.0 Unlocker 1.0.1
==============================
Patching files...
Patching bin/vmx
Patching bin/vmx-debug
Patching bin/vmx-stats
Setting permissions...
Creating darwin.tgz...
bin/
bin/vmx
bin/vmx-stats
bin/vmx-debug
Adding darwin.tgz to boot.cfg...
Acquiring lock /tmp/bootbank.lck
Copying darwin.tgz to /bootbank/darwin.tgz
Editing /bootbank/boot.cfg to add module darwin.tgz
sed: /bootbank/boot.cfg: No such file or directory
Editing /bootbank/boot.cfg failed: 1
Please now reboot the host system!

Doh! I’m not sure whether the missing boot.cfg is worrying or normal- but I went ahead and created an empty placeholder touch /bootbank/boot/cfg then ran the unlocker again:

/vmfs/volumes/9fe35ffc-47004197/unlock/esxi # ./install.sh 
VMware ESXi 5.0 Unlocker 1.0.1
==============================
Patching files...
Patching bin/vmx
Patching bin/vmx-debug
Patching bin/vmx-stats
Setting permissions...
Creating darwin.tgz...
bin/
bin/vmx
bin/vmx-debug
bin/vmx-stats
Adding darwin.tgz to boot.cfg...
Acquiring lock /tmp/bootbank.lck
Copying darwin.tgz to /bootbank/darwin.tgz
Editing /bootbank/boot.cfg to add module darwin.tgz
Please now reboot the host system!

Perfect :) I added the permissions fix and missing boot.cfg fix to the install.sh script- see the revised script below:

#!/bin/sh
set -e

echo VMware ESXi 5.0 Unlocker 1.0.2T
echo Modified by tickett.wordpress.com
echo =================================

# Ensure we only use unmodified commands
export PATH=/bin:/sbin:/usr/bin:/usr/sbin

# Make sure working files are removed
rm -f darwin.tgz
rm -rf ./bin

# Patch the vmx files and place into bin folder
echo Patching files...
rm -rf ./bin
mkdir bin
cp /bin/vmx bin/
cp /bin/vmx-debug bin/
cp /bin/vmx-stats bin/
## tickett: added to fix open failed Permission denied
chmod 777 bin/*
##
./Unlocker.ESXi bin/

# Ensure correct permissions are set
echo Setting permissions...
chmod 4555 bin/*

# Create the tar file for ESXi kernel
echo Creating darwin.tgz...
tar -czvf darwin.tgz bin/

# Add entry to the boot configuration file
echo Adding darwin.tgz to boot.cfg...
## tickett: added to fix error when boot.cfg missing
touch /bootbank/boot.cfg
##
BootModuleConfig.sh --add=darwin.tgz --verbose

# Clean up
rm -f darwin.tgz
rm -rf ./bin

echo Please now reboot the host system!

Or to download click : http://tickett.net/downloads/esxi_unlocker_patched_1.0.2T.zip (note this is just the patched install.sh- you will need to download the rest of the files from http://www.insanelymac.com/forum/index.php?showtopic=267296)

Thanks to Donk and Zenith432 for making Mac OS X on ESXi possible without Apple hardware!

L

%d bloggers like this: