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] Windows domU doesn't boot

To: "Michael Jinks" <mjinks@xxxxxxxxxxxx>
Subject: Re: [Xen-users] Windows domU doesn't boot
From: "Fong Vang" <sudoyang@xxxxxxxxx>
Date: Fri, 25 Apr 2008 08:17:18 -0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 25 Apr 2008 08:17:58 -0700
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=xW+vxG4vU85Fx36zF8Uyw72YoN1/+UYh9QvHYjTMejI=; b=X3krkWxwKnQxYqHIZ4jhsvumYxsIMOGIJRO4qto859hxrYjnXZb5MkKxu8twO2VnWVHuoVOgrlCAb4KeNCa3kTMKWHl5mFPfe7waBnD9liCoElBxj5T9M8Vkt6MC8RRu2wbV8JkqL1uob4hyoYv95086PNaXOAOLKPuEaPVoOIM=
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=CgcU0mqt44CDC6Y9GRIyGH+4BeLKpUq9g9/zeULNXeXnfiBIDhe+LYVduXKkALaVIK4rg1ZBkG//HnOpbVe4B5Vb48RjuFT0GirNgQ0ek6SCmBwHSlMWOm+cdHPHPi0bNrDCr/jy+6kh7otbgAdo15s+bR/pKNSFnagWVeIHt+g=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080425021204.GF10366@xxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <20080425021204.GF10366@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Let me paste what I have that works for me:

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
shadow_memory = 10
name = "acw1"
vcpus=3
pae=1
acpi=1
apic=1
vif = [ 'type=ioemu, mac=00:16:3e:37:b8:f7, bridge=xenbr1' ]
disk = [ 'file:/store/acwin,ioemu:hda,w' ]
boot='c'
device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
sdl=0
vnclisten="10.1.34.16"
vnc=1
vncdisplay=5
vncconsole=0
vncpasswd=''
stdvga=0
serial='pty'
>>
This works with a Windows 2003 Server domU just fine.  I have this configuration working with CentOS 5.1.  For Ubuntu, it's slightly different -- mainly the path at the beginning.



On Thu, Apr 24, 2008 at 7:12 PM, Michael Jinks <mjinks@xxxxxxxxxxxx> wrote:
Hi, all.

I'm a Xen newbie, more or less.  I've got a Linux dom0 successfully
running two different flavors of Linux domU, now I'm trying for my first
HVM guest, a Windows 2003 Server machine.  I'll paste my config file
below; I've found so many conflicting docs scattered around the net that
I don't know if it has any obvious errors in it or not.

The symptoms: when I create the domain, I don't get any errors at the
command line, and I'm not sure if I'm seeing errors in xend.log or not,
but the domain never does anything.  The console doesn't appear (have
tried all sorts of different config syntaxes for vnc and sdl -- again,
so many different forms appear around the net that I don't know which
ones are correct, but I'm borrowing from the working configs for my
Linux domU's).  "xm list" shows straight dashes for the domU; no "r",
no "b", no "c":

 % sudo xm list loathsome
 Name                                        ID   Mem VCPUs      State Time(s)
 loathsome                                  175   512     1     ------ 0.0

The hardware is a brand new Sun Ultra40, with SVM-equipped AMD
processors.  dom0 kernel is the Gentoo package of Linux 2.6.21/xen, Xen
version is 3.2.0.

I have an LVM partition set up to act as the Windows hard drive.  Works
for my other domains... CD is an iso file which I've used successfully
to install Windows on VMware, so it should be kosher...

Thanks in advance for any clues.  Tips on where to get trustworthy docs
are also welcome; the Xen web site is nice so far as it goes, but there
are lots of gaps, unless I just don't know where to look.

Thanks,
--Michael

-- begin domU config file, with comments --

builder = 'hvm'
kernel = '/usr/lib/xen/boot/hvmloader'
memory = '512'
device_model = '/usr/lib/xen/bin/qemu-dm'
disk = [ 'phy:/dev/mapper/pile-loathsome.uchicago.edu,ioemu:hda,w', 'file:/xen/isos/server2003.iso,ioemu:hdc:cdrom,r' ]
name = 'loathsome'
vif = [ '' ]
boot = 'd'

# config lines which i've tried and rejected for one reason or another:

# disk = [ 'phy:/dev/mapper/pile-loathsome.uchicago.edu,ioemu:hda,w' ]

# cdrom='/xen/isos/server2003.iso'

# vfb = [ 'type=vnc, vncpasswd=l3m0n, vncunused=1, vnclisten=0.0.0.0' ]
# vfb = [ 'type=vnc, vncpasswd=l3m0n, display=4, vnclisten=0.0.0.0' ]

# some sites show a completely different approach to console configs:
# vnc = 1
# vncunused = 1
# display = 3
# vncviewer = 1  # <- what does the "vncviewer" directive mean, exactly?
# vncpasswd = 'l3m0n'
# vnclisten = 0.0.0.0
# apic = 0
# acpi = 0
# sdl = 1  # <- i've seen accounts of people saying "sdl" worked better
          # than a vnc console; how does one connect to an "sdl"
          # console?  not from vncviewer, right...?


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

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>