virtualization
VMware: Installation Tools
Install open-vm-tools package
sudo apt-get install -y open-vm-tools
# Ubuntu Offline install
wget http://mirrors.kernel.org/ubuntu/pool/main/o/open-vm-tools/open-vm-tools_10.0.7-3227872-2ubuntu1_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/libd/libdumbnet/libdumbnet1_1.12-7_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/main/libm/libmspack/libmspack0_0.5-1ubuntu0.16.04.3_amd64.deb
scp *.deb :/tmp/
ssh dpkg -i /tmp/open-vm-tools_*_amd64.deb /tmp/libdumbnet*_amd64.deb /tmp/libmspack0_*_amd64.deb
# FreeBSD
KVM Snapshot
virsh domblklist ${VM}
virsh blockcommit ${VM} vda --pivot
virsh domblklist ${VM}
# list snapshots
virsh snapshot-list ${VM}
# delete snapshot
virsh snapshot-delete ${VM} ${TIMESTAMP} --metadata
# fix "error: block copy still active: disk 'vda' already in active block job"
VM=vm1
virsh blockjob ${VM} vda --abort
virsh blockcommit ${VM} vda --pivot
virsh snapshot-list ${VM}
SNAP=1527804440
virsh snapshot-delete ${VM} ${SNAP} --metadata
# list snapshots
for VM in $(virsh list --state-running --name); do
echo ${VM}
virsh domblklist ${VM}
VMware
WebGui
https://example.com/vsphere-client/?csp
https://example.com/folder?dcPath=ha-datacenter
CLI
esxcli vm process list
esxcli network nic list
esxcli network ip interface list
esxcli network ip interface ipv4 get
esxcli hardware platform get
WebGui
https://esx.example.com/ui
Shrink MsSQL Express DB
https://benjaminulsamer.wordpress.com/2014/06/10/vcenter-database-full-how-to-purge-old-data-and-shrink-the-sql-express-database/
HowTo
# Ignore insufficient storrage count
Install LXD
<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/install.lxd.sh";
echo "wget $URL -O - | bash -";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
Create Debian Squeeze DomU
<?php
$URL="https://raw.githubusercontent.com/panticz/xen/master/domains/debian.squeeze.sh";
echo "wget $URL -O - | bash -";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
Install VirtualBox
<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/install.virtualbox.sh";
echo "wget $URL -O - | bash -";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
--allow-unauthenticated
Fix kernel module
sudo /etc/init.d/vboxdrv setup
Links
http://wiki.ubuntuusers.de/VirtualBox/Installation
http://www.virtualbox.org/wiki/Linux_Downloads
http://www.panticz.de/node/143
QEMU / KQEMU
create image
qemu-img create -f qcow2 xp.img 8G
install windows
qemu -hda xp.img -cdrom xppro.iso -boot d -net nic
run windows
qemu -hda xp.img -cdrom ../download/iso/xppro.iso -boot d -net nic -usb -usbdevice table
# optional
# test # -kernel-kqemu
Links
http://wiki.ubuntuusers.de/QEMU
http://qemu-buch.de/d/Netzwerkoptionen/_Netzwerkdienste/_PXE
XEN
Links
http://wiki.univention.de/index.php?title=Installing-signed-GPLPV-drivers - Installing-signed-GPLPV-drivers
http://www.pug.org/index.php/Xen-Installation - Xen installation manual on PUG [German]
http://man.cx/xen-create-image - Manpage for xen-create-image
http://wiki.xensource.com/xenwiki/ - http://wiki.xensource.com/xenwiki/
http://wiki.debian.org/Xen
http://www.neobiker.de/wiki/index.php?title=Debian_XEN_Installation
http://xen-tools.org/software/xen-tools/