Install OS X Sierra on Proxmox

My Proxmox running on an old Intel i7 has been upgraded to the latest: 4.4-5. When started the Sierra installer prepared following the above guide, the menu bar was stuck at “Language Chooser” which prevent the launch of DiskUtility or Terminal. The issue isn’t new and has its ticket here:

But I didn’t find any solution that worked for us. Maybe the setup is a bit unique.

I have to manually prepare a virtual disk for Sierra, in Linux. Of course it’s not worth mentioning if it’s done with a Mac. Here are the steps in Proxmox:

1, install hfsprogs, gdisk and parted:

apt-get install hfsprogs gdisk parted

2, make the GUID table for the VM’s LVM

# find the LVM volume for the VM in Proxmox, usually in the format: local-lvm:vm-100-disk-1
# then create a GUID partition table for it
gdisk /dev/pve/vm-100-disk-1
# use o command to create an empty partition table, all as default
# use n command to create a partition table, all as default. Use af00 as FS type(Apple HFS+)
# use w command to apply changes to the volume
# use q to quit

3, format the new partition to HFS+

# first you need to find the new partition
ls /dev/mapper/|grep 100
# the one with p1 is the HFS+ partition
# now format it with:
mkfs.hfsplus -J -v Main /dev/mapper/pve-vm--100--disk--1p1

4, set the GUID volume to bootable

parted /dev/pve/vm-100-disk-1
(parted) print
Model: Linux device-mapper (thin) (dm)
Disk /dev/dm-12: 34.4GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 34.4GB 34.4GB hfs+ Apple HFS/HFS+

(parted) disk_set
Flag to Invert? [pmbr_boot]?
New state? [on]/off?
(parted) quit
Information: You may need to update /etc/fstab.

5, mount the partition and copy the plist file over(used by the boot loader)

mount -t hfsplus -o force,rw /dev/mapper/pve-vm--100--disk--1p1 tmp
cd tmp
mkdir Extra
cat <<EOF >Extra/org.chameleon.boot.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">

6, remember to umount!

 umount tmp

7, start the VM in Proxmox and install! After the installation is finished, click Reboot and it will boot from the partition instead of the ISO and continue to setup.

尝鲜: Amazon Echo Dot

圣诞节过后, 人们陆续的恢复上班了. 老板从美国给每个员工买了个 Amazon Echo Dot 作为礼物, 而这货还没有在土澳开卖,因此使用起来就有点别扭。

首先不管是 iPhone 还是 Android 手机,Alexa app 都不是可见的,除非账号所在地是在美国。我可以找个闲置的手机或者直接从第三方网站下载一个不受地域限制的 Alexa,但我发现通过浏览器设置并不需要假装在美国。我在浏览器里访问,用自己的 Amazon 账号登录后,就可以安装提示设置我的 Echo Dot了,类似 Google Chrome cast 的设置过程。

Echo Dot 能做的事情很多,我就不重复了。目前我发现还不能把土澳的地址输入给它,因此天气预报基本上没法用了。听广播也是一样,貌似只能听美国的,不过美国的广播也还不错。由于家里没什么其他智能设备,例如灯泡,空调什么的,所以智能家居的功能我还没法测试。

 希望 Echo Dot 早日正式登录土澳。当然还有 Google Home。