linux上跑win,找了一个Ubuntu的方法

apt-get update
sudo apt-get install kvm qemu -y
mkdir kvm
cd kvm
wget http://x.x.x/winxp.img
cd ../
apt-get install vnc4server -y
vncserver
vncserver -kill :1
chmod +x ~/.vnc/xstartup
echo ‘kvm -hda kvm/winxp.img -m 128M -net nic,model=virtio -net user -redir tcp:3389::3389′>>/root/.vnc/xstartup
wget http://www.zhujis.com/myvps/vncserver
cp vncserver /etc/init.d/
chmod +x /etc/init.d/vncserver
update-rc.d vncserver defaults
reboot

01-26 22:03