Environment: Host Ubuntu-server 12.04.4 installation Vnc4server
Remote machine ubuntu-destop 12.04.4 installation Xvnc4viewer
First create a create_win2003.sh in Ubuntu-server
sudo virt-install--name bzwin2003 \
--ram 2048 \
--vcpus=1 \
--disk path=/home/bzdev/winserver2003/win2003.img,size=50 \
--cdrom/home/bzdev/windowsserver2003sp2enterpriseedition.iso \
--VNC \
--vncport=-1 \
--vnclisten=0.0.0.0 \
--os-type windows \
--accelerate \
--network bridge=br0 \
--OS-VARIANT=WIN2K3 \
--accelerate
Then on the Ubuntu-destop Vncviewer execute the script to create Winserver 2003 on the line.
The Winserver 2003 System
http://koumm.blog.51cto.com/703525/1290191
Ps:
By the way, the installation of Vnc4server and Xvnc4viewer tutorial is placed below:
Vncserver:
sudo apt-get install Vnc4server
Vnc4server
Vnc4server-kill:1
# #修改配置文件
[Email protected]:~/.vnc$ cat Xstartup
#!/bin/sh
# Uncomment the following-lines for normal desktop:
Unset Session_manager
Unset dbus_session_bus_address
#exec/ETC/X11/XINIT/XINITRC
[-x/etc/vnc/xstartup] && Exec/etc/vnc/xstartup
[-R $HOME/. Xresources] && Xrdb $HOME/. Xresources
Xsetroot-solid Grey
Vncconfig-iconic &
X-terminal-emulator-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &
#x-window-manager &
#位置在/usr/share/gnome-session/sessions
Export Desktop_session=gnome-classic
Export Dgmsession=gnome-classic
Export startup= "/usr/bin/gnome-session--session=gnome-classic"
$STARTUP
Vncclinet:
sudo apt-get install Xvnc4viewer
Vncviewer 172.16.3.101:1
Help_doc:
http://my.oschina.net/robinsonlu/blog/193030
http://blog.163.com/thinki_cao/blog/static/83944875201303014531803/