[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-users] Xen 3.1.0 can not install windows (win2k3 server) HVMguest, might be something wrong qemu-dm?


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "David Morris" <david.morris@xxxxxxxxxx>
  • Date: Fri, 14 Sep 2007 16:32:58 -0700
  • Delivery-date: Fri, 14 Sep 2007 16:33:57 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: Acf3FES5DfAqHQNBQt+THkxBGK3mSQAETz6A
  • Thread-topic: [Xen-users] Xen 3.1.0 can not install windows (win2k3 server) HVMguest, might be something wrong qemu-dm?

I'm not quite sure if acpi=0 in the HVM that matters as there is too much stuff here in a format I'm not familiar with.
 
See:
   http://kbase.redhat.com/faq/FAQ_42_10986.shtm
 
I've also attached a xen.cfg file used in the past couple days to install win2k3R2 server and very similar to that used for winXpPro. In use lvm for drives, RH5, Xen3.1. Of course, the install DVD iso was as indicated .. this was a technet DVD for what its worth.
 
Hope this helps.
-----Original Message-----
From: Yung Giang [mailto:yung.giang@xxxxxxxxx]
Sent: Friday, September 14, 2007 2:14 PM
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Xen 3.1.0 can not install windows (win2k3 server) HVMguest, might be something wrong qemu-dm?

Has anyone hit this problem with the HVM guest install or know a fix/solution for it?

Thank you for your time and help,
-Yung Giang

The install process hangs or it does nothing, xm creates execute through fine but I get a blank white VNC screen. >From xm list the VM is running and qemu-dm process is running fine too but I notice qemu-dm.<#>.log is not generated, xen-vncfb is not running and the windows guest vm cannot be pinged (unattended windows install). Is there something wrong with my vm configuration or build?

Environment:
Xen 3.1.0, dell 1950 with VMX enabled. xen source install on of centOS4.4 (32 bit build)

 [root@xxxxxxxxxxxx ~]# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 768 2 r----- 398.5
win 1 512 1 r----- 1375.5

[root@xxxxxxxxxxxx ~]# ps -ef | grep vnc
root 29868 7097 0 16:33 ? 00:00:00 /usr/lib/xen/bin/qemu-dm -d 1 -vcpus 1 -boot dca -serial pty -domain-name win
 -net nic,vlan=1,macaddr=00:04:fc:40:d4:00,model=rtl8139 -net tap,vlan=1,bridge=xenbr0 -vncunused -vnclisten 0.0.0.0 -vncviewer
root 30006 29868 0 16:33 ? 00:00:00 vncviewer :5900

[root@xxxxxxxxxxxx ~]# ll /var/log/xen/
total 752
-rw-r--r-- 1 root root 9081 Sep 14 16:33 xend-debug.log
-rw-r--r-- 1 root root 11802 Sep 14 16:33 xend.log
-rw-r--r-- 1 root root 306 Sep 14 16:33 xen-hotplug.log
-rw-rw-rw- 1 root root 31728 Sep 14 10:58 xenstored-access.log.1
-rw-rw-rw- 1 root root 36958 Sep 14 11:56 xenstored-access.log.2
-rw-rw-rw- 1 root root 30962 Sep 14 12:02 xenstored-access.log.3

[root@xxxxxxxxxxxx ~]# xm dmesg |grep VMX
(XEN) HVM: VMX enabled
(XEN) VMX: MSR intercept bitmap enabled

[root@xxxxxxxxxxxx ~]# xm info
host : node0
release : 2.6.18-xen
version : #1 SMP Fri Sep 14 10:14:14 EDT 2007
machine : i686
nr_cpus : 4
nr_nodes : 1
sockets_per_node : 2
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 1995
hw_caps : bfebfbff:20100000:00000000:00000140:0004e33d:00000000:00000001
total_memory : 4095
free_memory : 2764
xen_major : 3
xen_minor : 1
xen_extra : .0
xen_caps : xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xf5800000
xen_changeset :
cc_compiler : gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)
cc_compile_by : ygiang
cc_compile_domain : sn.stratus.com
cc_compile_date : Fri Sep 14 09:41:55 EDT 2007
xend_config_format : 4

[root@xxxxxxxxxxxx ~]# xm list -l
(domain
    (domid 0)
    (on_crash restart)
    (uuid 00000000-0000-0000-0000-000000000000)
    (bootloader_args )
    (vcpus 4)
    (name Domain-0)
    (on_poweroff destroy)
    (on_reboot restart)
    (bootloader )
    (maxmem 4194303)
    (memory 768)
    (shadow_memory 0)
    (cpu_weight 256)
    (cpu_cap 0)
    (features )
    (on_xend_start ignore)
    (on_xend_stop ignore)
    (cpu_time 289.096377908)
    (online_vcpus 2)
    (image (linux (kernel ) (rtc_timeoffset 0)))
    (status 2)
    (state r-----)
)
(domain
    (domid 1)
    (on_crash restart)
    (uuid 756bdaad-43cd-8f5e-0565-3945ab46f013)
    (bootloader_args )
    (vcpus 1)
    (name win)
    (on_poweroff destroy)
    (on_reboot restart)
    (bootloader )
    (maxmem 512)
    (memory 512)
    (shadow_memory 5)
    (cpu_weight 256)
    (cpu_cap 0)
    (features )
    (on_xend_start ignore)
    (on_xend_stop ignore)
    (start_time 1189801993.96)
    (cpu_time 615.885320411)
    (online_vcpus 1)
    (image
        (hvm
            (kernel /usr/lib/xen/boot/hvmloader)
            (acpi 0)
            (apic 0)
            (boot dca)
            (device_model /usr/lib/xen/bin/qemu-dm)
            (display localhost:10.0)
            (nx 0)
            (isa 0)
            (localtime 0)
            (monitor 0)
            (nographic 0)
            (pae 0)
            (rtc_timeoffset 0)
            (serial pty)
            (sdl 0)
            (stdvga 0)
            (usb 0)
            (vnc 1)
            (vncconsole 1)
            (vncunused 1)
            (xauthority /root/.Xauthority)
            (notes (SUSPEND_CANCEL 1))
        )
    )
    (status 2)
    (state r-----)
    (store_mfn 131070)
    (device
        (vif
            (bridge xenbr0)
            (mac 00:04:fc:40:d4:00)
            (script vif-bridge)
            (uuid f6f74eff-c26e-2513-18c3-ab6a92edffd1)
            (backend 0)
        )
    )
    (device
        (vbd
            (uname file:/root/win.img)
            (uuid 51a94a1e-b347-aabe-7acb-de0104579013)
            (mode w)
            (dev hda:disk)
            (backend 0)
            (bootable 1)
        )
    )
    (device
        (vbd
            (uname file:/root/InstallCD.iso)
            (uuid 282d6c01-ec8c-ad84-81d1-295ccd508374)
            (mode r)
            (dev hdc:cdrom)
            (backend 0)
            (bootable 0)
        )
    )
    (device (vkbd (backend 0)))
    (device
        (vfb
            (vncunused 1)
            (xauthority /root/.Xauthority)
            (vnclisten 0.0.0.0)
            (vncpasswd 12345)
            (location 0.0.0.0:5900)
            (type vnc)
            (display localhost:10.0)
            (uuid 5a12ab59-0bed-de84-33eb-e80f62f51d79)
        )
    )
    (device
        (console
            (protocol vt100)
            (location 3)
            (uuid 17789bf6-22e3-d371-6944-20792dd371f7)
        )
    )
)


[root@xxxxxxxxxxxx ~]# more /etc/xen/win
# -*- mode: python; -*-
#============================================================================
# Python configuration setup for 'xm create'.
# This script sets the parameters used when a domain is created using 'xm create'.
# You use a separate script for each domain you want to create, or
# you can set the parameters for the domain on the xm command line.
#============================================================================

import os, re
arch = os.uname()[4]
if re.search('64', arch):
    arch_libdir = 'lib64'
else:
    arch_libdir = 'lib'

#----------------------------------------------------------------------------
# Kernel image file.
kernel = "/usr/lib/xen/boot/hvmloader"

# The domain build function. HVM domain uses 'hvm'.
builder='hvm'

# Initial memory allocation (in megabytes) for the new domain.
#
# WARNING: Creating a domain with insufficient memory may cause out of
# memory errors. The domain needs enough memory to boot kernel
# and modules. Allocating less than 32MBs is not recommended.
memory = 512

# Shadow pagetable memory for the domain, in MB.
# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
shadow_memory = 8

# A name for your domain. All domains must have different names.
name = "win"

# 128-bit UUID for the domain. The default behavior is to generate a new UUID
# on each call to 'xm create'.
#uuid = "06ed00fe-1162-4fc4-b5d8-11993ee4a8b9"

#-----------------------------------------------------------------------------
# The number of cpus guest platform has, default=1
#vcpus=1

# Enable/disable HVM guest PAE, default=1 (enabled)
pae=0

# Enable/disable HVM guest ACPI, default=1 (enabled)
acpi=0

# Enable/disable HVM APIC mode, default=1 (enabled)
# Note that this option is ignored if vcpus > 1
apic=0

# List of which CPUS this domain is allowed to use, default Xen picks
#cpus = "" # leave to Xen to pick
#cpus = "0" # all vcpus run on CPU0
#cpus = "0-3,5,^1" # run on cpus 0,2,3,5

# Optionally define mac and/or bridge for the network interfaces.
# Random MACs are assigned if not given.
#vif = [ 'type=ioemu, mac=00:16:3e:00:00:11, bridge=xenbr0, model=ne2k_pci' ]
# type=ioemu specify the NIC is an ioemu device not netfront
vif = [ 'type=ioemu, mac=00:04:fc:40:d4:00, bridge=xenbr0' ]

#----------------------------------------------------------------------------
# Define the disk devices you want the domain to have access to, and
# what you want them accessible as.
# Each disk entry is of the form phy:UNAME,DEV,MODE
# where UNAME is the device, DEV is the device name the domain will see,
# and MODE is r for read-only, w for read-write.

#disk = [ 'phy:hda1,hda1,r' ]
disk = [ 'file:/root/win.img,ioemu:hda,w', 'file:/root/InstallCD.iso,hdc:cdrom,r' ]
#----------------------------------------------------------------------------
# Configure the behaviour when a domain exits. There are three 'reasons'
# for a domain to stop: poweroff, reboot, and crash. For each of these you
# may specify:
#
# "destroy", meaning that the domain is cleaned up as normal;
# "restart", meaning that a new domain is started in place of the old
# one;
# "preserve", meaning that no clean-up is done until the domain is
# manually destroyed (using xm destroy, for example); or
# "rename-restart", meaning that the old domain is not cleaned up, but is
# renamed and a new domain started in its place.
#
# The default is
#
#
#
#
#
# For backwards compatibility we also support the deprecated option restart
#
# restart = 'onreboot' means
#
#
#
# restart = 'always' means
#
#
#
# restart = 'never' means
#
#





#============================================================================

# New stuff
device_model='/usr/lib/xen/bin/qemu-dm'

#-----------------------------------------------------------------------------
# boot on floppy (a), hard disk (c), Network (n) or CD-ROM (d)
# default: hard disk, cd-rom, floppy
boot="dca"

#-----------------------------------------------------------------------------
# write to temporary files instead of disk image files
#snapshot=1

#----------------------------------------------------------------------------
# enable SDL library for graphics, default = 0
sdl=0

#----------------------------------------------------------------------------
# enable VNC library for graphics, default = 1
vnc=1

#----------------------------------------------------------------------------
# address that should be listened on for the VNC server if vnc is set.
# default is to use 'vnc-listen' setting from /etc/xen/xend-config.sxp


vfb = [ 'type=vnc,vncpasswd=12345,vncunused=1,vnclisten=0.0.0.0' ]
#----------------------------------------------------------------------------
# set VNC display number, default = domid
#vncdisplay=1

#----------------------------------------------------------------------------
# try to find an unused port for the VNC server, default = 1
#----------------------------------------------------------------------------
# enable spawning vncviewer for domain's console
# (only valid when vnc=1), default = 0
vncconsole=1

#----------------------------------------------------------------------------
# set password for domain's VNC console
# default is depents on vncpasswd in xend-config.sxp

#----------------------------------------------------------------------------
# no graphics, use serial port
#nographic=0

#----------------------------------------------------------------------------
# enable stdvga, default = 0 (use cirrus logic device model)
stdvga=0

#-----------------------------------------------------------------------------
# serial port re-direct to pty deivce, /dev/pts/n
# then xm console or minicom can connect
serial='pty'

#-----------------------------------------------------------------------------
# Qemu Monitor, default is disable
# Use ctrl-alt-2 to connect
#monitor=1

#-----------------------------------------------------------------------------
# enable sound card support, [sb16|es1370|all|..,..], default none
#soundhw='sb16'

#-----------------------------------------------------------------------------
# set the real time clock to local time [default=0 i.e. set to utc]
#localtime=1

#-----------------------------------------------------------------------------
# set the real time clock offset in seconds [default=0 i.e. same as dom0]
#rtc_timeoffset=3600

#-----------------------------------------------------------------------------
# start in full screen
#full-screen=1

#-----------------------------------------------------------------------------
# Enable USB support (specific devices specified at runtime through the
# monitor window)
#usb=1

# Enable USB mouse support (only enable one of the following, `mouse' for
# PS/2 protocol relative mouse, `tablet' for
# absolute mouse)
#usbdevice='mouse'
#usbdevice='tablet'

#-----------------------------------------------------------------------------
# Set keyboard layout, default is en-us keyboard.
#keymap='ja'

[root@xxxxxxxxxxxx ~]# xm log
[2007-09-14 16:33:12 7097] DEBUG (XendDomainInfo:78) XendDomainInfo.create(['vm', ['name', 'win'], ['memory', 512], ['shadow)
[2007-09-14 16:33:12 7097] DEBUG (XendDomainInfo:1419) XendDomainInfo.constructDomain
[2007-09-14 16:33:12 7097] DEBUG (balloon:114) Balloon: 3359904 KiB free; need 2048; done.
[2007-09-14 16:33:12 7097] DEBUG (XendDomain:434) Adding Domain: 1
[2007-09-14 16:33:12 7097] DEBUG (XendDomainInfo:1476) XendDomainInfo.initDomain: 1 256
[2007-09-14 16:33:12 7097] DEBUG (image:343) args: boot, val: dca
[2007-09-14 16:33:12 7097] DEBUG (image:343) args: fda, val: None
[2007-09-14 16:33:12 7097] DEBUG (image:343) args: fdb, val: None
[2007-09-14 16:33:12 7097] DEBUG (image:343) args: soundhw, val: None
[2007-09-14 16:33:12 7097] DEBUG (image:343) args: localtime, val: 0
[2007-09-14 16:33:12 7097] DEBUG (image:343) args: serial, val: pty
[2007-09-14 16:33:12 7097] DEBUG (image:343) args: std-vga, val: 0
[2007-09-14 16:33:12 7097] DEBUG (image:343) args: isa, val: 0
[2007-09-14 16:33:12 7097] DEBUG (image:343) args: acpi, val: 0
[2007-09-14 16:33:12 7097] DEBUG (image:343) args: usb, val: 0
[2007-09-14 16:33:12 7097] DEBUG (image:343) args: usbdevice, val: None
[2007-09-14 16:33:12 7097] DEBUG (image:343) args: k, val: None
[2007-09-14 16:33:12 7097] DEBUG (image:343) args: dumpdir, val: None
[2007-09-14 16:33:12 7097] DEBUG (image:343) args: dumpquota, val: None
[2007-09-14 16:33:12 7097] DEBUG (XendDomainInfo:1505) _initDomain:shadow_memory=0x8, memory_static_max=0x20000000, memory_s.
[2007-09-14 16:33:12 7097] DEBUG (balloon:114) Balloon: 3358880 KiB free; need 537600; done.
[2007-09-14 16:33:12 7097] INFO (image:133) buildDomain os=hvm dom=1 vcpus=1
[2007-09-14 16:33:12 7097] DEBUG (image:283) domid = 1
[2007-09-14 16:33:12 7097] DEBUG (image:284) image = /usr/lib/xen/boot/hvmloader
[2007-09-14 16:33:12 7097] DEBUG (image:285) store_evtchn = 2
[2007-09-14 16:33:12 7097] DEBUG (image:286) memsize = 512
[2007-09-14 16:33:12 7097] DEBUG (image:287) vcpus = 1
[2007-09-14 16:33:12 7097] DEBUG (image:288) pae = 0
[2007-09-14 16:33:12 7097] DEBUG (image:289) acpi = 0
[2007-09-14 16:33:12 7097] DEBUG (image:290) apic = 0
[2007-09-14 16:33:12 7097] DEBUG (image:291) nx = 0
[2007-09-14 16:33:12 7097] INFO (XendDomainInfo:1322) createDevice: vkbd : {'uuid': '21294161-1d6f-9df5-95f3-0d6dca318aab'}
[2007-09-14 16:33:12 7097] DEBUG (DevController:115) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/l.
[2007-09-14 16:33:12 7097] DEBUG (DevController:117) DevController: writing {'frontend-id': '1', 'domain': 'win', 'frontend'.
[2007-09-14 16:33:12 7097] INFO (XendDomainInfo:1322) createDevice: vfb : {'vncunused': '1', 'other_config': {'vncunused': '}
[2007-09-14 16:33:12 7097] DEBUG (DevController:115) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/l.
[2007-09-14 16:33:12 7097] DEBUG (DevController:117) DevController: writing {'vncunused': '1', 'domain': 'win', 'frontend': .
[2007-09-14 16:33:12 7097] INFO (XendDomainInfo:1322) createDevice: vbd : {'uuid': '51a94a1e-b347-aabe-7acb-de0104579013', '}
[2007-09-14 16:33:12 7097] DEBUG (DevController:115) DevController: writing {'backend-id': '0', 'virtual-device': '768', 'de.
[2007-09-14 16:33:12 7097] DEBUG (DevController:117) DevController: writing {'domain': 'win', 'frontend': '/local/domain/1/d.
[2007-09-14 16:33:12 7097] INFO (XendDomainInfo:1322) createDevice: vbd : {'uuid': '282d6c01-ec8c-ad84-81d1-295ccd508374', '}
[2007-09-14 16:33:12 7097] DEBUG (DevController:115) DevController: writing {'backend-id': '0', 'virtual-device': '5632', 'd.
[2007-09-14 16:33:12 7097] DEBUG (DevController:117) DevController: writing {'domain': 'win', 'frontend': '/local/domain/1/d.
[2007-09-14 16:33:12 7097] INFO (XendDomainInfo:1322) createDevice: vif : {'bridge': 'xenbr0', 'mac': '00:04:fc:40:d4:00', '}
[2007-09-14 16:33:12 7097] DEBUG (DevController:115) DevController: writing {'backend-id': '0', 'mac': '00:04:fc:40:d4:00', .
[2007-09-14 16:33:12 7097] DEBUG (DevController:117) DevController: writing {'bridge': 'xenbr0', 'domain': 'win', 'handle': .
[2007-09-14 16:33:12 7097] INFO (image:471) spawning device models: /usr/lib/xen/bin/qemu-dm ['/usr/lib/xen/bin/qemu-dm', '-]
[2007-09-14 16:33:12 7097] INFO (image:475) device model pid: 29868
[2007-09-14 16:33:12 7097] DEBUG (image:437) Waiting for qemu
[2007-09-14 16:33:12 7097] DEBUG (image:440) status None
[2007-09-14 16:33:13 7097] DEBUG (image:445) status 1
[2007-09-14 16:33:13 7097] DEBUG (XendDomainInfo:1982) Storing VM details: {'on_xend_stop': 'ignore', 'shadow_memory': '5', }
[2007-09-14 16:33:13 7097] DEBUG (XendDomainInfo:835) Storing domain details: {'console/port': '3', 'name': 'win', 'console/}
[2007-09-14 16:33:13 7097] DEBUG (DevController:115) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/l.
[2007-09-14 16:33:13 7097] DEBUG (DevController:117) DevController: writing {'domain': 'win', 'protocol': 'vt100', 'uuid': '.
[2007-09-14 16:33:14 7097] DEBUG (XendDomainInfo:919) XendDomainInfo.handleShutdownWatch
[2007-09-14 16:33:14 7097] DEBUG (DevController:148) Waiting for devices vif.
[2007-09-14 16:33:14 7097] DEBUG (DevController:153) Waiting for 0.
[2007-09-14 16:33:14 7097] DEBUG (DevController:553) hotplugStatusCallback /local/domain/0/backend/vif/1/0/hotplug-status.
[2007-09-14 16:33:14 7097] DEBUG (DevController:567) hotplugStatusCallback 1.
[2007-09-14 16:33:14 7097] DEBUG (DevController:148) Waiting for devices usb.
[2007-09-14 16:33:14 7097] DEBUG (DevController:148) Waiting for devices vbd.
[2007-09-14 16:33:14 7097] DEBUG (DevController:153) Waiting for 768.
[2007-09-14 16:33:14 7097] DEBUG (DevController:553) hotplugStatusCallback /local/domain/0/backend/vbd/1/768/hotplug-status.
[2007-09-14 16:33:14 7097] DEBUG (DevController:567) hotplugStatusCallback 1.
[2007-09-14 16:33:14 7097] DEBUG (DevController:153) Waiting for 5632.
[2007-09-14 16:33:14 7097] DEBUG (DevController:553) hotplugStatusCallback /local/domain/0/backend/vbd/1/5632/hotplug-status.
[2007-09-14 16:33:14 7097] DEBUG (DevController:567) hotplugStatusCallback 1.
[2007-09-14 16:33:14 7097] DEBUG (DevController:148) Waiting for devices irq.
[2007-09-14 16:33:14 7097] DEBUG (DevController:148) Waiting for devices vkbd.
[2007-09-14 16:33:14 7097] DEBUG (DevController:148) Waiting for devices vfb.
[2007-09-14 16:33:14 7097] DEBUG (vfbif:99) skip waiting for HVM vfb
[2007-09-14 16:33:14 7097] DEBUG (DevController:148) Waiting for devices console.
[2007-09-14 16:33:14 7097] DEBUG (DevController:153) Waiting for 0.
[2007-09-14 16:33:14 7097] DEBUG (DevController:148) Waiting for devices pci.
[2007-09-14 16:33:14 7097] DEBUG (DevController:148) Waiting for devices ioports.
[2007-09-14 16:33:14 7097] DEBUG (DevController:148) Waiting for devices tap.
[2007-09-14 16:33:14 7097] DEBUG (DevController:148) Waiting for devices vtpm.
[2007-09-14 16:33:14 7097] INFO (XendDomain:1117) Domain win (1) unpaused.

Attachment: win2k3R2Base
Description: win2k3R2Base

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.