Posts with the tag Virtualization
Perlbrew
Installing perlbrew
is a one-liner:
curl -L http://install.perlbrew.pl | bash
Add this lines to your ~/.bashrc
:
source ~/perl5/perlbrew/etc/bashrc
To get a stable perl distribution, do:
perlbrew install stable
To use it, run:
perlbrew list perlbrew switch perl-5.20.2
To upgrade to the latest stable Perl distribution at a later point:
perlbrew...
Use Middle Mouse Button in a Parallels 6 Virtual Machine running Linux on a MacBook Pro
Sometimes you have to use the middle mouse button, sometimes it's just convenient to do so. Either way, if you want to use it on a virtualised Linux machine on a Parallels 6 (or any other virtualisation software) you can't out-of-the box on a MacBook Pro as the touch pad...
XEN Virtual Server Improvements
More Loop Devices
To solve this problem:
mount: could not find any free loop device,
you have to increase the number of loop devices:
echo "options loop max_loop=64" > /etc/modprobe.d/local-loop.conf
More SWAP
SWAPFILE=/root/myswap # Create a file to use as swap with 1024 1MiB blocks (= 1 GiB): dd...
Start Linux Containers (LXC) at Startup
/etc/default/lxc
The built in possibility on Ubuntu / Debian is to change the configuration file /etc/default/lxc
:
RUN=yes CONF_DIR=/etc/lxc CONTAINERS="vm0 vm1"
In this example, vm0
and vm1
are LXC configuration files stored or linked in /etc/lxc
. These containers will be started at startup.
custom init script /etc/init.d/lxc
Instead of...
Create an LXC Application Container using libvirt
LXC application containers are good tools to isolate single applications. Instead of directly creating them using lxc-create
you can also create them with libvirt / virsh
.
If you have dnsmasq installed and running globally you will get into trouble running net-start default
. So follow the advice on http://mytipsandtricson.blogspot.com/2010/12/kvm-failed-to-start-network-default-in.html.
Now let's create...
Install pfSense in KVM on Ubuntu 10.10
The blog post describes how to install the firewall distribution pfSense based on FreeBSD in a kernel based virtual machine (KVM) on Ubuntu 10.10.
Specialities: you either need two NICs or a single one with VLANs as pfSense requires you to define at least one WAN and one LAN interface.
First, get...
Install FreeBSD 8.1 as a Virtual Machine in KVM on Ubuntu 10.10
Install KVM and libvirt:
sudo apt-get install kvm virtinst libvirt-bin
If you also want the graphical helpers (viewer via vnc and a manager of the installed virtual machines) install:
sudo apt-get install virt-viewer virt-manager
Now set up the connection to the local KVM hypervisor:
sudo virsh connect qemu:///system
Get the...
Container Virtualization using LXC on Ubuntu
LXC (Linux Containers) is an operating system-level virtualization method for running multiple isolated Linux systems (containers) on a single control host. LXC does not provide a virtual machine, but rather provides a virtual environment that has its own process and network space. It is similar to a chroot, but offers...
Launch Ubuntu 10.10 maverick in the EC2 cloud
https://help.ubuntu.com/community/EC2StartersGuide
http://alestic.com/
http://uec-images.ubuntu.com/maverick/current/
sudo apt-get install ec2-api-tools ec2-describe-regions cat <<'EOM' >~/.bashrc ######## modifications by Philipp Klaus: export EC2_URL=http://ec2.eu-west-1.amazonaws.com export EC2_PRIVATE_KEY=$HOME/.ssh/amazon-x509_pk-ODKN47NWKLVFADJVDU2PJUEIFHLZSGFJ.pem export EC2_CERT=$HOME/.ssh/amazon-x509_cert-ODKN47NWKLVFADJVDU2PJUEIFHLZSGFJ.pem export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/ EOM ec2-authorize default -p 22 ec2-run-instances ami-29b0855d --instance-type t1.micro --region eu-west-1 --key mykey ec2-add-keypair ec2-keypair > amazon-ec2-keypair.pem chmod 600 amazon-ec2-keypair.pem ec2-describe-instances
you may now log in using
ssh -i ./amazon-ec2-keypair.pem ubuntu@ec2-46-1-198.eu-west-1.compute.amazonaws.com
fix bad resolutions with Ubuntu as guest in VMware Fusion 3.1.2
http://communities.vmware.com/message/1650147
Problem during run of sudo /usr/bin/vmware-config-tools.pl
:
Skipping X configuration because X drivers are not included.
This fixed it:
sudo apt-get remove xserver-xorg-video-vmware sudo apt-get install xserver-xorg-video-vmware
Install Latest Version of WINE
http://www.winehq.org/download/deb
sudo add-apt-repository ppa:ubuntu-wine/ppa sudo apt-get update sudo apt-get install wine1.3
Install VirtualBox Non-OpenSource
http://www.virtualbox.org/wiki/Linux_Downloads
sudo -i echo "deb http://download.virtualbox.org/virtualbox/debian karmic non-free" >> /etc/apt/sources.list wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add - apt-get update apt-get install virtualbox-3.0
VirtualBox Images of Operating Systems
If you would like to get ready-to-run images of preinstalled OSs in VirtualBox images you might want to take a look at the following sites.
virtualbox.wordpress.com
http://virtualbox.wordpress.com/images
Requirements: You have to have Java v6 installed and get the Java software registerimage from http://virtualbox.wordpress.com/tag/registerimage/.
example: damn small linux
http://virtualbox.wordpress.com/images/damn-small/
cd...
System Emulators / Virtual Environments
QEmu
http://bellard.org/qemu/index.html
http://wiki.ubuntuusers.de/QEMU
[Strg] + [Alt] to release mouse
http://www.linux-community.de/Internal/Artikel/Print-Artikel/LinuxUser/2007/06/Mit-Q-zum-Partnertausch
to boot from an iso image:
qemu -cdrom knoppix.iso -boot d -m 512
to boot from a real cd:
qemu -cdrom /dev/cdrom -boot d -m 512
to set up a hard disk to use with qemu:
qemu -cdrom /dev/cdrom -boot...