xVM installing a Windows Guest

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

  1. get qemu
    1. pkgadd -d http://www.blastwave.org/pkg_get.pkg
    2. /opt/csw/bin/pkg-get -i qemu
  2. /opt/csw/bin/qemu-img create -f raw /winxp-disk.raw 15G
  3. vi /winxp.hvm
    • See below for file contents.
  4. xm create /winxp.hvm
  5. 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

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact