http://www.perkin.org.uk/posts/automated-virtualbox-smartos-installs.html
save the following as setup.sh and run it:
#!/bin/sh
#
# Configurables:
{ | |
"builders": [ | |
{ | |
"type": "virtualbox-iso", | |
"vboxmanage": [ | |
[ "modifyvm", "{{.Name}}", "--memory", "{{ user `ram` }}" ], | |
[ "modifyvm", "{{.Name}}", "--vram", "36" ], | |
[ "modifyvm", "{{.Name}}", "--cpus", "{{ user `cpus` }}" ] | |
], | |
"guest_os_type": "Ubuntu_64", |
http://www.perkin.org.uk/posts/automated-virtualbox-smartos-installs.html
save the following as setup.sh and run it:
#!/bin/sh
#
# Configurables:
package main | |
/* | |
Ping vs Pong: A Gladiatorial Match | |
Two goroutines enter, only one leaves... | |
*/ | |
/* | |
#cgo LDFLAGS: -lprobes -L/usr/local/lib | |
#include "probes.h" |