Skip navigation.

Linux virtualization

Overview

Virtual Linux (IBM developerworks)


User Mode Linux (Paravirtualization)

UML Homepage
User Mode Linux in Debian
UML (User-Mode-Linux) configuration


Xen (Paravirtualization)

Xen Homepage


QEMU (Emulation)

QEMU Homepage
Getting Started With QEMU
Hardware virtualization with QEMU

Tip: Steps for testing a Live CD
1. modprobe kqemu major=0 (for QEMU acceleration)
2. qemu -cdrom path/to/livecd.iso -boot d -usbdevice tablet (-usbdevice tablet for potential mouse problem)
3. Mouse cannot work even with usbdevice (maybe due to qemu debian package upgrading). Ultimate
solution is here
export SDL_VIDEO_X11_DGAMOUSE=0

Tip: Install Debian on a raw disk image
qemu-img create -f raw debian.img 3G 
//the reason for using raw disk image is for mouting it 
//in the host machine
sudo modprobe kqemu
qemu -cdrom debian-testing-i386-netinst.iso -hda debian.img \
     -boot d 

Launch the virtual machine
qemu -cdrom /dev/cdrom -hda debian.img -boot c -m 512

Mount the raw disk image on host system (follow this)
mkdir mnt
sudo mount -o loop,offset=$((63*512)) -t ext3 debian.img ./mnt

How to resize the raw image (see here )
If you are using a sparse raw image, then do
dd if=/dev/zero of=hdd.img seek=N obs=1MB count=0

where hdd.img is the raw format image that you want to resize and N is the new size that you want the image to be, in megabytes. To change the units of N, change obs to something else such as 1GB for units in gigabytes (1000x1000x1000).

Then in the virtual machine linux, use Gparted to adjust the partition size.


KVM (Full virtualization)

KVM Homepage
KVM on Debian


VMware (Full virtualization)

VMware Homepage
Tip: Installation
1. Download VMware Server and Management Interface from here
Remember to register to get a free serial number
2. Use the installation scripts to install VMWare Server and Management Interface
Management Interface at http://localhost:8222
3. Launch server console either from Applications->System Tools->VMWare Server Console or type "vmware" in terminal
4. May get error due to libpng12.so.0, check this. The solution would be to add the following code to /usr/lib/vmware/lib/wrapper-gtk24.sh in vm_run()
# Fix for pulling in libdbus-1.so.2 instead of .3
export LD_PRELOAD=/usr/lib/libdbus-1.so.3:$LD_PRELOAD

5. Uninstall
vmware-uninstall.pl


Lguest

Lguest Homepage
Tip: Compile the file systems ext2 and ext3 into the kernel (see this post)
Run lguest in linux-2.6 git tree (using a root disk image from here)
Documentation/lguest/lguest 64m vmlinux 
--tunnet=192.168.19.1 --block=../initrd-1.1-i386.img root=/dev/lgba



Install phpMyAdmin on Debian LennySSH tunneling of VNC

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies