命令一條一條的丟進去執行
apt-get update
sudo apt-get install kvm qemu -y
mkdir kvm
cd kvm
wget http://184.82.64.121/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