KVM/QEMU rocks
http://voices.canonical.com/tag/virtualization/
In ubuntu 12.04,
apt-get install testdrive-gtk
This is a tool for ubuntu lovers to try out newer unreleased versions of ubuntu i.e.
forthcoming "Quantal" version.
To use Windows, inside a linux virtual machine, this is a how to "Install Windows7 over Ubuntu Linux.
convenience script that does 2 things: 1)virtio Windows drivers and 2)launch virt-install to Install Windows.
BEGINNING OF BASH SCRIPT
#!/bin/sh
WINISO=/path/to/win7.iso #Windows ISO
INSTALLDISK=win7virtio.img #Disk location. Can be LVM LV
VFD=http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/virtio-win-1.1.16.vfd
DRVRISO=http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/virtio-win-1.1.16.iso
[ -e $(basename $VFD) ] || wget $VFD
[ -e $(basename $DRVRISO) ] || wget $DRVRISO
[ -e $INSTALLDISK ] || qemu-img create $INSTALLDISK 30G
sudo virt-install -c qemu:///system --virt-type kvm --name win7virtio --ram 1024 --disk path="$INSTALLDISK",bus=virtio \
--disk $(basename $VFD),device=floppy --os-variant win7 --cdrom $(basename $DRVRISO) --cdrom "$WINISO" --vcpus 2
ENDING OF BASH SCRIPT
This is how to run windows xp on a linux box:
1)Copy the windows xp or windows7 dvd:
dd if=/dev/sr0 of=/home/loongson/Downloads/xenserverstuff/winxpsp3.iso bs=2048 conv=noerror,sync
2)Create a 12G file holding the windows file system where the virtual machine will be sandboxed to run in:
dd if=/dev/zero of=/home/loongson/Downloads/xenserverstuff/vm8.img bs=1024k count=12000
3)Run the windows iso using the kvm command:
kvm -m 512 -cdrom /home/loongson/Downloads/xenserverstuff/winxpsp3.iso -boot d /home/loongson/Downloads/xenserverstuff/vm8.img
That easy!
http://voices.canonical.com/tag/virtualization/
In ubuntu 12.04,
apt-get install testdrive-gtk
This is a tool for ubuntu lovers to try out newer unreleased versions of ubuntu i.e.
forthcoming "Quantal" version.
To use Windows, inside a linux virtual machine, this is a how to "Install Windows7 over Ubuntu Linux.
convenience script that does 2 things: 1)virtio Windows drivers and 2)launch virt-install to Install Windows.
BEGINNING OF BASH SCRIPT
#!/bin/sh
WINISO=/path/to/win7.iso #Windows ISO
INSTALLDISK=win7virtio.img #Disk location. Can be LVM LV
VFD=http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/virtio-win-1.1.16.vfd
DRVRISO=http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/virtio-win-1.1.16.iso
[ -e $(basename $VFD) ] || wget $VFD
[ -e $(basename $DRVRISO) ] || wget $DRVRISO
[ -e $INSTALLDISK ] || qemu-img create $INSTALLDISK 30G
sudo virt-install -c qemu:///system --virt-type kvm --name win7virtio --ram 1024 --disk path="$INSTALLDISK",bus=virtio \
--disk $(basename $VFD),device=floppy --os-variant win7 --cdrom $(basename $DRVRISO) --cdrom "$WINISO" --vcpus 2
ENDING OF BASH SCRIPT
This is how to run windows xp on a linux box:
1)Copy the windows xp or windows7 dvd:
dd if=/dev/sr0 of=/home/loongson/Downloads/xenserverstuff/winxpsp3.iso bs=2048 conv=noerror,sync
2)Create a 12G file holding the windows file system where the virtual machine will be sandboxed to run in:
dd if=/dev/zero of=/home/loongson/Downloads/xenserverstuff/vm8.img bs=1024k count=12000
3)Run the windows iso using the kvm command:
kvm -m 512 -cdrom /home/loongson/Downloads/xenserverstuff/winxpsp3.iso -boot d /home/loongson/Downloads/xenserverstuff/vm8.img
That easy!