11.24.2011

Cannot Install Windows 8 Developer Preview into A Virtual Machine on VMware Workstation 8

[symptoms]
Abort installing "Windows 8 Developer Preview" into a virtual machine on VMware Workstation 8 with below error message.

"Windows cannot read the setting from the unattend answer file."


[cause]
The VM tried to load a product key from "autoinst.flp" automatically and failed.


[solution]
Remove or disconnect the virtual floppy device.
【症状】
Windows 8 Developer Preview を VMware Workstation 8 上の仮想マシンにインストールしようとしたが,以下のメッセージと共に中断してしまう.

"Windows cannot read the setting from the unattend answer file."


【原因】
VM がプロダクトキーを "autoinst.flp" から読み出そうとして失敗していた.


【対策】
VM の設定画面で,フロッピーを削除か接続解除する.

11.20.2011

Git Error: insufficient permission for adding an object to repository database ./objects

A user guest:devgroup could not push to a git repository specified by user:devgroup /var/git/foo.git. A git client of guestdev got below error.
$ git push (original master)
error: insufficient permission for adding an object to repository database ./objects

fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To ssh://guestdev@foo.com/var/git/foo.git
 ! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to 'ssh://guestdev@foo.com/var/git/foo.git'
Fixed the git daemon's settings with below commands. They made the daemon to use the group file permissions when writing to foo.git/objects.
cd /var/git/foo.git
sudo chmod -R g+ws *
sudo chgrp -R devgroup *
git repo-config core.sharedRepository true
cf. stackoverflow: Error pushing to GitHub - insufficient permission for adding an object to repository database
user:devgroup /var/git/foo.git という Git レポジトリに guestdev:devgroup が push しようとした際に以下のようなパーミッションエラーが出た.
$ git push (original master)
error: insufficient permission for adding an object to repository database ./objects

fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To ssh://guestdev@foo.com/var/git/foo.git
 ! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to 'ssh://guestdev@foo.com/var/git/foo.git'
以下のようにして解決した.
cd /var/git/foo.git
sudo chmod -R g+ws *
sudo chgrp -R devgroup *
git repo-config core.sharedRepository true
参考にした URL:
stackoverflow: Error pushing to GitHub - insufficient permission for adding an object to repository database