blob: db7c32ffcf049b6c5c0b36ae2ee895e213294408 [file] [log] [blame]
* Setup OS X.
* Shut it down.
* Clone to Virtual Machine (convention: "osx_11_frozen" for OS X
10.11")
* Snapshot that new frozen VM once to make its vmdk in COW format.
Then, to create more:
# 10.11
export VMHOST=4
export VMWHICH=b
export VMNAME=osx11_host${VMHOST}_${VMWHICH}
date
govc vm.create -m 4096 -c 2 -on=false -net dvPortGroup-Private -ds "BOOT_$VMHOST" -g darwin14_64Guest $VMNAME
govc vm.change -e smc.present=TRUE -e ich7m.present=TRUE -e firmware=efi -vm $VMNAME
govc device.usb.add -vm $VMNAME
govc vm.disk.attach -vm $VMNAME -link=true -persist=false -ds=NetApp-1 -disk "osx_11_frozen/osx_11_frozen.vmdk"
govc vm.power -on $VMNAME
date
# 10.8:
export VMHOST=13
export VMWHICH=b
export VMNAME=osx8_host${VMHOST}_${VMWHICH}
date
govc vm.create -m 4096 -c 2 -on=false -net dvPortGroup-Private -ds "mac_host_$VMHOST" -g darwin12_64Guest $VMNAME
govc vm.change -e smc.present=TRUE -e ich7m.present=TRUE -e firmware=efi -vm $VMNAME
govc device.usb.add -vm $VMNAME
govc vm.disk.attach -vm $VMNAME -link=true -persist=false -ds=NetApp-1 -disk "osx_8_frozen/osx_8_frozen.vmdk"
govc vm.power -on $VMNAME
date
Other misc notes:
$ govc vm.info -json osx11_host12_a | jq . | grep MacAdd
"MacAddress": "00:50:56:b4:05:57",
sudo pmset -a hibernatemode 25
sudo pmset sleepnow
if sleep failing,
pmset -g assertions # RemovableMedia mounted
system_profiler # to see which
https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1012225
... doesn't seem to work
... but changing from SATA to IDE does make the RemovableMedia assertion go away (but `pmset sleepnow` stil doesn't work)