I''m tried to create an HVM with Windows XP on Debian Lenny, but it doesn''t work properly. Apparently, HVM started: # xm create windowsxp.cfg Using config file "./windowsxp.cfg". VNC= 1 Started domain windowsxp But nothing happens, no boot and no vnc windows: # xm list Name ID Mem VCPUs State Time(s) Domain-0 0 894 2 r----- 188.3 windowsxp 4 1024 1 ------ 0.0 # vncviewer localhost vncviewer: ConnectToTcpAddr: connect: Connection refused Unable to connect to VNC server My windowsxp.cfg is: import os, re arch = os.uname()[4] if re.search(''64'', arch): arch_libdir = ''lib64'' else: arch_libdir = ''lib'' kernel = "/usr/lib/xen-3.2-1/boot/hvmloader" builder=''hvm'' memory = 1024 shadow_memory = 8 name = "windowsxp" vif = [ '''' ] disk = [ ''phy:/dev/sda3,ioemu:hda,w'', ''file:/root/windows.iso,ioemu:hdc:cdrom,r'' ] pae = 1 boot="d" vnc = 1 sdl = 0 vncviewer = 1 vnclisten = ''127.0.0.1'' acpi = 1 apic = 1 device_model = ''/usr/lib/xen-3.2-1/bin/qemu-dm'' stdvga = 0 serial = ''pty'' usbdevice = ''tablet'' Last lines of xend.log [2009-07-09 13:02:40 3220] DEBUG (DevController:151) Waiting for devices irq. [2009-07-09 13:02:40 3220] DEBUG (DevController:151) Waiting for devices vkbd. [2009-07-09 13:02:40 3220] DEBUG (DevController:151) Waiting for devices vfb. [2009-07-09 13:02:40 3220] DEBUG (DevController:151) Waiting for devices console. [2009-07-09 13:02:40 3220] DEBUG (DevController:156) Waiting for 0. [2009-07-09 13:02:40 3220] DEBUG (DevController:151) Waiting for devices pci. [2009-07-09 13:02:40 3220] DEBUG (DevController:151) Waiting for devices ioports. [2009-07-09 13:02:40 3220] DEBUG (DevController:151) Waiting for devices tap. [2009-07-09 13:02:40 3220] DEBUG (DevController:151) Waiting for devices vtpm. [2009-07-09 13:02:40 3220] INFO (XendDomain:1165) Domain windowsxp (4) unpaused. Any help would be apreciated. Thanks Gustav O. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Keith Coleman
2009-Jul-09 16:49 UTC
Re: [Xen-users] domu hvm doesn''t boot under debian lenny
On Thu, Jul 9, 2009 at 12:12 PM, Gustavo<gustavo@memorea.com> wrote:> I''m tried to create an HVM with Windows XP on Debian Lenny, but it doesn''t work properly. Apparently, HVM started: > > # xm create windowsxp.cfg > > Using config file "./windowsxp.cfg". > VNC= 1 > Started domain windowsxp > > But nothing happens, no boot and no vnc windows: > > # xm list > > Name ID Mem VCPUs State Time(s) > Domain-0 0 894 2 r----- 188.3 > windowsxp 4 1024 1 ------ 0.0 >Your version of xen may not be able to properly mount the iso.Check your qemu logs for clues (/var/log/xen/qemu-dm-...)> disk = [ ''phy:/dev/sda3,ioemu:hda,w'', ''file:/root/windows.iso,ioemu:hdc:cdrom,r'' ]You could try mounting the iso and changing the disk line of your config. # losetup -r /dev/loop0 /root/windows.iso disk = [ ''phy:/dev/sda3,ioemu:hda,w'', ''phy:/dev/loop0,ioemu:hdc:cdrom,r'' ] Keith Coleman _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Gustavo
2009-Jul-09 17:22 UTC
Re: [Xen-users] domu hvm doesn''t boot under debian lenny (nework config problem?)
Thanks for your response. I''m looked at qemu-dm-xx.log, and it''s sounds like a network problem: Watching /local/domain/0/device-model/6/logdirty/next-active Watching /local/domain/0/device-model/6/command -c config qemu network with xen bridge for tap0 xenbr0 bridge xenbr0 does not exist! /etc/xen/scripts/qemu-ifup: could not launch network script Could not initialize device ''tap'' But apparently, the network configs it''s ok: vi xend-config.sxp (network-script network-bridge) (vif-script vif-bridge) Mounting the iso file like you suggested keeps the same errors. How can I config this properly? Thanks, Thu, 9 Jul 2009 12:49:31 -0400, Keith Coleman <list.keith@scaltro.com> escreveu:> On Thu, Jul 9, 2009 at 12:12 PM, Gustavo<gustavo@memorea.com> wrote: > > I''m tried to create an HVM with Windows XP on Debian Lenny, but it doesn''t work properly. Apparently, HVM started: > > > > # xm create windowsxp.cfg > > > > Using config file "./windowsxp.cfg". > > VNC= 1 > > Started domain windowsxp > > > > But nothing happens, no boot and no vnc windows: > > > > # xm list > > > > Name ID Mem VCPUs State Time(s) > > Domain-0 0 894 2 r----- 188.3 > > windowsxp 4 1024 1 ------ 0.0 > > > > Your version of xen may not be able to properly mount the iso.Check > your qemu logs for clues (/var/log/xen/qemu-dm-...) > > > disk = [ ''phy:/dev/sda3,ioemu:hda,w'', ''file:/root/windows.iso,ioemu:hdc:cdrom,r'' ] > > You could try mounting the iso and changing the disk line of your config. > > # losetup -r /dev/loop0 /root/windows.iso > disk = [ ''phy:/dev/sda3,ioemu:hda,w'', ''phy:/dev/loop0,ioemu:hdc:cdrom,r'' ] > > > > Keith Coleman > > _______________________________________________ > 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
Keith Coleman
2009-Jul-09 17:28 UTC
Re: [Xen-users] domu hvm doesn''t boot under debian lenny (nework config problem?)
On Thu, Jul 9, 2009 at 1:22 PM, Gustavo<gustavo@memorea.com> wrote:> Thanks for your response. > > I''m looked at qemu-dm-xx.log, and it''s sounds like a network problem: > > Watching /local/domain/0/device-model/6/logdirty/next-active > Watching /local/domain/0/device-model/6/command > -c config qemu network with xen bridge for > tap0 xenbr0 > bridge xenbr0 does not exist! > /etc/xen/scripts/qemu-ifup: could not launch network script > Could not initialize device ''tap'' >Have you installed bridge-utils? Try running ''brctl show'' If that doesn''t work then install bridge utils and reboot. # apt-get install bridge-utils Keith Coleman _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Gustavo
2009-Jul-09 17:31 UTC
Re: [Xen-users] domu hvm doesn''t boot under debian lenny (nework config problem?)
I thing bridge-utils is working properly: # brctl show bridge name bridge id STP enabled interfaces eth0 8000.001636e86242 no peth0 vif6.0 # apt-get install bridge-utils Reading package lists... Done Building dependency tree Reading state information... Done bridge-utils is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Thu, 9 Jul 2009 13:28:39 -0400, Keith Coleman <list.keith@scaltro.com> escreveu:> On Thu, Jul 9, 2009 at 1:22 PM, Gustavo<gustavo@memorea.com> wrote: > > Thanks for your response. > > > > I''m looked at qemu-dm-xx.log, and it''s sounds like a network problem: > > > > Watching /local/domain/0/device-model/6/logdirty/next-active > > Watching /local/domain/0/device-model/6/command > > -c config qemu network with xen bridge for > > tap0 xenbr0 > > bridge xenbr0 does not exist! > > /etc/xen/scripts/qemu-ifup: could not launch network script > > Could not initialize device ''tap'' > > > > Have you installed bridge-utils? Try running ''brctl show'' > > If that doesn''t work then install bridge utils and reboot. > > # apt-get install bridge-utils > > > > Keith Coleman > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Keith Coleman
2009-Jul-09 17:38 UTC
Re: [Xen-users] domu hvm doesn''t boot under debian lenny (nework config problem?)
On Thu, Jul 9, 2009 at 1:31 PM, Gustavo<gustavo@memorea.com> wrote:> I thing bridge-utils is working properly: > > # brctl show > bridge name bridge id STP enabled interfaces > eth0 8000.001636e86242 no peth0 > vif6.0In the config file you posted the vif line was empty. Try setting it to: vif = [ ''type=ioemu, bridge=eth0'' ] Keith Coleman _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Gustavo
2009-Jul-09 17:41 UTC
Re: [Xen-users] domu hvm doesn''t boot under debian lenny (nework config problem?)
Keith, you are a HERO!!!!! Thanks Thu, 9 Jul 2009 13:38:11 -0400, Keith Coleman <list.keith@scaltro.com> escreveu:> On Thu, Jul 9, 2009 at 1:31 PM, Gustavo<gustavo@memorea.com> wrote: > > I thing bridge-utils is working properly: > > > > # brctl show > > bridge name bridge id STP enabled interfaces > > eth0 8000.001636e86242 no peth0 > > vif6.0 > > In the config file you posted the vif line was empty. Try setting it to: > > vif = [ ''type=ioemu, bridge=eth0'' ] > > > Keith Coleman > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users