Monday, March 29, 2010

resolving 'could not detach HEAD'


git rebase origin/master
First, rewinding head to replay your work on top of it...
could not detach HEAD


I'm sure there are a variety of reasons that this could occur, but here was mine. Usually I do some version of fetch/stash/rebase/unstash to get changes, but this time it wasn't working. Running with -v showed some new files were created, and apparently 'could not detach HEAD' translated to 'you already have an un-added/commited file in a spot that would have a file after this. I had been checking that a new file someone else was commiting would work, and left that file in my working tree. Since I didn't add it, it was not removed by my stashing, and git kindly (but unhelpfully) refused to clobber my existing file. Renaming the offending file to something else (could've removed it, but I wanted to do a diff afterwards) fixed the problem, rebase worked fine.

Tuesday, January 12, 2010

Accessing the VM console displayed in XenCenter

I've been looking (without searching) for this for a long time. Hope this helps others.
Failed search strings:
* xen access vm without xencenter
* xen access vm console without xencenter
* xen access vm console without networks
* xen xe access vm console without networks
* xe access vm console without networks
* xe access vm console without xencenter
* xe access linux vm text console without xencenter
* xe access linux vm text console "without xencenter"
* xen xe access linux vm text console "without xencenter"
Successful search string:
* xe access linux vm text console

From my XenServer 5.5.0 machine:
[root@xenserver ~]# /usr/lib/xen/bin/xenconsole `xe vm-list params=dom-id name-label="<VM name>" --minimal`