Monday, December 17, 2007
opensolaris xvm install windows XP
virt-install
get xp.iso ready, and answer a few questions.
# su
(do not use "su -", or you have to settle DISPLAY)
vncpasswd
# svccfg -s xvm/xend setprop config/vncpasswd="qwe123"
# svcadm refresh xvm/xend
# svcadm restart xvm/xend
cdrom lost after reboot,
# xm block-attach winxp file:/myxp.iso hdc:cdrom r
# xm reboot winxp
# vncviewer :0
Option 2,
xm create
with config like,
get rdesktop from blastwave, and a heavy load of other free software.
http://www.blastwave.org/howto.html
get xp.iso ready, and answer a few questions.
# su
(do not use "su -", or you have to settle DISPLAY)
vncpasswd
# svccfg -s xvm/xend setprop config/vncpasswd="qwe123"
# svcadm refresh xvm/xend
# svcadm restart xvm/xend
cdrom lost after reboot,
# xm block-attach winxp file:/myxp.iso hdc:cdrom r
# xm reboot winxp
# vncviewer :0
Option 2,
xm create
with config like,
import os, relast 2 lines make the mouse in vnc works better!
arch = os.uname()[4]
if re.search('64', arch):
arch_libdir = 'lib64'
else:
arch_libdir = 'lib'
kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 512
shadow_memory = 8
name = "winxp"
vcpus=1
disk = [ 'file:/export/home/XP/winxp.img,hda,w', 'file:/WinXPp2.iso,hdc:cdrom,r' ]
vif = [ 'type=ioemu' ]
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'preserve'
device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
boot='d'
vnc=1
vncpasswd='qwe123'
serial='null'
usb=1
usbdevice='tablet'
get rdesktop from blastwave, and a heavy load of other free software.
http://www.blastwave.org/howto.html
Labels: opensolaris