[Spice-devel] BSOD when booting Win7 Pro with spice

Alon Levy alevy at redhat.com
Sat Jan 29 03:15:21 PST 2011


On Sat, Jan 29, 2011 at 12:06:23PM +0100, Julian Sikorski wrote:
> W dniu 29.01.2011 11:02, Alon Levy pisze:
> > On Sat, Jan 29, 2011 at 10:56:16AM +0100, Julian Sikorski wrote:
> >> W dniu 2011-01-29 10:47, Alon Levy pisze:
> >>> On Fri, Jan 28, 2011 at 09:54:37PM +0100, Julian Sikorski wrote:
> >>>> W dniu 28.01.2011 21:06, Alon Levy pisze:
> >>>>> On Fri, Jan 28, 2011 at 08:48:06PM +0100, Julian Sikorski wrote:
> >>>>>> W dniu 28.01.2011 15:32, Alon Levy pisze:
> >>>>>>> On Fri, Jan 28, 2011 at 12:45:07AM +0100, Julian Sikorski wrote:
> >>>>>>>> Hi,
> >>>>>>>>
> >>>>>>>> I wanted to try spice on Fedora 14. I have a Win7 Pro 32bit image which
> >>>>>>>> was created with virt manager. I later added virtio network and drive to
> >>>>>>>> it, installing drivers in the guest as well.
> >>>>>>>> The problem is that if I try to use this machine as per F14 wiki, i.e.:
> >>>>>>>> qemu /var/lib/libvirt/images/windows.img -usbdevice tablet -soundhw ac97
> >>>>>>>> -vga qxl -spice port=5930,password=asd -enable-kvm
> >>>>>>>> the windows guest will BSOD during boot (note that I need to do this as
> >>>>>>>> su due to the way how virt-manager sets permissions).
> >>>>>>>> Is this issue known? What info could I provide to help resolving this?
> >>>>>>>
> >>>>>>> So which version do you have, 0.7.2?
> >>>>>>
> >>>>>> I tried both the version from f14 updates and from f14 preview repo.
> >>>>>> Neither of them works.
> >>>>>>
> >>>>>>> does the vm boot normally when booting without spice?
> >>>>>>
> >>>>>> Yes, I can boot the machine via the virt-manager just fine.
> >>>>>>
> >>>>>> does the vm have qxl driver installed already?
> >>>>>>
> >>>>>> IIRC it does not. Where I can downlad such driver, and would it be OK to
> >>>>>> install it while booted via virt-manager with no spice?
> >>>>>>
> >>>>> If you didn't install it it wouldn't have, the driver isn't part of win7
> >>>>> install or available via updates or something. But actually I don't want you
> >>>>> to install it, I mean it might help (so you might want to try that - it's
> >>>>> available at http://www.spice-space.org/download.html) but this means the
> >>>>> problem is with the qxl device vga emulation. (I still have no clue)
> >>>>
> >>>> I'm not sure how to install the driver with the device not present I'm
> >>>> afraid...
> >>>
> >>> My bad, I souldn't have suggested that, I didn't understand. I don't know either
> >>> btw, wish I did.
> >>>
> >>>>
> >>>>>
> >>>>>>> can you give the bsod screenshot (from monitor in qemu you can do screendump <filename.ppm>)?
> >>>>>>
> >>>>>> http://belegdol.fedorapeople.org/spicebsod.png
> >>>>>
> >>>>> How much memory do you give the vm? it seems like you are giving it the default. Could you try enlarging that? I'm just saying this because
> >>>>> http://support.microsoft.com/kb/326679
> >>>>>
> >>>>
> >>>> Looks like you were right. In virt-manager I gave it 1 GB, which was
> >>>> enough. But when I added -m 1596 to the command line spice also started
> >>>> to work. Unfortunately, it brought the machine to crawl since I only
> >>>> have 2 GB physical ram in this laptop.
> >>>
> >>> I run win7 32 bit win7 vm's with -m 1024. I'm not running F14, but git (actually
> >>> some strange hybrid), so I can't be sure it's exactly the same.
> >>
> >> I will try with the packages from the virt-preview repo maybe that will
> >> help.
> >>
> >>>
> >>>> By the way, is the configuration made with virt-manager respected when
> >>>> you run qemu from the command line? To me it seemed like virtio harddisk
> >>>> was gone since windows was looking for a driver for a qemu harddrive or
> >>>> something along these lines.
> >>> It shouldn't be. I'm not even sure where virt-manager keeps it's configuration.
> >>
> >> IIRC it keeps it in the domain xml file wherever that is stored. In that
> >> case, what would be the command line to enable virtio disk and network?
> > Just run virt-manager, then ps xaw | grep qemu and pick it from there :)
> > 
> > I think this is correct, but I'm no expert on these parameters: (i.e.
> >  this is what I'm running)
> > 
> >   "-net nic,macaddr=00:00:11:11:22:00,model=virtio"
> >   '-drive file="%(image)s",index=0,media=disk,cache=writeback,if=virtio'
> > 
> 
> OK, it seems like I hit another issue. I updated to libvirt from
> virt-preview repo and qemu from bug 664192. Then I edited the domain xml
> to enable qxl graphics and spice (xml attached for convenience).
It isn't. Your previous emails didn't have attachments as well. Maybe
they are being stripped somewhere along the way?

> The problem - virsh start windows attempts to add -spice
> port=5900,addr=127.0.0.1,disable-ticketing, which fails due to wrong
> addr parameter. I take that out, getting:
> 
> QEMU_AUDIO_DRV=spice /usr/bin/qemu-kvm -S -M fedora-13 -enable-kvm -m
> 1024 -smp 1,sockets=1,cores=1,threads=1 -name windows -uuid
> a5a9cf48-603e-5795-ba0f-b5692ce2d93d -nodefconfig -nodefaults -chardev
> socket,id=monitor,path=/var/lib/libvirt/qemu/windows.monitor,server,nowait
> -mon chardev=monitor,mode=control -rtc base=localtime -boot c -drive
> if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device
> ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -drive
> file=/var/lib/libvirt/images/windows.img,if=none,id=drive-virtio-disk0,boot=on,format=raw
> -device
> virtio-blk-pci,bus=pci.0,addr=0x6,drive=drive-virtio-disk0,id=virtio-disk0
> -netdev tap,fd=42,id=hostnet0 -device
> virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:6a:d1:82,bus=pci.0,addr=0x4
> -chardev pty,id=serial0 -device isa-serial,chardev=serial0 -usb -device
> usb-tablet,id=input0 -spice port=5900,disable-ticketing -vga qxl -device
> AC97,id=sound0,bus=pci.0,addr=0x5 -device
> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
> 
> and qemu starts, but when I connect to it using
> 
> spicec -h localhost -p 5900
> 
> all I can see is black screen.

This sounds like missing vgabios. Try running without -spice (but with -vga qxl)
, is it still black? you can workaround this by adding "-L <qemu_dir>/pc-bios"
and making sure that directory contains vgabios-qxl.bin

> 
> >>
> >>>>
> >>>>>>
> >>>>>> I hope this will make it more clear what I am trying to accomplish, or
> >>>>>> show where I am doing the wrong thing.
> >>>>>
> >>>>> It certainly helps, thanks for taking the time to report this.
> >>>>>
> >>>>
> >>>> No problem.
> >>>>
> >>>> Cheers,
> >>>> Julian
> >>
> 


More information about the Spice-devel mailing list