Posts with the tag Virtualization
perlbrew is a one-liner:
curl -L http://install.perlbrew.pl | bash
Add this lines to your
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:
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...
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
SWAPFILE=/root/myswap # Create a file to use as swap with 1024 1MiB blocks (= 1 GiB): dd...
The built in possibility on Ubuntu / Debian is to change the configuration file
RUN=yes CONF_DIR=/etc/lxc CONTAINERS="vm0 vm1"
In this example,
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
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 /
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...
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.
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
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...
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 email@example.com
Problem during run of
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
sudo add-apt-repository ppa:ubuntu-wine/ppa sudo apt-get update sudo apt-get install wine1.3
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
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.
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
[Strg] + [Alt] to release mouse
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...