Skip to content

Instantly share code, notes, and snippets.

@abelboldu
abelboldu / libvirt100-allhv
Last active December 15, 2015 10:29
Hypervisor agnostic libvirt in Ubuntu 12.04
sudo apt-get install libyajl-dev libopenwsman-dev gcc make pkg-config \
libxml2-dev libgnutls-dev libdevmapper-dev libcurl4-openssl-dev python-dev \
libxen-dev
wget http://libvirt.org/sources/libvirt-1.0.0.tar.gz
tar xvzf libvirt-1.0.0.tar.gz
cd libvirt-1.0.0
./configure --prefix=/usr --localstatedir=/var \
--sysconfdir=/etc --with-esx=yes --with-hyperv=yes --with-xen=yes
make
sudo make install
@abelboldu
abelboldu / wincore-cygwin
Created March 7, 2013 15:43
install cygwin in HyperV/windows server core from powershell cmd to enable sshd
echo Enabling firewall rule...
netsh advfirewall firewall add rule name="SSHd" dir=in action=allow protocol=TCP localport=22
echo Downloading cygwin installer...
$client = new-object System.Net.WebClient
$client.DownloadFile( "http://www.cygwin.com/setup.exe", "c:\windows\temp\setup.exe" )
.\Windows\Temp\setup.exe
@abelboldu
abelboldu / w32-busybox
Created March 7, 2013 14:43
Install busybox on windows HyperV core from a PowerShell cmd
$client = new-object System.Net.WebClient
$client.DownloadFile( "http://dl.dropbox.com/u/5943991/busybox-w32/busybox.exe", "C:/windows/busybox.exe" )
.\busybox.exe --help
@abelboldu
abelboldu / java.env
Created November 7, 2012 15:11 — forked from dln/java.env
Zookeeper RPM spec for CentOS 5.x, including python bindings
ZOO_LOG4J_PROP="INFO,ROLLINGFILE"
ZOO_LOG_DIR="/var/log/zookeeper/"