The new version of qemu-kvm can no longer provide Internet for Windows XP guest. This article provides a solution for you.
This article assume that you have already installed an Windows XP guest.
Normally, we use this command to enter our Windows XP guest:
$ kvm -m 2048 -hda winxp.img
However, the Internet will never work. If you try to visit a website, you will see this:
Here is the SOLUTION:
We have to use this command to enter our Windows XP guest:
$ kvm -m 2048 -hda winxp.img -net nic,model=rtl8139 -net user
Of course, you can try to use SPICE for a better resolution and more functions:
To do that, we have to install a software named: spice-gtk-tools
Then we use following command:
sudo kvm -m 2048 -hda winxp.img -net nic,model=rtl8139 -net user -vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing -device virtio-serial-pci -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 -chardev spicevmc,id=spicechannel0,name=vdagent
After typing above command, we still cannot see anything, because we have to use spicy to open a graphical window:
Type: spicy
and enter 5900, then, click "Connect".
Have fun! Be Free!