Results 1 to 7 of 7

Thread: 14.10 - KVM - Win7 - OVMF (EFI)

  1. #1
    Join Date
    Sep 2012
    Beans
    579
    Distro
    Ubuntu Gnome 17.04 Zesty Zapus

    14.10 - KVM - Win7 - OVMF (EFI)

    *Should* this work?

    Using the pre-built OVMF-x64-r15214 and an MS Win7 Ultimate clean ISO. The vm boots, I see the Tianocore EFI telling me my memory is fine, Win7 installer loads and I get the wooshy coloured blobs which do there stuff right until the logo is nearly formed and then HANG...guest unresponsive and I have to force reset/poweroff. I've read that Win8 works fine and installs with OVMF but as there are no functional Spice Guest Tools I need Win7. Legacy boot is fine, just wondering if my config is crap or that actually this shouldn't/doesn't work?

    Libvirt XML for my guest is...

    Code:
    <domain type='kvm'>
      <name>blackwindows7</name>
      <uuid>c7e8fd95-a42a-4ac9-9c55-4f8099f7bf85</uuid>
      <memory unit='KiB'>8388608</memory>
      <currentMemory unit='KiB'>8388608</currentMemory>
      <vcpu placement='static' current='4'>8</vcpu>
      <os>
        <type arch='x86_64' machine='pc-i440fx-utopic'>hvm</type>
        <loader>OVMF.fd</loader>
      </os>
      <features>
        <acpi/>
        <apic/>
        <pae/>
      </features>
      <cpu>
        <topology sockets='1' cores='4' threads='2'/>
      </cpu>
      <clock offset='localtime'>
        <timer name='rtc' tickpolicy='catchup'/>
        <timer name='pit' tickpolicy='delay'/>
        <timer name='hpet' present='no'/>
      </clock>
      <on_poweroff>destroy</on_poweroff>
      <on_reboot>restart</on_reboot>
      <on_crash>restart</on_crash>
      <pm>
        <suspend-to-mem enabled='no'/>
        <suspend-to-disk enabled='no'/>
      </pm>
      <devices>
        <emulator>/usr/bin/kvm-spice</emulator>
        <disk type='file' device='disk'>
          <driver name='qemu' type='qcow2'/>
          <source file='/mnt/vms/blackwindows7.qcow2'/>
          <target dev='vda' bus='virtio'/>
          <boot order='1'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
        </disk>
        <disk type='file' device='cdrom'>
          <driver name='qemu' type='raw'/>
          <source file='/mnt/share/Filestorage/Images/virtio-win-0.1-94.iso'/>
          <target dev='hda' bus='ide'/>
          <readonly/>
          <address type='drive' controller='0' bus='0' target='0' unit='0'/>
        </disk>
        <disk type='file' device='cdrom'>
          <driver name='qemu' type='raw'/>
          <source file='/mnt/share/Filestorage/Images/Microsoft Windows 7 Pro x64 SP1.iso'/>
          <target dev='hdb' bus='ide'/>
          <readonly/>
          <boot order='2'/>
          <address type='drive' controller='0' bus='0' target='0' unit='1'/>
        </disk>
        <controller type='usb' index='0' model='ich9-ehci1'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/>
        </controller>
        <controller type='usb' index='0' model='ich9-uhci1'>
          <master startport='0'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
        </controller>
        <controller type='usb' index='0' model='ich9-uhci2'>
          <master startport='2'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
        </controller>
        <controller type='usb' index='0' model='ich9-uhci3'>
          <master startport='4'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/>
        </controller>
        <controller type='pci' index='0' model='pci-root'/>
        <controller type='ide' index='0'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
        </controller>
        <controller type='virtio-serial' index='0'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
        </controller>
        <interface type='bridge'>
          <mac address='52:54:00:b7:03:e7'/>
          <source bridge='br0'/>
          <model type='rtl8139'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
        </interface>
        <serial type='pty'>
          <target port='0'/>
        </serial>
        <console type='pty'>
          <target type='serial' port='0'/>
        </console>
        <channel type='spicevmc'>
          <target type='virtio' name='com.redhat.spice.0'/>
          <address type='virtio-serial' controller='0' bus='0' port='1'/>
        </channel>
        <input type='tablet' bus='usb'/>
        <input type='mouse' bus='ps2'/>
        <input type='keyboard' bus='ps2'/>
        <graphics type='spice' port='5911' autoport='no' listen='127.0.0.1'>
          <listen type='address' address='127.0.0.1'/>
        </graphics>
        <sound model='ich6'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
        </sound>
        <video>
          <model type='qxl' ram='65536' vram='65536' heads='1'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
        </video>
        <redirdev bus='usb' type='spicevmc'>
        </redirdev>
        <redirdev bus='usb' type='spicevmc'>
        </redirdev>
        <redirdev bus='usb' type='spicevmc'>
        </redirdev>
        <redirdev bus='usb' type='spicevmc'>
        </redirdev>
        <memballoon model='virtio'>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
        </memballoon>
      </devices>
    </domain>

  2. #2
    Join Date
    Jan 2015
    Beans
    1

    Re: 14.10 - KVM - Win7 - OVMF (EFI)

    OMG why is the registration process so idiotic! I just wanted to drop an answer here. Who cares about a persistent user account? Please.

    So: you need a fresh build of OVMF.

    https://github.com/tianocore/edk2/bl...kg/README#L250

  3. #3
    Join Date
    Sep 2012
    Beans
    579
    Distro
    Ubuntu Gnome 17.04 Zesty Zapus

    Re: 14.10 - KVM - Win7 - OVMF (EFI)

    Thank you for persisting with the registration so you could reply to my post

    I assumed the pre-built binary was the latest, that will teach me!

  4. #4
    Join Date
    May 2008
    Beans
    94

    Re: 14.10 - KVM - Win7 - OVMF (EFI)

    I have the same problem.
    I've tried the OVMF package supplied with Trusty, and the package from git with name OVMF_r15214_20150121.fd (just copied the new ovmf file in to /usr/share/ovmf and changed name for VM use)... same result in both cases
    Did you manage to overcome the problem .. if so what steps did you take ?

    thanks in advance

  5. #5
    Join Date
    May 2008
    Beans
    94

    Re: 14.10 - KVM - Win7 - OVMF (EFI)

    aha ... found a way to do it
    from Alex Williamsons blog -> http://vfio.blogspot.com.au/2014/08/...thout-vga.html
    go to Gerd Hoffmans site https://www.kraxel.org/repos/jenkins/edk2/ and download the latest ovmf rpm (edk2.git-ovmf-x64-0-20150116.b862.gc4bac15.noarch.rpm)
    Open the rpm with archive manager eg. Ark and extract the file OVMF-pure-efi.fd
    copy the above file to your ovmf location ie. /usr/share/ovmf/OVMF-pure-efi.fd .... create a copy for use by your VM with a suitable name eg. in my case OVMF_win7_ult.fd and a link with the same name in /usr/share/qemu
    Then you can specify the new file name in your VM specification (in my case I use Virsh to edit the VM definition and replace "bios.bin" with the new name BEFORE installing Windows)
    The other trick is that you have to get into the UEFI boot menu and specify the boot device for UEFI to correctly initiate the boot ... then Bob's your uncle

    Much easier than the full VGA passthrough process

  6. #6
    Join Date
    Sep 2011
    Beans
    12

    Re: 14.10 - KVM - Win7 - OVMF (EFI)

    Quote Originally Posted by redger View Post
    aha ... found a way to do it
    from Alex Williamsons blog -> http://vfio.blogspot.com.au/2014/08/...thout-vga.html
    go to Gerd Hoffmans site https://www.kraxel.org/repos/jenkins/edk2/ and download the latest ovmf rpm (edk2.git-ovmf-x64-0-20150116.b862.gc4bac15.noarch.rpm)
    Open the rpm with archive manager eg. Ark and extract the file OVMF-pure-efi.fd
    copy the above file to your ovmf location ie. /usr/share/ovmf/OVMF-pure-efi.fd .... create a copy for use by your VM with a suitable name eg. in my case OVMF_win7_ult.fd and a link with the same name in /usr/share/qemu
    Then you can specify the new file name in your VM specification (in my case I use Virsh to edit the VM definition and replace "bios.bin" with the new name BEFORE installing Windows)
    The other trick is that you have to get into the UEFI boot menu and specify the boot device for UEFI to correctly initiate the boot ... then Bob's your uncle

    Much easier than the full VGA passthrough process
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Thanks realised the ovmf is experimental and for uefi -- will post in other area.

    Does intel provide non uefi firmware for the qemu kvm?.

    Regards
    Last edited by tuxinteger; February 1st, 2015 at 02:51 PM. Reason: files

  7. #7
    Join Date
    Sep 2012
    Beans
    579
    Distro
    Ubuntu Gnome 17.04 Zesty Zapus

    Re: 14.10 - KVM - Win7 - OVMF (EFI)

    Quote Originally Posted by tuxinteger View Post
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Thanks realised the ovmf is experimental and for uefi -- will post in other area.

    Does intel provide non uefi firmware for the qemu kvm?.

    Regards
    qemu is packaged with seabios which is "non uefi" as in Legacy BIOS, but its not produced by Intel.

    http://www.seabios.org/SeaBIOS
    Last edited by KillerKelvUK; February 3rd, 2015 at 04:49 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •