- Create ubuntu 16.04 VM in Fusion
- Shutdown VM and take snapshot
- Go to Settings on Local VM -> Compatibility -> Advanced Settings -> Use Hardware Version 11
- Connect to haas environment in Fusion (File -> Connect to Server)
- Right click on VM -> Upload to Server
- Go to Settings on Server VM -> Processors & Memory -> Advanced Settings -> Enable hypervisor...
- (Optional) In Settings, increase RAM and CPUs
- Start VM and log in
- Install dependencies:
apt install git xz-utils uvtool-libvirt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load './bosh-lite/Vagrantfile' | |
USB_NAME = 'SanDisk Cruzer Blade [0100]' | |
USB_VENDOR_ID = '0x0781' | |
USB_PRODUCT_ID = '0x5567' | |
SWAP_LABEL = 'SWAP-FOB' | |
Vagrant.configure('2') do |config| | |
config.vm.provision "shell", inline: "echo LABEL=#{SWAP_LABEL} swap swap sw 0 0 >> /etc/fstab; swapon -a" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Keyboard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select disk 1 | |
clean | |
convert gpt | |
create partition efi size=256 | |
format quick fs=fat32 label="System" | |
create partition primary | |
format quick fs=ntfs label="Windows" |
- Download ESX 6.5.0 from https://my.vmware.com/group/vmware/info?slug=datacenter_cloud_infrastructure/vmware_vsphere_hypervisor_esxi/6_0
- Download unetbootin https://unetbootin.github.io/
- Use unetbootin to Write ESXi image to USB
- Connect your USB, power and a Ethernet network with DHCP
- Bottom left port of 4 is vnic0
- Management port above the USB is optional
- Boot your machine and press DEL repeatedly after SUPERMICRO screen
- On the setup screen, go to the Save & Exit page
- At the bottom under Boot Override, select UEFI to boot from your USB drive
- ESXi installer should start. Complete the installation to an internal drive, remove your USB
-
Install Raspbian Jessie Lite
umount /dev/rdisk<DISK ID>* sudo dd if=~/Downloads/2017-04-10-raspbian-jessie-lite.img of=/dev/rdisk<DISK ID> bs=1g
-
Add empty file name
ssh
to FAT32 boot partition
touch /Volumes/boot/ssh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while read ENV_PAIR; do export "${ENV_PAIR}"; done \ | |
< <(echo $VCAP_SERVICES | jq -r '.["user-provided"] | .[].credentials | to_entries[] | "\(.key)=\(.value)"') | |
# assuming `cf create-user-provider-service foo-service -p '{"MY_VAR":"foo"}'` and bound | |
echo $MY_VAR # => foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that "micahyo.id" is my Blockstack ID. https://onename.com/micahyo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cf push 1L -c 'while :; do echo -e "HTTP/1.1 200 OK\n\n42" | nc -l $PORT; done' -b binary_buildpack -p $(dirname $(mktemp $(mktemp -d)/XXX)) | |
# * Cross platform (run from MacOS + Linux) | |
# * Container needs only 5M RAM |