|
by Henry Pepper
xVM installing a Windows Guest
Introduction
Purpose
This topic describes how to create a WinXP DomU from scratch, and how to convert a native WinXP to a DomU.
References
Installing from Install media/slipstream
See: http://www.opensolaris.org/os/community/xen/docs/windows.guest.html
- get qemu
- pkgadd -d http://www.blastwave.org/pkg_get.pkg
- /opt/csw/bin/pkg-get -i qemu
- /opt/csw/bin/qemu-img create -f raw /winxp-disk.raw 15G
- vi /winxp.hvm
- See below for file contents.
- xm create /winxp.hvm
- vncviewer :0
- Go through the installation.
- For some reason the vncviewer didn't connect, when I ran it as root, but worked fine from my std login.
/winxp.hvm
<pre>
disk = [ 'file:/winxp-disk.raw,hdc,w',
'file:/winxp.iso,hda:cdrom,r' ]
memory = 512
name = "winxp"
kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
vif = [ 'type=ioemu' ]
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'preserve'
boot='d'
vnc=1
vnclisten="0.0.0.0"
vncpasswd=''
serial='null'
usb=1
usbdevice="tablet"
import os, re
arch = os.uname()[4]
if re.search('64', arch):
arch_libdir = 'lib64'
else:
arch_libdir = 'lib'
device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
</pre>
Converting a native WinXP to DomU guest
Converting using VMWare convert
Converting using Clonezilla
|