WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Tutorial for Windows guest on Xen

To: "Peter Privat" <peter.privat@xxxxxxxxxxxx>
Subject: Re: [Xen-users] Tutorial for Windows guest on Xen
From: "Paras pradhan" <pradhanparas@xxxxxxxxx>
Date: Fri, 7 Nov 2008 09:19:37 -0600
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 07 Nov 2008 07:20:23 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=QWtfVPDUqD/jKeKLPo9pOSPF3QpIo/Acll2q+lHUagY=; b=scJIj1i1nV0o1REBbDFYhURti75UgaKVAjWFhU8O2V9Nu6XMnzVicAS+xNveqBVPpY Eq+4Tz+1QOeeIs53CLDip5Opw/KTJ0EwwIkB8zABCcnJ1JiWB2S2pxvn742xj3wC1jl/ GUa/+EbRy7ia4zu+4MhvDGrbRNGHHqdb4Rw3w=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=U44EmJ4bQg7bPYy4CC1P6QVCSCxra/TLojkMErhS1pIhnf0BZATRZjkjXmWVT/f/JA izzPgncCG6rjV8j9NfSdAY9CSQ6JgwSWN13ZEONWME31yEbS2f2WThuVPFtJuptPAosE MvGyjl0jtC9F2GZbi6LPCiG1at3qVLnLgdHRQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1226032820.6473.10.camel@cyrus>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <53C979FEC5BAF24BA10B4626F179F80402C9B056@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <1225952339.8229.17.camel@cyrus> <8b711df40811060721w3f797426rf41629dc09bfe921@xxxxxxxxxxxxxx> <1226032820.6473.10.camel@cyrus>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On Thu, Nov 6, 2008 at 10:40 PM, Peter Privat <peter.privat@xxxxxxxxxxxx> wrote:
On Thu, 2008-11-06 at 09:21 -0600, Paras pradhan wrote:
>
>
> On Thu, Nov 6, 2008 at 12:18 AM, Peter Privat
> <peter.privat@xxxxxxxxxxxx> wrote:
>         Hello,
>
>         I'm looking for someone that can assist me on how to create
>         and run a
>         Windows guest on Xen. I'm about to make a Wiki with easy
>         tutorials on
>         how use the Xen. Plain and easy text that everyone should be
>         able to
>         follow and succeed with.
>
>         I've already finished a working tutorial on how to setup a
>         working Linux
>         guest, which I plan to publish at the same time as the Windows
>         guest
>         tutorial. I've searched the internet, trying to find existing
>         tutorials
>         regarding Windows guests on Xen. So far, only outdated ones
>         have turned
>         up. Even my own attempts trying to modify those old tutorials,
>         in order
>         to fit the more resent versions of Linux and Xen, resulted in
>         failure.
>
>         So, I would like to get some help, guidance or even get in
>         touch with
>         someone that actually managed to install and run Windows as a
>         guest, on
>         a recent version of a Linux host.
>
>         The software I intend to use in my Wiki tutorial, is:
>
>         Host: Linux Ubuntu Hardy (8.04 LTS) 64 bit.
>         Guest: Windows XP and Windows Server 2003
>
>         Best regards,
>         Peter
>
>
>         _______________________________________________
>         Xen-users mailing list
>         Xen-users@xxxxxxxxxxxxxxxxxxx
>         http://lists.xensource.com/xen-users
>
>
>
> This might help
>
>
> http://www.virtuatopia.com/index.php/Virtualizing_Windows_Server_2008_with_Xen
>
>
>
>
>
> Paras.
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users


Hello Paras,

Thank you for the link.
I tried creating a guest like shown in the example, but only to receive
an error message when trying to start it.

==============================================================
# xm create /etc/xen/domu2.cfg

Using config file "/etc/xen/domu2.cfg".
Error: Device 768 (vbd) could not be connected.
losetup /dev/loop0 /home/xen/domains/win2k3/xenwin2k3.img failed


This should work first .

 

==============================================================

It seems to the same kind of error I got from my earlier attempts, when
trying to use some older examples I've found on the internet. Perhaps
there are something wrong or missing in my Xen installation. An Ubuntu
8.04 guest seems to work fine though.


The domu2.cfg file looks like this:
==============================================================
import os, re
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 = 1024

# Should be at least 2KB per MB of domain memory, plus a few MB per
vcpu.
shadow_memory = 8
name = "xenwin2k3"
vif = [ 'type=ioemu, bridge=xenbr0' ]
acpi = 1
apic = 1
disk = [ 'file:/home/xen/domains/win2k3/xenwin2k3.img,hda,w',
'file:/home/cc/iso-images/windows2k3/image.iso,hdc:cdrom,r' ]

device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'

#-----------------------------------------------------------------------------
# boot on floppy (a), hard disk (c) or CD-ROM (d)
# default: hard disk, cd-rom, floppy
boot="dc"
sdl=0
vnc=1
vncconsole=1
vncpasswd=''

serial='pty'
usbdevice='tablet'
==============================================================

Any clues?
/Peter


My working config file looks is:


name = "windows2003"
uuid = "f92d4a0c-eaaf-b319-ba32-1b40367a771f"
maxmem = 512
memory = 512
vcpus = 1
builder = "hvm"
kernel = "/usr/lib/xen/boot/hvmloader"
boot = "c"
pae = 1
acpi = 1
apic = 1
localtime = 1
>
>
>
device_model = "/usr/lib64/xen/bin/qemu-dm"
usbdevice = "tablet"
sdl = 1
vnc = 1
vncunused = 0
vnclisten = "0.0.0.0"
vncdisplay = "5"
disk = [ "phy:/dev/drbd7,hda,w", ",hdc:cdrom,r" ]
vif = [ "mac=00:16:3e:27:15:ea,bridge=virbr0,script=vif-bridge" ]
serial = "pty"
 


Paras.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users