Virtualization

Installing LXC on Debian Wheezy

First install the needed packages: apt-get install bridge-utils libvirt-bin debootstrap lxc Then you have to mount cgroup: echo "cgroup  /sys/fs/cgroup  cgroup  defaults  0   0" >> /etc/fstab mount /sys/fs/cgroup When executing lxc-checkconfig, you should get something like this: Found kernel config file /boot/config-3.2.0-4-amd64 — Namespaces — Namespaces: enabled Utsname namespace: enabled Read more…

Virtualization

Control your VMs using ESXi CLI

For this to work you need to have SSH access enabled! List the Inventory: vim-cmd vmsvc/getallvms The first column is the <vmid> needed for below commands. Check the power state of the virtual machine: vim-cmd vmsvc/power.getstate <vmid> Power-on the VM: vim-cmd vmsvc/power.on <vmid> Reboot the VM: vim-cmd vmsvc/power.reboot <vmid> This command shows all Read more…

Virtualization

Setup LXC on Debian

You can install lxc including some needed components by executing: apt-get install lxc debootstrap bridge-utils lvm2 Then you should configure a bridge network interface in order to be used by your virtual machines. Therefore edit /etc/network/interfaces, comment out the existing lines for eth0 (or the interface you wish to use) and add Read more…

Virtualization

XEN installation on CentOS 5.2

OS installation: While installation the OS, in Anaconda you just have to choose “Virtualization”. All relevant XEN packages and the corresponding kernel will then be installed automatically. Installing XEN manually: yum install xen-kernel xen Before using XEN, you have to reboot to boot the new kernel. Verify having the right kernel Read more…

Debian

Installing Virtualbox on Debian

1. wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -; wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add – 3. Now add the following line to to your /etc/apt/sources.list:     deb http://download.virtualbox.org/virtualbox/debian jessie non-free     (replace jessie with your release if using other) 4. apt-get update && apt-get install virtualbox Just a Read more…