HI all. I use rhel 5.1 server x86_64, I create a configure file "/etc/xen/win2003": name = "win2003" uuid = "cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac" maxmem = 500 memory = 500 vcpus = 1 builder = "hvm" kernel = "/usr/lib/xen/boot/hvmloader" #cdrom="/xen/win2003.iso" pae = 0 acpi = 0 apic = 0 on_poweroff = "destroy" on_reboot = "restart" on_crash = "restart" device_model = "/usr/lib64/xen/bin/qemu-dm" sdl = 1 vnc = 0 vncunused = 0 keymap = "en-us" disk = [ "file:/xen/win2003.img,hda,w", "file:/xen/win2003.iso,hdc:cdrom,r" ] boot = "dc" vif = [ "mac=00:16:3e:23:38:ed,bridge=virbr0,type=ioemu" ] nographic=0 After I run "xm create win2003", there is the output of "xm list": Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 1489 2 r----- 34710.3 win2003 6 499 1 ------ 0.0 The installation program of win2003 cannot be started, the CPU usage is 0, I don''t know why? There is the output of /var/log/xen/xend.log: [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG (XendDomainInfo:200) XendDomainInfo.create([''vm'', [''name'', ''win2003''], [''memory'', 500], [''maxmem'', 500], [''on_poweroff'', ''destroy''], [''on_reboot'', ''restart''], [''on_crash'', ''restart''], [''vcpus'', 1], [''uuid'', ''cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac''], [''image'', [''hvm'', [''kernel'', ''/usr/lib/xen/boot/hvmloader''], [''device_model'', ''/usr/lib64/xen/bin/qemu-dm''], [''vcpus'', 1], [''boot'', ''dc''], [''sdl'', 1], [''display'', '':0.0''], [''xauthority'', ''/tmp/.gdmZ6JR4T''], [''keymap'', ''en-us'']]], [''device'', [''vbd'', [''uname'', ''file:/xen/win2003.img''], [''dev'', ''hda''], [''mode'', ''w'']]], [''device'', [''vbd'', [''uname'', ''file:/xen/win2003.iso''], [''dev'', ''hdc:cdrom''], [''mode'', ''r'']]], [''device'', [''vif'', [''bridge'', ''virbr0''], [''mac'', ''00:16:3e:23:38:ed''], [''type'', ''ioemu'']]]]) [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG (XendDomainInfo:306) parseConfig: config is [''vm'', [''name'', ''win2003''], [''memory'', 500], [''maxmem'', 500], [''on_poweroff'', ''destroy''], [''on_reboot'', ''restart''], [''on_crash'', ''restart''], [''vcpus'', 1], [''uuid'', ''cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac''], [''image'', [''hvm'', [''kernel'', ''/usr/lib/xen/boot/hvmloader''], [''device_model'', ''/usr/lib64/xen/bin/qemu-dm''], [''vcpus'', 1], [''boot'', ''dc''], [''sdl'', 1], [''display'', '':0.0''], [''xauthority'', ''/tmp/.gdmZ6JR4T''], [''keymap'', ''en-us'']]], [''device'', [''vbd'', [''uname'', ''file:/xen/win2003.img''], [''dev'', ''hda''], [''mode'', ''w'']]], [''device'', [''vbd'', [''uname'', ''file:/xen/win2003.iso''], [''dev'', ''hdc:cdrom''], [''mode'', ''r'']]], [''device'', [''vif'', [''bridge'', ''virbr0''], [''mac'', ''00:16:3e:23:38:ed''], [''type'', ''ioemu'']]]] [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG (XendDomainInfo:411) parseConfig: result is {''shadow_memory'': None, ''start_time'': None, ''uuid'': ''cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac'', ''on_crash'': ''restart'', ''on_reboot'': ''restart'', ''localtime'': None, ''image'': [''hvm'', [''kernel'', ''/usr/lib/xen/boot/hvmloader''], [''device_model'', ''/usr/lib64/xen/bin/qemu-dm''], [''vcpus'', 1], [''boot'', ''dc''], [''sdl'', 1], [''display'', '':0.0''], [''xauthority'', ''/tmp/.gdmZ6JR4T''], [''keymap'', ''en-us'']], ''on_poweroff'': ''destroy'', ''bootloader_args'': None, ''cpus'': None, ''name'': ''win2003'', ''backend'': [], ''vcpus'': 1, ''cpu_weight'': None, ''features'': None, ''vcpu_avail'': None, ''memory'': 500, ''device'': [(''vbd'', [''vbd'', [''uname'', ''file:/xen/win2003.img''], [''dev'', ''hda''], [''mode'', ''w'']]), (''vbd'', [''vbd'', [''uname'', ''file:/xen/win2003.iso''], [''dev'', ''hdc:cdrom''], [''mode'', ''r'']]), (''vif'', [''vif'', [''bridge'', ''virbr0''], [''mac'', ''00:16:3e:23:38:ed''], [''type'', ''ioemu'']])], ''bootloader'': None, ''cpu'': None, ''maxmem'': 500} [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG (XendDomainInfo:1349) XendDomainInfo.construct: None [2008-01-08 19:58:48 xend 2587] DEBUG (balloon:127) Balloon: 529284 KiB free; need 2048; done. [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG (XendDomainInfo:1397) XendDomainInfo.initDomain: 5 1.0 [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: boot, val: dc [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: fda, val: None [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: fdb, val: None [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: soundhw, val: None [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: localtime, val: None [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: serial, val: None [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: std-vga, val: None [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: isa, val: None [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: vcpus, val: 1 [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: acpi, val: None [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: usb, val: None [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: usbdevice, val: None [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: k, val: en-us [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG (XendDomainInfo:1436) _initDomain:shadow_memory=0x0, maxmem=0x1f4, memory=0x1f4. [2008-01-08 19:58:48 xend 2587] DEBUG (balloon:127) Balloon: 528248 KiB free; need 525312; done. [2008-01-08 19:58:48 xend 2587] INFO (image:136) buildDomain os=None dom=5 vcpus=1 [2008-01-08 19:58:48 xend 2587] DEBUG (image:268) domid = 5 [2008-01-08 19:58:48 xend 2587] DEBUG (image:269) image /usr/lib/xen/boot/hvmloader [2008-01-08 19:58:48 xend 2587] DEBUG (image:270) store_evtchn = 2 [2008-01-08 19:58:48 xend 2587] DEBUG (image:271) memsize = 500 [2008-01-08 19:58:48 xend 2587] DEBUG (image:272) vcpus = 1 [2008-01-08 19:58:48 xend 2587] DEBUG (image:273) pae = 0 [2008-01-08 19:58:48 xend 2587] DEBUG (image:274) acpi = 0 [2008-01-08 19:58:48 xend 2587] DEBUG (image:275) apic = 0 [2008-01-08 19:58:48 xend 2587] DEBUG (DevController:110) DevController: writing {''backend-id'': ''0'', ''virtual-device'': ''768'', ''device-type'': ''disk'', ''state'': ''1'', ''backend'': ''/local/domain/0/backend/vbd/5/768''} to /local/domain/5/device/vbd/768. [2008-01-08 19:58:48 xend 2587] DEBUG (DevController:112) DevController: writing {''domain'': ''win2003'', ''frontend'': ''/local/domain/5/device/vbd/768'', ''dev'': ''hda'', ''state'': ''1'', ''params'': ''/xen/win2003.img'', ''mode'': ''w'', ''online'': ''1'', ''frontend-id'': ''5'', ''type'': ''file''} to /local/domain/0/backend/vbd/5/768. [2008-01-08 19:58:48 xend 2587] DEBUG (blkif:24) exception looking up device number for hdc: [Errno 2] No such file or directory: ''/dev/hdc'' [2008-01-08 19:58:48 xend 2587] DEBUG (DevController:110) DevController: writing {''backend-id'': ''0'', ''virtual-device'': ''5632'', ''device-type'': ''cdrom'', ''state'': ''1'', ''backend'': ''/local/domain/0/backend/vbd/5/5632''} to /local/domain/5/device/vbd/5632. [2008-01-08 19:58:48 xend 2587] DEBUG (DevController:112) DevController: writing {''domain'': ''win2003'', ''frontend'': ''/local/domain/5/device/vbd/5632'', ''dev'': ''hdc'', ''state'': ''1'', ''params'': ''/xen/win2003.iso'', ''mode'': ''r'', ''online'': ''1'', ''frontend-id'': ''5'', ''type'': ''file''} to /local/domain/0/backend/vbd/5/5632. [2008-01-08 19:58:49 xend 2587] DEBUG (DevController:110) DevController: writing {''state'': ''1'', ''backend-id'': ''0'', ''backend'': ''/local/domain/0/backend/vif/5/0''} to /local/domain/5/device/vif/0. [2008-01-08 19:58:49 xend 2587] DEBUG (DevController:112) DevController: writing {''bridge'': ''virbr0'', ''domain'': ''win2003'', ''handle'': ''0'', ''script'': ''/etc/xen/scripts/vif-bridge'', ''state'': ''1'', ''frontend'': ''/local/domain/5/device/vif/0'', ''mac'': ''00:16:3e:23:38:ed'', ''online'': ''1'', ''frontend-id'': ''5'', ''type'': ''ioemu''} to /local/domain/0/backend/vif/5/0. [2008-01-08 19:58:49 xend 2587] INFO (image:407) spawning device models: /usr/lib64/xen/bin/qemu-dm [''/usr/lib64/xen/bin/qemu-dm'', ''-d'', ''5'', ''-m'', ''500'', ''-boot'', ''dc'', ''-vcpus'', ''1'', ''-k'', ''en-us'', ''-domain-name'', ''win2003'', ''-net'', ''nic,vlan=1,macaddr=00:16:3e:23:38:ed,model=rtl8139'', ''-net'', ''tap,vlan=1,bridge=virbr0''] [2008-01-08 19:58:49 xend 2587] INFO (image:409) device model pid: 23841 [2008-01-08 19:58:49 xend.XendDomainInfo 2587] DEBUG (XendDomainInfo:756) Storing VM details: {''shadow_memory'': ''5'', ''uuid'': ''cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac'', ''on_reboot'': ''restart'', ''start_time'': ''1199793529.18'', ''on_poweroff'': ''destroy'', ''name'': ''win2003'', ''xend/restart_count'': ''0'', ''vcpus'': ''1'', ''vcpu_avail'': ''1'', ''memory'': ''500'', ''on_crash'': ''restart'', ''image'': ''(hvm (kernel /usr/lib/xen/boot/hvmloader) (device_model /usr/lib64/xen/bin/qemu-dm) (vcpus 1) (boot dc) (sdl 1) (display :0.0) (xauthority /tmp/.gdmZ6JR4T) (keymap en-us))'', ''maxmem'': ''500''} [2008-01-08 19:58:49 xend.XendDomainInfo 2587] DEBUG (XendDomainInfo:791) Storing domain details: {''console/port'': ''3'', ''name'': ''win2003'', ''console/limit'': ''1048576'', ''vm'': ''/vm/cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac'', ''domid'': ''5'', ''cpu/0/availability'': ''online'', ''memory/target'': ''512000'', ''store/ring-ref'': ''127998'', ''store/port'': ''2''} [2008-01-08 19:58:49 xend 2587] DEBUG (DevController:143) Waiting for devices vif. [2008-01-08 19:58:49 xend 2587] DEBUG (DevController:149) Waiting for 0. [2008-01-08 19:58:49 xend.XendDomainInfo 2587] DEBUG (XendDomainInfo:988) XendDomainInfo.handleShutdownWatch [2008-01-08 19:58:49 xend 2587] DEBUG (DevController:476) hotplugStatusCallback /local/domain/0/backend/vif/5/0/hotplug-status. [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:476) hotplugStatusCallback /local/domain/0/backend/vif/5/0/hotplug-status. [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:490) hotplugStatusCallback 1. [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:143) Waiting for devices usb. [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:143) Waiting for devices vbd. [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:149) Waiting for 768. [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:476) hotplugStatusCallback /local/domain/0/backend/vbd/5/768/hotplug-status. [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:490) hotplugStatusCallback 1. [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:149) Waiting for 5632. [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:476) hotplugStatusCallback /local/domain/0/backend/vbd/5/5632/hotplug-status. [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:476) hotplugStatusCallback /local/domain/0/backend/vbd/5/5632/hotplug-status. [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:490) hotplugStatusCallback 1. [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for devices irq. [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for devices vkbd. [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for devices vfb. [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for devices pci. [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for devices ioports. [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for devices tap. [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for devices vtpm. [2008-01-08 19:58:52 xend 2587] INFO (XendDomain:370) Domain win2003 (5) unpaused. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Do u have SElinux Enabled? If yes, put the both iso and image to /var/lib/xen/images, --Sadique openbsd shen wrote:> HI all. I use rhel 5.1 server x86_64, I create a configure file > "/etc/xen/win2003": > > name = "win2003" > uuid = "cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac" > maxmem = 500 > memory = 500 > vcpus = 1 > builder = "hvm" > kernel = "/usr/lib/xen/boot/hvmloader" > #cdrom="/xen/win2003.iso" > pae = 0 > acpi = 0 > apic = 0 > on_poweroff = "destroy" > on_reboot = "restart" > on_crash = "restart" > device_model = "/usr/lib64/xen/bin/qemu-dm" > sdl = 1 > vnc = 0 > vncunused = 0 > keymap = "en-us" > disk = [ "file:/xen/win2003.img,hda,w", "file:/xen/win2003.iso,hdc:cdrom,r" ] > boot = "dc" > vif = [ "mac=00:16:3e:23:38:ed,bridge=virbr0,type=ioemu" ] > nographic=0 > > > After I run "xm create win2003", there is the output of "xm list": > Name ID Mem(MiB) VCPUs State Time(s) > Domain-0 0 1489 2 r----- 34710.3 > win2003 6 499 1 ------ 0.0 > > > The installation program of win2003 cannot be started, the CPU usage > is 0, I don''t know why? > > > > > There is the output of /var/log/xen/xend.log: > > [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:200) XendDomainInfo.create([''vm'', [''name'', ''win2003''], > [''memory'', 500], [''maxmem'', 500], [''on_poweroff'', ''destroy''], > [''on_reboot'', ''restart''], [''on_crash'', ''restart''], [''vcpus'', 1], > [''uuid'', ''cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac''], [''image'', [''hvm'', > [''kernel'', ''/usr/lib/xen/boot/hvmloader''], [''device_model'', > ''/usr/lib64/xen/bin/qemu-dm''], [''vcpus'', 1], [''boot'', ''dc''], [''sdl'', > 1], [''display'', '':0.0''], [''xauthority'', ''/tmp/.gdmZ6JR4T''], [''keymap'', > ''en-us'']]], [''device'', [''vbd'', [''uname'', ''file:/xen/win2003.img''], > [''dev'', ''hda''], [''mode'', ''w'']]], [''device'', [''vbd'', [''uname'', > ''file:/xen/win2003.iso''], [''dev'', ''hdc:cdrom''], [''mode'', ''r'']]], > [''device'', [''vif'', [''bridge'', ''virbr0''], [''mac'', ''00:16:3e:23:38:ed''], > [''type'', ''ioemu'']]]]) > [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:306) parseConfig: config is [''vm'', [''name'', > ''win2003''], [''memory'', 500], [''maxmem'', 500], [''on_poweroff'', > ''destroy''], [''on_reboot'', ''restart''], [''on_crash'', ''restart''], > [''vcpus'', 1], [''uuid'', ''cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac''], > [''image'', [''hvm'', [''kernel'', ''/usr/lib/xen/boot/hvmloader''], > [''device_model'', ''/usr/lib64/xen/bin/qemu-dm''], [''vcpus'', 1], [''boot'', > ''dc''], [''sdl'', 1], [''display'', '':0.0''], [''xauthority'', > ''/tmp/.gdmZ6JR4T''], [''keymap'', ''en-us'']]], [''device'', [''vbd'', > [''uname'', ''file:/xen/win2003.img''], [''dev'', ''hda''], [''mode'', ''w'']]], > [''device'', [''vbd'', [''uname'', ''file:/xen/win2003.iso''], [''dev'', > ''hdc:cdrom''], [''mode'', ''r'']]], [''device'', [''vif'', [''bridge'', > ''virbr0''], [''mac'', ''00:16:3e:23:38:ed''], [''type'', ''ioemu'']]]] > [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:411) parseConfig: result is {''shadow_memory'': None, > ''start_time'': None, ''uuid'': ''cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac'', > ''on_crash'': ''restart'', ''on_reboot'': ''restart'', ''localtime'': None, > ''image'': [''hvm'', [''kernel'', ''/usr/lib/xen/boot/hvmloader''], > [''device_model'', ''/usr/lib64/xen/bin/qemu-dm''], [''vcpus'', 1], [''boot'', > ''dc''], [''sdl'', 1], [''display'', '':0.0''], [''xauthority'', > ''/tmp/.gdmZ6JR4T''], [''keymap'', ''en-us'']], ''on_poweroff'': ''destroy'', > ''bootloader_args'': None, ''cpus'': None, ''name'': ''win2003'', ''backend'': > [], ''vcpus'': 1, ''cpu_weight'': None, ''features'': None, ''vcpu_avail'': > None, ''memory'': 500, ''device'': [(''vbd'', [''vbd'', [''uname'', > ''file:/xen/win2003.img''], [''dev'', ''hda''], [''mode'', ''w'']]), (''vbd'', > [''vbd'', [''uname'', ''file:/xen/win2003.iso''], [''dev'', ''hdc:cdrom''], > [''mode'', ''r'']]), (''vif'', [''vif'', [''bridge'', ''virbr0''], [''mac'', > ''00:16:3e:23:38:ed''], [''type'', ''ioemu'']])], ''bootloader'': None, ''cpu'': > None, ''maxmem'': 500} > [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:1349) XendDomainInfo.construct: None > [2008-01-08 19:58:48 xend 2587] DEBUG (balloon:127) Balloon: 529284 > KiB free; need 2048; done. > [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:1397) XendDomainInfo.initDomain: 5 1.0 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: boot, val: dc > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: fda, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: fdb, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: soundhw, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: localtime, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: serial, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: std-vga, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: isa, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: vcpus, val: 1 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: acpi, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: usb, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: usbdevice, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: k, val: en-us > [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:1436) _initDomain:shadow_memory=0x0, maxmem=0x1f4, > memory=0x1f4. > [2008-01-08 19:58:48 xend 2587] DEBUG (balloon:127) Balloon: 528248 > KiB free; need 525312; done. > [2008-01-08 19:58:48 xend 2587] INFO (image:136) buildDomain os=None > dom=5 vcpus=1 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:268) domid = 5 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:269) image > /usr/lib/xen/boot/hvmloader > [2008-01-08 19:58:48 xend 2587] DEBUG (image:270) store_evtchn = 2 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:271) memsize = 500 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:272) vcpus = 1 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:273) pae = 0 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:274) acpi = 0 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:275) apic = 0 > [2008-01-08 19:58:48 xend 2587] DEBUG (DevController:110) > DevController: writing {''backend-id'': ''0'', ''virtual-device'': ''768'', > ''device-type'': ''disk'', ''state'': ''1'', ''backend'': > ''/local/domain/0/backend/vbd/5/768''} to > /local/domain/5/device/vbd/768. > [2008-01-08 19:58:48 xend 2587] DEBUG (DevController:112) > DevController: writing {''domain'': ''win2003'', ''frontend'': > ''/local/domain/5/device/vbd/768'', ''dev'': ''hda'', ''state'': ''1'', > ''params'': ''/xen/win2003.img'', ''mode'': ''w'', ''online'': ''1'', > ''frontend-id'': ''5'', ''type'': ''file''} to > /local/domain/0/backend/vbd/5/768. > [2008-01-08 19:58:48 xend 2587] DEBUG (blkif:24) exception looking up > device number for hdc: [Errno 2] No such file or directory: ''/dev/hdc'' > [2008-01-08 19:58:48 xend 2587] DEBUG (DevController:110) > DevController: writing {''backend-id'': ''0'', ''virtual-device'': ''5632'', > ''device-type'': ''cdrom'', ''state'': ''1'', ''backend'': > ''/local/domain/0/backend/vbd/5/5632''} to > /local/domain/5/device/vbd/5632. > [2008-01-08 19:58:48 xend 2587] DEBUG (DevController:112) > DevController: writing {''domain'': ''win2003'', ''frontend'': > ''/local/domain/5/device/vbd/5632'', ''dev'': ''hdc'', ''state'': ''1'', > ''params'': ''/xen/win2003.iso'', ''mode'': ''r'', ''online'': ''1'', > ''frontend-id'': ''5'', ''type'': ''file''} to > /local/domain/0/backend/vbd/5/5632. > [2008-01-08 19:58:49 xend 2587] DEBUG (DevController:110) > DevController: writing {''state'': ''1'', ''backend-id'': ''0'', ''backend'': > ''/local/domain/0/backend/vif/5/0''} to /local/domain/5/device/vif/0. > [2008-01-08 19:58:49 xend 2587] DEBUG (DevController:112) > DevController: writing {''bridge'': ''virbr0'', ''domain'': ''win2003'', > ''handle'': ''0'', ''script'': ''/etc/xen/scripts/vif-bridge'', ''state'': ''1'', > ''frontend'': ''/local/domain/5/device/vif/0'', ''mac'': > ''00:16:3e:23:38:ed'', ''online'': ''1'', ''frontend-id'': ''5'', ''type'': > ''ioemu''} to /local/domain/0/backend/vif/5/0. > [2008-01-08 19:58:49 xend 2587] INFO (image:407) spawning device > models: /usr/lib64/xen/bin/qemu-dm [''/usr/lib64/xen/bin/qemu-dm'', > ''-d'', ''5'', ''-m'', ''500'', ''-boot'', ''dc'', ''-vcpus'', ''1'', ''-k'', ''en-us'', > ''-domain-name'', ''win2003'', ''-net'', > ''nic,vlan=1,macaddr=00:16:3e:23:38:ed,model=rtl8139'', ''-net'', > ''tap,vlan=1,bridge=virbr0''] > [2008-01-08 19:58:49 xend 2587] INFO (image:409) device model pid: 23841 > [2008-01-08 19:58:49 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:756) Storing VM details: {''shadow_memory'': ''5'', > ''uuid'': ''cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac'', ''on_reboot'': > ''restart'', ''start_time'': ''1199793529.18'', ''on_poweroff'': ''destroy'', > ''name'': ''win2003'', ''xend/restart_count'': ''0'', ''vcpus'': ''1'', > ''vcpu_avail'': ''1'', ''memory'': ''500'', ''on_crash'': ''restart'', ''image'': > ''(hvm (kernel /usr/lib/xen/boot/hvmloader) (device_model > /usr/lib64/xen/bin/qemu-dm) (vcpus 1) (boot dc) (sdl 1) (display :0.0) > (xauthority /tmp/.gdmZ6JR4T) (keymap en-us))'', ''maxmem'': ''500''} > [2008-01-08 19:58:49 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:791) Storing domain details: {''console/port'': ''3'', > ''name'': ''win2003'', ''console/limit'': ''1048576'', ''vm'': > ''/vm/cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac'', ''domid'': ''5'', > ''cpu/0/availability'': ''online'', ''memory/target'': ''512000'', > ''store/ring-ref'': ''127998'', ''store/port'': ''2''} > [2008-01-08 19:58:49 xend 2587] DEBUG (DevController:143) Waiting for > devices vif. > [2008-01-08 19:58:49 xend 2587] DEBUG (DevController:149) Waiting for 0. > [2008-01-08 19:58:49 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:988) XendDomainInfo.handleShutdownWatch > [2008-01-08 19:58:49 xend 2587] DEBUG (DevController:476) > hotplugStatusCallback /local/domain/0/backend/vif/5/0/hotplug-status. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:476) > hotplugStatusCallback /local/domain/0/backend/vif/5/0/hotplug-status. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:490) > hotplugStatusCallback 1. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:143) Waiting for > devices usb. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:143) Waiting for > devices vbd. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:149) Waiting for 768. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:476) > hotplugStatusCallback > /local/domain/0/backend/vbd/5/768/hotplug-status. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:490) > hotplugStatusCallback 1. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:149) Waiting for 5632. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:476) > hotplugStatusCallback > /local/domain/0/backend/vbd/5/5632/hotplug-status. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:476) > hotplugStatusCallback > /local/domain/0/backend/vbd/5/5632/hotplug-status. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:490) > hotplugStatusCallback 1. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices irq. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices vkbd. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices vfb. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices pci. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices ioports. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices tap. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices vtpm. > [2008-01-08 19:58:52 xend 2587] INFO (XendDomain:370) Domain win2003 > (5) unpaused. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
windows NEEDS acpi. plus your config is not correct about booting from CDROM iso image. here is a working conf file for installation of windows: name = "winsrv2003R2" builder = "hvm" memory = "1024" disk = [ ''file:/xen/domU/ISOs/einsrv2003R2.iso,hdc:cdrom,r'',''file:/xen/domU/winsrv2003R2.img,hda,w'', ] boot = "d" vif = [ ''mac=00:16:3e:3f:a9:16, bridge=xenbr0'', ] vnc=1 vncunused=1 acpi=1 apic=1 device_model = "/usr/lib64/xen/bin/qemu-dm" kernel = "/usr/lib/xen/boot/hvmloader" vcpus=1 on_reboot = ''restart'' on_crash = ''restart'' after install remove the boot entry qand hte iso image entry: name = "winsrv2003R2" builder = "hvm" memory = "1024" disk = [ ''file:/xen/domU/winsrv2003R2.img,hda,w'', ] vif = [ ''mac=00:16:3e:3f:a9:16, bridge=xenbr0'', ] vnc=1 vncunused=1 acpi=1 apic=1 device_model = "/usr/lib64/xen/bin/qemu-dm" kernel = "/usr/lib/xen/boot/hvmloader" vcpus=1 on_reboot = ''restart'' on_crash = ''restart'' Rick openbsd shen ha scritto:> HI all. I use rhel 5.1 server x86_64, I create a configure file > "/etc/xen/win2003": > > name = "win2003" > uuid = "cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac" > maxmem = 500 > memory = 500 > vcpus = 1 > builder = "hvm" > kernel = "/usr/lib/xen/boot/hvmloader" > #cdrom="/xen/win2003.iso" > pae = 0 > acpi = 0 > apic = 0 > on_poweroff = "destroy" > on_reboot = "restart" > on_crash = "restart" > device_model = "/usr/lib64/xen/bin/qemu-dm" > sdl = 1 > vnc = 0 > vncunused = 0 > keymap = "en-us" > disk = [ "file:/xen/win2003.img,hda,w", "file:/xen/win2003.iso,hdc:cdrom,r" ] > boot = "dc" > vif = [ "mac=00:16:3e:23:38:ed,bridge=virbr0,type=ioemu" ] > nographic=0 > > > After I run "xm create win2003", there is the output of "xm list": > Name ID Mem(MiB) VCPUs State Time(s) > Domain-0 0 1489 2 r----- 34710.3 > win2003 6 499 1 ------ 0.0 > > > The installation program of win2003 cannot be started, the CPU usage > is 0, I don''t know why? > > > > > There is the output of /var/log/xen/xend.log: > > [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:200) XendDomainInfo.create([''vm'', [''name'', ''win2003''], > [''memory'', 500], [''maxmem'', 500], [''on_poweroff'', ''destroy''], > [''on_reboot'', ''restart''], [''on_crash'', ''restart''], [''vcpus'', 1], > [''uuid'', ''cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac''], [''image'', [''hvm'', > [''kernel'', ''/usr/lib/xen/boot/hvmloader''], [''device_model'', > ''/usr/lib64/xen/bin/qemu-dm''], [''vcpus'', 1], [''boot'', ''dc''], [''sdl'', > 1], [''display'', '':0.0''], [''xauthority'', ''/tmp/.gdmZ6JR4T''], [''keymap'', > ''en-us'']]], [''device'', [''vbd'', [''uname'', ''file:/xen/win2003.img''], > [''dev'', ''hda''], [''mode'', ''w'']]], [''device'', [''vbd'', [''uname'', > ''file:/xen/win2003.iso''], [''dev'', ''hdc:cdrom''], [''mode'', ''r'']]], > [''device'', [''vif'', [''bridge'', ''virbr0''], [''mac'', ''00:16:3e:23:38:ed''], > [''type'', ''ioemu'']]]]) > [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:306) parseConfig: config is [''vm'', [''name'', > ''win2003''], [''memory'', 500], [''maxmem'', 500], [''on_poweroff'', > ''destroy''], [''on_reboot'', ''restart''], [''on_crash'', ''restart''], > [''vcpus'', 1], [''uuid'', ''cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac''], > [''image'', [''hvm'', [''kernel'', ''/usr/lib/xen/boot/hvmloader''], > [''device_model'', ''/usr/lib64/xen/bin/qemu-dm''], [''vcpus'', 1], [''boot'', > ''dc''], [''sdl'', 1], [''display'', '':0.0''], [''xauthority'', > ''/tmp/.gdmZ6JR4T''], [''keymap'', ''en-us'']]], [''device'', [''vbd'', > [''uname'', ''file:/xen/win2003.img''], [''dev'', ''hda''], [''mode'', ''w'']]], > [''device'', [''vbd'', [''uname'', ''file:/xen/win2003.iso''], [''dev'', > ''hdc:cdrom''], [''mode'', ''r'']]], [''device'', [''vif'', [''bridge'', > ''virbr0''], [''mac'', ''00:16:3e:23:38:ed''], [''type'', ''ioemu'']]]] > [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:411) parseConfig: result is {''shadow_memory'': None, > ''start_time'': None, ''uuid'': ''cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac'', > ''on_crash'': ''restart'', ''on_reboot'': ''restart'', ''localtime'': None, > ''image'': [''hvm'', [''kernel'', ''/usr/lib/xen/boot/hvmloader''], > [''device_model'', ''/usr/lib64/xen/bin/qemu-dm''], [''vcpus'', 1], [''boot'', > ''dc''], [''sdl'', 1], [''display'', '':0.0''], [''xauthority'', > ''/tmp/.gdmZ6JR4T''], [''keymap'', ''en-us'']], ''on_poweroff'': ''destroy'', > ''bootloader_args'': None, ''cpus'': None, ''name'': ''win2003'', ''backend'': > [], ''vcpus'': 1, ''cpu_weight'': None, ''features'': None, ''vcpu_avail'': > None, ''memory'': 500, ''device'': [(''vbd'', [''vbd'', [''uname'', > ''file:/xen/win2003.img''], [''dev'', ''hda''], [''mode'', ''w'']]), (''vbd'', > [''vbd'', [''uname'', ''file:/xen/win2003.iso''], [''dev'', ''hdc:cdrom''], > [''mode'', ''r'']]), (''vif'', [''vif'', [''bridge'', ''virbr0''], [''mac'', > ''00:16:3e:23:38:ed''], [''type'', ''ioemu'']])], ''bootloader'': None, ''cpu'': > None, ''maxmem'': 500} > [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:1349) XendDomainInfo.construct: None > [2008-01-08 19:58:48 xend 2587] DEBUG (balloon:127) Balloon: 529284 > KiB free; need 2048; done. > [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:1397) XendDomainInfo.initDomain: 5 1.0 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: boot, val: dc > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: fda, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: fdb, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: soundhw, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: localtime, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: serial, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: std-vga, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: isa, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: vcpus, val: 1 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: acpi, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: usb, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: usbdevice, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: k, val: en-us > [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:1436) _initDomain:shadow_memory=0x0, maxmem=0x1f4, > memory=0x1f4. > [2008-01-08 19:58:48 xend 2587] DEBUG (balloon:127) Balloon: 528248 > KiB free; need 525312; done. > [2008-01-08 19:58:48 xend 2587] INFO (image:136) buildDomain os=None > dom=5 vcpus=1 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:268) domid = 5 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:269) image > /usr/lib/xen/boot/hvmloader > [2008-01-08 19:58:48 xend 2587] DEBUG (image:270) store_evtchn = 2 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:271) memsize = 500 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:272) vcpus = 1 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:273) pae = 0 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:274) acpi = 0 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:275) apic = 0 > [2008-01-08 19:58:48 xend 2587] DEBUG (DevController:110) > DevController: writing {''backend-id'': ''0'', ''virtual-device'': ''768'', > ''device-type'': ''disk'', ''state'': ''1'', ''backend'': > ''/local/domain/0/backend/vbd/5/768''} to > /local/domain/5/device/vbd/768. > [2008-01-08 19:58:48 xend 2587] DEBUG (DevController:112) > DevController: writing {''domain'': ''win2003'', ''frontend'': > ''/local/domain/5/device/vbd/768'', ''dev'': ''hda'', ''state'': ''1'', > ''params'': ''/xen/win2003.img'', ''mode'': ''w'', ''online'': ''1'', > ''frontend-id'': ''5'', ''type'': ''file''} to > /local/domain/0/backend/vbd/5/768. > [2008-01-08 19:58:48 xend 2587] DEBUG (blkif:24) exception looking up > device number for hdc: [Errno 2] No such file or directory: ''/dev/hdc'' > [2008-01-08 19:58:48 xend 2587] DEBUG (DevController:110) > DevController: writing {''backend-id'': ''0'', ''virtual-device'': ''5632'', > ''device-type'': ''cdrom'', ''state'': ''1'', ''backend'': > ''/local/domain/0/backend/vbd/5/5632''} to > /local/domain/5/device/vbd/5632. > [2008-01-08 19:58:48 xend 2587] DEBUG (DevController:112) > DevController: writing {''domain'': ''win2003'', ''frontend'': > ''/local/domain/5/device/vbd/5632'', ''dev'': ''hdc'', ''state'': ''1'', > ''params'': ''/xen/win2003.iso'', ''mode'': ''r'', ''online'': ''1'', > ''frontend-id'': ''5'', ''type'': ''file''} to > /local/domain/0/backend/vbd/5/5632. > [2008-01-08 19:58:49 xend 2587] DEBUG (DevController:110) > DevController: writing {''state'': ''1'', ''backend-id'': ''0'', ''backend'': > ''/local/domain/0/backend/vif/5/0''} to /local/domain/5/device/vif/0. > [2008-01-08 19:58:49 xend 2587] DEBUG (DevController:112) > DevController: writing {''bridge'': ''virbr0'', ''domain'': ''win2003'', > ''handle'': ''0'', ''script'': ''/etc/xen/scripts/vif-bridge'', ''state'': ''1'', > ''frontend'': ''/local/domain/5/device/vif/0'', ''mac'': > ''00:16:3e:23:38:ed'', ''online'': ''1'', ''frontend-id'': ''5'', ''type'': > ''ioemu''} to /local/domain/0/backend/vif/5/0. > [2008-01-08 19:58:49 xend 2587] INFO (image:407) spawning device > models: /usr/lib64/xen/bin/qemu-dm [''/usr/lib64/xen/bin/qemu-dm'', > ''-d'', ''5'', ''-m'', ''500'', ''-boot'', ''dc'', ''-vcpus'', ''1'', ''-k'', ''en-us'', > ''-domain-name'', ''win2003'', ''-net'', > ''nic,vlan=1,macaddr=00:16:3e:23:38:ed,model=rtl8139'', ''-net'', > ''tap,vlan=1,bridge=virbr0''] > [2008-01-08 19:58:49 xend 2587] INFO (image:409) device model pid: 23841 > [2008-01-08 19:58:49 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:756) Storing VM details: {''shadow_memory'': ''5'', > ''uuid'': ''cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac'', ''on_reboot'': > ''restart'', ''start_time'': ''1199793529.18'', ''on_poweroff'': ''destroy'', > ''name'': ''win2003'', ''xend/restart_count'': ''0'', ''vcpus'': ''1'', > ''vcpu_avail'': ''1'', ''memory'': ''500'', ''on_crash'': ''restart'', ''image'': > ''(hvm (kernel /usr/lib/xen/boot/hvmloader) (device_model > /usr/lib64/xen/bin/qemu-dm) (vcpus 1) (boot dc) (sdl 1) (display :0.0) > (xauthority /tmp/.gdmZ6JR4T) (keymap en-us))'', ''maxmem'': ''500''} > [2008-01-08 19:58:49 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:791) Storing domain details: {''console/port'': ''3'', > ''name'': ''win2003'', ''console/limit'': ''1048576'', ''vm'': > ''/vm/cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac'', ''domid'': ''5'', > ''cpu/0/availability'': ''online'', ''memory/target'': ''512000'', > ''store/ring-ref'': ''127998'', ''store/port'': ''2''} > [2008-01-08 19:58:49 xend 2587] DEBUG (DevController:143) Waiting for > devices vif. > [2008-01-08 19:58:49 xend 2587] DEBUG (DevController:149) Waiting for 0. > [2008-01-08 19:58:49 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:988) XendDomainInfo.handleShutdownWatch > [2008-01-08 19:58:49 xend 2587] DEBUG (DevController:476) > hotplugStatusCallback /local/domain/0/backend/vif/5/0/hotplug-status. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:476) > hotplugStatusCallback /local/domain/0/backend/vif/5/0/hotplug-status. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:490) > hotplugStatusCallback 1. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:143) Waiting for > devices usb. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:143) Waiting for > devices vbd. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:149) Waiting for 768. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:476) > hotplugStatusCallback > /local/domain/0/backend/vbd/5/768/hotplug-status. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:490) > hotplugStatusCallback 1. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:149) Waiting for 5632. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:476) > hotplugStatusCallback > /local/domain/0/backend/vbd/5/5632/hotplug-status. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:476) > hotplugStatusCallback > /local/domain/0/backend/vbd/5/5632/hotplug-status. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:490) > hotplugStatusCallback 1. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices irq. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices vkbd. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices vfb. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices pci. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices ioports. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices tap. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices vtpm. > [2008-01-08 19:58:52 xend 2587] INFO (XendDomain:370) Domain win2003 > (5) unpaused. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> sdl = 1SDL required $DISPLAY Open a window after "xm create vm"? -> no: check DISPLAY,xauth -> yes: not my problem> boot = "dc"boot = "d"> disk = [ "file:/xen/win2003.img,hda,w", "file:/xen/win2003.iso,hdc:cdrom,r" ]my sample: disk = [ ''file:/mnt/xenimg/test/vm7_win2k.sda.img,ioemu:hda,w'',''file:/mnt/xenimg /test/win2k.d1.iso,ioemu:hdc:cdrom,r'' ] # cdrom=....> vif = [ "mac=00:16:3e:23:38:ed,bridge=virbr0,type=ioemu" ]vif = [ ''mac=00:16:3e:23:A%d:A2, bridge=xenbr2'' % (vmid)] if you bridge not bind to eth0 use /etc/init.d/xenbridges (->google) possible to create PT before use: fdisk /xen/win2003.img you can (minimal) check config with xm_sh_tech (->google) regards Torsten LauNOC _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Artur Linhart - Linux communication
2008-Jan-12 18:41 UTC
RE: [Xen-users] Cannot install windows 2003 in Xen
Yes, and if Your windows 2003 server is the 64bit version I would also suggest to have pae=1 with regards, Archie -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Riccardo Veraldi Sent: Wednesday, January 09, 2008 7:43 AM To: openbsd shen Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] Cannot install windows 2003 in Xen windows NEEDS acpi. plus your config is not correct about booting from CDROM iso image. here is a working conf file for installation of windows: name = "winsrv2003R2" builder = "hvm" memory = "1024" disk = [ ''file:/xen/domU/ISOs/einsrv2003R2.iso,hdc:cdrom,r'',''file:/xen/domU/winsrv200 3R2.img,hda,w'', ] boot = "d" vif = [ ''mac=00:16:3e:3f:a9:16, bridge=xenbr0'', ] vnc=1 vncunused=1 acpi=1 apic=1 device_model = "/usr/lib64/xen/bin/qemu-dm" kernel = "/usr/lib/xen/boot/hvmloader" vcpus=1 on_reboot = ''restart'' on_crash = ''restart'' after install remove the boot entry qand hte iso image entry: name = "winsrv2003R2" builder = "hvm" memory = "1024" disk = [ ''file:/xen/domU/winsrv2003R2.img,hda,w'', ] vif = [ ''mac=00:16:3e:3f:a9:16, bridge=xenbr0'', ] vnc=1 vncunused=1 acpi=1 apic=1 device_model = "/usr/lib64/xen/bin/qemu-dm" kernel = "/usr/lib/xen/boot/hvmloader" vcpus=1 on_reboot = ''restart'' on_crash = ''restart'' Rick openbsd shen ha scritto:> HI all. I use rhel 5.1 server x86_64, I create a configure file > "/etc/xen/win2003": > > name = "win2003" > uuid = "cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac" > maxmem = 500 > memory = 500 > vcpus = 1 > builder = "hvm" > kernel = "/usr/lib/xen/boot/hvmloader" > #cdrom="/xen/win2003.iso" > pae = 0 > acpi = 0 > apic = 0 > on_poweroff = "destroy" > on_reboot = "restart" > on_crash = "restart" > device_model = "/usr/lib64/xen/bin/qemu-dm" > sdl = 1 > vnc = 0 > vncunused = 0 > keymap = "en-us" > disk = [ "file:/xen/win2003.img,hda,w","file:/xen/win2003.iso,hdc:cdrom,r" ]> boot = "dc" > vif = [ "mac=00:16:3e:23:38:ed,bridge=virbr0,type=ioemu" ] > nographic=0 > > > After I run "xm create win2003", there is the output of "xm list": > Name ID Mem(MiB) VCPUs StateTime(s)> Domain-0 0 1489 2 r-----34710.3> win2003 6 499 1 ------0.0> > > The installation program of win2003 cannot be started, the CPU usage > is 0, I don''t know why? > > > > > There is the output of /var/log/xen/xend.log: > > [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:200) XendDomainInfo.create([''vm'', [''name'', ''win2003''], > [''memory'', 500], [''maxmem'', 500], [''on_poweroff'', ''destroy''], > [''on_reboot'', ''restart''], [''on_crash'', ''restart''], [''vcpus'', 1], > [''uuid'', ''cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac''], [''image'', [''hvm'', > [''kernel'', ''/usr/lib/xen/boot/hvmloader''], [''device_model'', > ''/usr/lib64/xen/bin/qemu-dm''], [''vcpus'', 1], [''boot'', ''dc''], [''sdl'', > 1], [''display'', '':0.0''], [''xauthority'', ''/tmp/.gdmZ6JR4T''], [''keymap'', > ''en-us'']]], [''device'', [''vbd'', [''uname'', ''file:/xen/win2003.img''], > [''dev'', ''hda''], [''mode'', ''w'']]], [''device'', [''vbd'', [''uname'', > ''file:/xen/win2003.iso''], [''dev'', ''hdc:cdrom''], [''mode'', ''r'']]], > [''device'', [''vif'', [''bridge'', ''virbr0''], [''mac'', ''00:16:3e:23:38:ed''], > [''type'', ''ioemu'']]]]) > [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:306) parseConfig: config is [''vm'', [''name'', > ''win2003''], [''memory'', 500], [''maxmem'', 500], [''on_poweroff'', > ''destroy''], [''on_reboot'', ''restart''], [''on_crash'', ''restart''], > [''vcpus'', 1], [''uuid'', ''cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac''], > [''image'', [''hvm'', [''kernel'', ''/usr/lib/xen/boot/hvmloader''], > [''device_model'', ''/usr/lib64/xen/bin/qemu-dm''], [''vcpus'', 1], [''boot'', > ''dc''], [''sdl'', 1], [''display'', '':0.0''], [''xauthority'', > ''/tmp/.gdmZ6JR4T''], [''keymap'', ''en-us'']]], [''device'', [''vbd'', > [''uname'', ''file:/xen/win2003.img''], [''dev'', ''hda''], [''mode'', ''w'']]], > [''device'', [''vbd'', [''uname'', ''file:/xen/win2003.iso''], [''dev'', > ''hdc:cdrom''], [''mode'', ''r'']]], [''device'', [''vif'', [''bridge'', > ''virbr0''], [''mac'', ''00:16:3e:23:38:ed''], [''type'', ''ioemu'']]]] > [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:411) parseConfig: result is {''shadow_memory'': None, > ''start_time'': None, ''uuid'': ''cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac'', > ''on_crash'': ''restart'', ''on_reboot'': ''restart'', ''localtime'': None, > ''image'': [''hvm'', [''kernel'', ''/usr/lib/xen/boot/hvmloader''], > [''device_model'', ''/usr/lib64/xen/bin/qemu-dm''], [''vcpus'', 1], [''boot'', > ''dc''], [''sdl'', 1], [''display'', '':0.0''], [''xauthority'', > ''/tmp/.gdmZ6JR4T''], [''keymap'', ''en-us'']], ''on_poweroff'': ''destroy'', > ''bootloader_args'': None, ''cpus'': None, ''name'': ''win2003'', ''backend'': > [], ''vcpus'': 1, ''cpu_weight'': None, ''features'': None, ''vcpu_avail'': > None, ''memory'': 500, ''device'': [(''vbd'', [''vbd'', [''uname'', > ''file:/xen/win2003.img''], [''dev'', ''hda''], [''mode'', ''w'']]), (''vbd'', > [''vbd'', [''uname'', ''file:/xen/win2003.iso''], [''dev'', ''hdc:cdrom''], > [''mode'', ''r'']]), (''vif'', [''vif'', [''bridge'', ''virbr0''], [''mac'', > ''00:16:3e:23:38:ed''], [''type'', ''ioemu'']])], ''bootloader'': None, ''cpu'': > None, ''maxmem'': 500} > [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:1349) XendDomainInfo.construct: None > [2008-01-08 19:58:48 xend 2587] DEBUG (balloon:127) Balloon: 529284 > KiB free; need 2048; done. > [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:1397) XendDomainInfo.initDomain: 5 1.0 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: boot, val: dc > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: fda, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: fdb, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: soundhw, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: localtime, val:None> [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: serial, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: std-vga, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: isa, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: vcpus, val: 1 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: acpi, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: usb, val: None > [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: usbdevice, val:None> [2008-01-08 19:58:48 xend 2587] DEBUG (image:315) args: k, val: en-us > [2008-01-08 19:58:48 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:1436) _initDomain:shadow_memory=0x0, maxmem=0x1f4, > memory=0x1f4. > [2008-01-08 19:58:48 xend 2587] DEBUG (balloon:127) Balloon: 528248 > KiB free; need 525312; done. > [2008-01-08 19:58:48 xend 2587] INFO (image:136) buildDomain os=None > dom=5 vcpus=1 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:268) domid = 5 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:269) image > /usr/lib/xen/boot/hvmloader > [2008-01-08 19:58:48 xend 2587] DEBUG (image:270) store_evtchn = 2 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:271) memsize = 500 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:272) vcpus = 1 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:273) pae = 0 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:274) acpi = 0 > [2008-01-08 19:58:48 xend 2587] DEBUG (image:275) apic = 0 > [2008-01-08 19:58:48 xend 2587] DEBUG (DevController:110) > DevController: writing {''backend-id'': ''0'', ''virtual-device'': ''768'', > ''device-type'': ''disk'', ''state'': ''1'', ''backend'': > ''/local/domain/0/backend/vbd/5/768''} to > /local/domain/5/device/vbd/768. > [2008-01-08 19:58:48 xend 2587] DEBUG (DevController:112) > DevController: writing {''domain'': ''win2003'', ''frontend'': > ''/local/domain/5/device/vbd/768'', ''dev'': ''hda'', ''state'': ''1'', > ''params'': ''/xen/win2003.img'', ''mode'': ''w'', ''online'': ''1'', > ''frontend-id'': ''5'', ''type'': ''file''} to > /local/domain/0/backend/vbd/5/768. > [2008-01-08 19:58:48 xend 2587] DEBUG (blkif:24) exception looking up > device number for hdc: [Errno 2] No such file or directory: ''/dev/hdc'' > [2008-01-08 19:58:48 xend 2587] DEBUG (DevController:110) > DevController: writing {''backend-id'': ''0'', ''virtual-device'': ''5632'', > ''device-type'': ''cdrom'', ''state'': ''1'', ''backend'': > ''/local/domain/0/backend/vbd/5/5632''} to > /local/domain/5/device/vbd/5632. > [2008-01-08 19:58:48 xend 2587] DEBUG (DevController:112) > DevController: writing {''domain'': ''win2003'', ''frontend'': > ''/local/domain/5/device/vbd/5632'', ''dev'': ''hdc'', ''state'': ''1'', > ''params'': ''/xen/win2003.iso'', ''mode'': ''r'', ''online'': ''1'', > ''frontend-id'': ''5'', ''type'': ''file''} to > /local/domain/0/backend/vbd/5/5632. > [2008-01-08 19:58:49 xend 2587] DEBUG (DevController:110) > DevController: writing {''state'': ''1'', ''backend-id'': ''0'', ''backend'': > ''/local/domain/0/backend/vif/5/0''} to /local/domain/5/device/vif/0. > [2008-01-08 19:58:49 xend 2587] DEBUG (DevController:112) > DevController: writing {''bridge'': ''virbr0'', ''domain'': ''win2003'', > ''handle'': ''0'', ''script'': ''/etc/xen/scripts/vif-bridge'', ''state'': ''1'', > ''frontend'': ''/local/domain/5/device/vif/0'', ''mac'': > ''00:16:3e:23:38:ed'', ''online'': ''1'', ''frontend-id'': ''5'', ''type'': > ''ioemu''} to /local/domain/0/backend/vif/5/0. > [2008-01-08 19:58:49 xend 2587] INFO (image:407) spawning device > models: /usr/lib64/xen/bin/qemu-dm [''/usr/lib64/xen/bin/qemu-dm'', > ''-d'', ''5'', ''-m'', ''500'', ''-boot'', ''dc'', ''-vcpus'', ''1'', ''-k'', ''en-us'', > ''-domain-name'', ''win2003'', ''-net'', > ''nic,vlan=1,macaddr=00:16:3e:23:38:ed,model=rtl8139'', ''-net'', > ''tap,vlan=1,bridge=virbr0''] > [2008-01-08 19:58:49 xend 2587] INFO (image:409) device model pid: 23841 > [2008-01-08 19:58:49 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:756) Storing VM details: {''shadow_memory'': ''5'', > ''uuid'': ''cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac'', ''on_reboot'': > ''restart'', ''start_time'': ''1199793529.18'', ''on_poweroff'': ''destroy'', > ''name'': ''win2003'', ''xend/restart_count'': ''0'', ''vcpus'': ''1'', > ''vcpu_avail'': ''1'', ''memory'': ''500'', ''on_crash'': ''restart'', ''image'': > ''(hvm (kernel /usr/lib/xen/boot/hvmloader) (device_model > /usr/lib64/xen/bin/qemu-dm) (vcpus 1) (boot dc) (sdl 1) (display :0.0) > (xauthority /tmp/.gdmZ6JR4T) (keymap en-us))'', ''maxmem'': ''500''} > [2008-01-08 19:58:49 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:791) Storing domain details: {''console/port'': ''3'', > ''name'': ''win2003'', ''console/limit'': ''1048576'', ''vm'': > ''/vm/cc53ebaa-fa56-109c-8b0e-7c7d2414e9ac'', ''domid'': ''5'', > ''cpu/0/availability'': ''online'', ''memory/target'': ''512000'', > ''store/ring-ref'': ''127998'', ''store/port'': ''2''} > [2008-01-08 19:58:49 xend 2587] DEBUG (DevController:143) Waiting for > devices vif. > [2008-01-08 19:58:49 xend 2587] DEBUG (DevController:149) Waiting for 0. > [2008-01-08 19:58:49 xend.XendDomainInfo 2587] DEBUG > (XendDomainInfo:988) XendDomainInfo.handleShutdownWatch > [2008-01-08 19:58:49 xend 2587] DEBUG (DevController:476) > hotplugStatusCallback /local/domain/0/backend/vif/5/0/hotplug-status. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:476) > hotplugStatusCallback /local/domain/0/backend/vif/5/0/hotplug-status. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:490) > hotplugStatusCallback 1. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:143) Waiting for > devices usb. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:143) Waiting for > devices vbd. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:149) Waiting for 768. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:476) > hotplugStatusCallback > /local/domain/0/backend/vbd/5/768/hotplug-status. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:490) > hotplugStatusCallback 1. > [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:149) Waiting for5632.> [2008-01-08 19:58:51 xend 2587] DEBUG (DevController:476) > hotplugStatusCallback > /local/domain/0/backend/vbd/5/5632/hotplug-status. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:476) > hotplugStatusCallback > /local/domain/0/backend/vbd/5/5632/hotplug-status. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:490) > hotplugStatusCallback 1. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices irq. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices vkbd. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices vfb. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices pci. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices ioports. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices tap. > [2008-01-08 19:58:52 xend 2587] DEBUG (DevController:143) Waiting for > devices vtpm. > [2008-01-08 19:58:52 xend 2587] INFO (XendDomain:370) Domain win2003 > (5) unpaused. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users __________ Informace od NOD32 2776 (20080109) __________ Tato zprava byla proverena antivirovym systemem NOD32. http://www.nod32.cz _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users