Use kvm in Linux

KVM is the fastest VM in my mind. In the past days, I install linux to my machine. But I often have to use ms office for working, and wine is poor. At last, I have to install a copy of windows in my machine by kvm.

My process of installation:

sudo apt-get install kvm qemu #install packages
adduser *** kvm
adduser *** disk #*** is your account
mkdir ~/kvm
qemu-img create -f qcow2 ~/kvm/xp.img 6G #create vm disk
sudo kvm -M pc -m 512 -soundhw es1370 -hda ~/kvm/xp.img -localtime -net nic,vlan=0 -net user,vlan=0 -cdrom /media/tools/winxp.iso -boot d #If you do not know, please see man. And make sure your guest system using DHCP

After these, your guest system will be ok!
Some tips:

sudo kvm -M pc -m 1024 -hda ~/kvm/xp.img -hdb /dev/*** -net nic -net user -localtime -nographic -daemonize -redir tcp:3389::3389 #run kvm background
rdesktop localhost:3389 -g 1024x768 -D -r disk:sharename=path
#-D means no edge ; Redirects a path to the share \\tsclient on the server (requires Windows XP or newer). The share name is limited to 8 characters.

Good Luck!

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: