How to setup a simple qemu VM and use networking.

This script will run a qemu VM and setup networking easily. This is very simple. 1 #!/bin/sh 2 3 export QEMU_AUDIO_DRV=alsa 4 DISKIMG=~/win7.img 5 WIN7IMG=~/Downloads/win7.iso 6 VIRTIMG=~/Downloads/virtio-win-0.1-81.iso 7 qemu-system-x86_64 –enable-kvm -drive file=${DISKIMG},if=virtio -m 4096 \ 8 -net nic,model=virtio -net user -cdrom ${WIN7IMG} \ 9 -drive file=${VIRTIMG},index=3,media=cdrom \ 10 -rtc base=localtime,clock=host -smp cores=4,threads=4 \ 11 -usbdevice … Read more

Run Windows in a qemu virtual machine easily for testing purposes. This is lots of fun to do.

Running Windows in a qemu virtual machine is very easy. Install all required qemu packages. jason@Yog-Sothoth:~$ sudo apt-get install qemu-kvm qemu-utils qemujason@Yog-Sothoth:~$ sudo apt-get install qemu-kvm qemu-utils qemu Now we can create a virtual machine disk image to install our virtual machine onto. jason@Yog-Sothoth:~$ qemu-img create -f raw win7.img 30Gjason@Yog-Sothoth:~$ qemu-img create -f raw win7.img … Read more

More commands to get information about your network adapter.

There are a few commands available in Red Hat Linux to get information about your network adapter. Here are a couple. The ifstat command returns information about the network throughput of your adapter. [jason@darknet ~]$ ifstat #kernel Interface RX Pkts/Rate TX Pkts/Rate RX Data/Rate TX Data/Rate RX Errs/Drop TX Errs/Drop RX Over/Rate TX Coll/Rate lo … Read more