On Mon, Oct 10, 2016 at 07:43:38PM +0300, Aleksei wrote:
Hi,
I have a Windows 7 SP1 Pro 64-bit VM which works fine on libvirt 2.3.0
and Qemu 2.7.0.
If I enable HyperV features
(
https://libvirt.org/formatdomain.html#elementsFeatures) like "relaxed",
"spinlocks" etc - VM doesn't boot. "Starting Windows" text appears
for
~2 seconds (no flying dots, no logo) and then it just goes to black
screen. If I switch HyperV features back off, it boots normally again.
Running VM with debuggging enabled (virsh --log win7_hyperv.log --debug
1 start win7) doesn't produce any errors in the log. There are no logs
This is just a debugging of virsh, that won't help. You need to look
for /var/log/libvirt/qemu/some_domain_name.log, but I still don't think
you'll find anything there. I think it might be more on point to ask on
qemu-devel, because that's more qemu-related.
for that attempted boot in the guest either - apparently it
doesn't get
to the point when Windows starts logging.
Attaching VM xml definition (with HyperV features enabled).
--
/--Regards, Aleksei/
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh edit win7
or other application using the libvirt API.
-->
<domain type='kvm'>
<name>win7</name>
<uuid>XXXXXXXX-XXXXX-XXXXX-XXXX-XXXXXXXXXXXXX</uuid>
<title>win7</title>
<memory unit='KiB'>4194304</memory>
<currentMemory unit='KiB'>4194304</currentMemory>
<vcpu placement='static'>2</vcpu>
<cputune>
<vcpupin vcpu='0' cpuset='2'/>
<vcpupin vcpu='1' cpuset='3'/>
</cputune>
<sysinfo type='smbios'>
<bios>
<entry name='vendor'>Vendor Inc.</entry>
<entry name='version'>V56</entry>
<entry name='date'>02/01/2015</entry>
<entry name='release'>48.11</entry>
</bios>
<system>
<entry name='manufacturer'>Vendor Inc.</entry>
<entry name='product'>Laptop XYZ</entry>
<entry name='version'>Not Specified</entry>
<entry name='serial'>772812F</entry>
<entry name='sku'>301A</entry>
<entry name='family'>Not Specified</entry>
</system>
<baseBoard>
<entry name='manufacturer'>Vendor Inc.</entry>
<entry name='product'>1DNVPA</entry>
<entry name='version'>F07</entry>
<entry name='serial'>/772812F/CN1111111111F/</entry>
<entry name='asset'>Not Specified</entry>
<entry name='location'>Not Specified</entry>
</baseBoard>
</sysinfo>
<os>
<type arch='x86_64' machine='pc-q35-2.7'>hvm</type>
<loader readonly='yes'
type='pflash'>/vms/UEFI_OVMF_win7/OVMF_CODE.fd</loader>
<nvram>/home/username/.config/libvirt/qemu/nvram/win7_VARS.fd</nvram>
<acpi>
<table type='slic'>/vms/win7/acpi_slic.bin</table>
</acpi>
<boot dev='hd'/>
<smbios mode='sysinfo'/>
</os>
<features>
<acpi/>
<apic/>
<hyperv>
<relaxed state='on'/>
<vapic state='on'/>
<spinlocks state='on' retries='4096'/>
<vpindex state='on'/>
<runtime state='on'/>
<synic state='on'/>
<stimer state='on'/>
<reset state='on'/>
<vendor_id state='on' value='KVM Hv'/>
</hyperv>
<kvm>
<hidden state='off'/>
</kvm>
<pvspinlock state='on'/>
<vmport state='off'/>
</features>
<cpu mode='host-model'>
<model fallback='allow'/>
</cpu>
<clock offset='utc'>
<timer name='rtc' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
<timer name='hypervclock' 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/qemu-system-x86_64</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='none'/>
<source file='/vms/w7_efi.qcow2'/>
<target dev='vda' bus='virtio'/>
<serial>Z1119192032</serial>
<address type='pci' domain='0x0000' bus='0x02'
slot='0x02' function='0x0'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='/vms/virtio-win-0.1.126.iso'/>
<target dev='sda' bus='sata'/>
<readonly/>
<address type='drive' controller='0' bus='0'
target='0' unit='0'/>
</disk>
<controller type='pci' index='0' model='pcie-root'/>
<controller type='pci' index='1'
model='dmi-to-pci-bridge'>
<model name='i82801b11-bridge'/>
<address type='pci' domain='0x0000' bus='0x00'
slot='0x1e' function='0x0'/>
</controller>
<controller type='pci' index='2' model='pci-bridge'>
<model name='pci-bridge'/>
<target chassisNr='2'/>
<address type='pci' domain='0x0000' bus='0x01'
slot='0x00' function='0x0'/>
</controller>
<controller type='virtio-serial' index='0'>
<address type='pci' domain='0x0000' bus='0x02'
slot='0x01' function='0x0'/>
</controller>
<controller type='sata' index='0'>
<address type='pci' domain='0x0000' bus='0x00'
slot='0x1f' function='0x2'/>
</controller>
<controller type='usb' index='0' model='piix3-uhci'>
<address type='pci' domain='0x0000' bus='0x02'
slot='0x09' function='0x0'/>
</controller>
<interface type='bridge'>
<mac address='52:54:00:00:00:00'/>
<source bridge='bridge0'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x02'
slot='0x08' 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='keyboard' bus='virtio'>
<address type='pci' domain='0x0000' bus='0x02'
slot='0x04' function='0x0'/>
</input>
<input type='tablet' bus='virtio'>
<address type='pci' domain='0x0000' bus='0x02'
slot='0x05' function='0x0'/>
</input>
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
<graphics type='spice'>
<listen type='socket'/>
</graphics>
<sound model='ich9'>
<address type='pci' domain='0x0000' bus='0x02'
slot='0x0a' function='0x0'/>
</sound>
<video>
<model type='qxl' ram='65536' vram='65536'
vgamem='16384' heads='1' primary='yes'/>
<address type='pci' domain='0x0000' bus='0x00'
slot='0x01' function='0x0'/>
</video>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x02'
slot='0x03' function='0x0'/>
</memballoon>
<rng model='virtio'>
<backend model='random'>/dev/random</backend>
<address type='pci' domain='0x0000' bus='0x02'
slot='0x0b' function='0x0'/>
</rng>
<panic model='isa'>
<address type='isa' iobase='0x505'/>
</panic>
</devices>
</domain>
_______________________________________________
libvirt-users mailing list
libvirt-users(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users