Info about windows guest performance

Hello, while in my activities to accomplish migration of a Windows 2008 R2 VM (with an Oracle RDBMS inside) from vSphere to oVirt, I'm going to check performance related things. Up to now I only ran Windows guests inside my laptops and not inside an oVirt infrastructure. Now I successfully migrated this kind of VM to oVirt 4.1.9. The guest had an LSI logic sas controller. Inside the oVirt host that I used as proxy (for VMware virt-v2v) I initially didn't have the virtio-win rpm. I presume that has been for this reason that the oVirt guest has been configured with IDE disks... Can you confirm? For this test I started with ide, then added a virtio-scsi disk and then changed also the boot disk to virtio-scsi and all now goes well, with also ovirt-guest-tools-iso-4.1-3 provided iso used to install qxl and so on... So far so good. I found this bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1277353 where it seems that " For optimum I/O performance it's critical to make sure that Windows guests use the Hyper-V reference counter feature. QEMU command line should include -cpu ...,hv_time and -no-hpet " Analyzing my command line I see the "-no-hpet" but I dont see the "hv_time" See below full comand. Any hints? Thanks, Gianluca /usr/libexec/qemu-kvm -name guest=testmig,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-12-testmig/master-key.aes -machine pc-i440fx-rhel7.3.0,accel=kvm,usb=off,dump-guest-core=off -cpu Westmere,vmx=on -m size=4194304k,slots=16,maxmem=16777216k -realtime mlock=off -smp 2,maxcpus=16,sockets=16,cores=1,threads=1 -numa node,nodeid=0,cpus=0-1,mem=4096 -uuid x-y-z-x-y -smbios type=1,manufacturer=oVirt,product=oVirt Node,version=7-4.1708.el7.centos,serial=xx,uuid=yy -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-12-testmig/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=2018-02-09T12:41:41,driftfix=slew -global kvm-pit.lost_tick_policy=delay -no-hpet -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x5 -device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x4 -drive if=none,id=drive-ide0-1-0,readonly=on -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -drive file=/rhev/data-center/ef17cad6-7724-4cd8-96e3-9af6e529db51/fa33df49-b09d-4f86-9719-ede649542c21/images/2de93ee3-7d6e-4a10-88c4-abc7a11fb687/a9f4e35b-4aa0-45e8-b775-1a046d1851aa,format=qcow2,if=none,id=drive-scsi0-0-0-1,serial=2de93ee3-7d6e-4a10-88c4-abc7a11fb687,cache=none,werror=stop,rerror=stop,aio=native -device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=1,drive=drive-scsi0-0-0-1,id=scsi0-0-0-1,bootindex=1 -drive file=/rhev/data-center/ef17cad6-7724-4cd8-96e3-9af6e529db51/fa33df49-b09d-4f86-9719-ede649542c21/images/f821da0a-cec7-457c-88a4-f83f33404e65/0d0c4244-f184-4eaa-b5bf-8dc65c7069bb,format=raw,if=none,id=drive-scsi0-0-0-0,serial=f821da0a-cec7-457c-88a4-f83f33404e65,cache=none,werror=stop,rerror=stop,aio=native -device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0 -netdev tap,fd=30,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=00:50:56:9d:c9:29,bus=pci.0,addr=0x3 -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/channels/421d6f1b-58e3-54a4-802f-fb52f7831369.com.redhat.rhevm.vdsm,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.rhevm.vdsm -chardev socket,id=charchannel1,path=/var/lib/libvirt/qemu/channels/421d6f1b-58e3-54a4-802f-fb52f7831369.org.qemu.guest_agent.0,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=org.qemu.guest_agent.0 -chardev spicevmc,id=charchannel2,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=3,chardev=charchannel2,id=channel2,name=com.redhat.spice.0 -spice tls-port=5900,addr=10.4.192.32,x509-dir=/etc/pki/vdsm/libvirt-spice,tls-channel=default,tls-channel=main,tls-channel=display,tls-channel=inputs,tls-channel=cursor,tls-channel=playback,tls-channel=record,tls-channel=smartcard,tls-channel=usbredir,seamless-migration=on -device qxl-vga,id=video0,ram_size=67108864,vram_size=8388608,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2 -msg timestamp=on

On 9 Feb 2018, at 14:04, Gianluca Cecchi <gianluca.cecchi@gmail.com> = wrote: =20 Hello, while in my activities to accomplish migration of a Windows 2008 R2 VM = (with an Oracle RDBMS inside) from vSphere to oVirt, I'm going to check =
--Apple-Mail=_2FD1F378-589D-49F8-9290-B20DCD2BF6A6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 performance related things.
=20 Up to now I only ran Windows guests inside my laptops and not inside = an oVirt infrastructure. =20 Now I successfully migrated this kind of VM to oVirt 4.1.9. The guest had an LSI logic sas controller. Inside the oVirt host that = I used as proxy (for VMware virt-v2v) I initially didn't have the = virtio-win rpm. I presume that has been for this reason that the oVirt guest has been = configured with IDE disks=E2=80=A6
Can you confirm? =20 For this test I started with ide, then added a virtio-scsi disk and =
yes you won=E2=80=99t get any decent performance unless you use virtio = drivers. Either virtio-block or virtio-scsi then changed also the boot disk to virtio-scsi and all now goes well, = with also ovirt-guest-tools-iso-4.1-3 provided iso used to install qxl = and so on...
=20 So far so good. I found this bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=3D1277353 = <https://bugzilla.redhat.com/show_bug.cgi?id=3D1277353> =20 where it seems that=20 =20 " For optimum I/O performance it's critical to make sure that Windows = guests use the Hyper-V reference counter feature. QEMU command line = should include =20 -cpu ...,hv_time =20 and =20 -no-hpet " Analyzing my command line I see the "-no-hpet" but I dont see the = "hv_time" See below full comand. Any hints?
What OS type do you have set for that VM? Make sure it matches the = Windows version. That enables the hyperv enlightenments settings Thanks, michal
Thanks, Gianluca =20 /usr/libexec/qemu-kvm -name guest=3Dtestmig,debug-threads=3Don -S -object = secret,id=3DmasterKey0,format=3Draw,file=3D/var/lib/libvirt/qemu/domain-12= -testmig/master-key.aes -machine pc-i440fx-rhel7.3.0,accel=3Dkvm,usb=3Doff,dump-guest-core=3Doff=
-cpu Westmere,vmx=3Don -m size=3D4194304k,slots=3D16,maxmem=3D16777216k -realtime mlock=3Doff -smp 2,maxcpus=3D16,sockets=3D16,cores=3D1,threads=3D1 -numa node,nodeid=3D0,cpus=3D0-1,mem=3D4096 -uuid x-y-z-x-y -smbios type=3D1,manufacturer=3DoVirt,product=3DoVirt Node,version=3D7-4.1708.el7.centos,serial=3Dxx,uuid=3Dyy -no-user-config -nodefaults -chardev = socket,id=3Dcharmonitor,path=3D/var/lib/libvirt/qemu/domain-12-testmig/mon= itor.sock,server,nowait -mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol -rtc base=3D2018-02-09T12:41:41,driftfix=3Dslew -global kvm-pit.lost_tick_policy=3Ddelay -no-hpet -no-shutdown -boot strict=3Don -device piix3-usb-uhci,id=3Dusb,bus=3Dpci.0,addr=3D0x1.0x2 -device virtio-scsi-pci,id=3Dscsi0,bus=3Dpci.0,addr=3D0x5 -device = virtio-serial-pci,id=3Dvirtio-serial0,max_ports=3D16,bus=3Dpci.0,addr=3D0x= 4 -drive if=3Dnone,id=3Ddrive-ide0-1-0,readonly=3Don -device ide-cd,bus=3Dide.1,unit=3D0,drive=3Ddrive-ide0-1-0,id=3Dide0-1-0=
-drive = file=3D/rhev/data-center/ef17cad6-7724-4cd8-96e3-9af6e529db51/fa33df49-b09= d-4f86-9719-ede649542c21/images/2de93ee3-7d6e-4a10-88c4-abc7a11fb687/a9f4e= 35b-4aa0-45e8-b775-1a046d1851aa,format=3Dqcow2,if=3Dnone,id=3Ddrive-scsi0-= 0-0-1,serial=3D2de93ee3-7d6e-4a10-88c4-abc7a11fb687,cache=3Dnone,werror=3D= stop,rerror=3Dstop,aio=3Dnative -device = scsi-hd,bus=3Dscsi0.0,channel=3D0,scsi-id=3D0,lun=3D1,drive=3Ddrive-scsi0-= 0-0-1,id=3Dscsi0-0-0-1,bootindex=3D1 -drive = file=3D/rhev/data-center/ef17cad6-7724-4cd8-96e3-9af6e529db51/fa33df49-b09= d-4f86-9719-ede649542c21/images/f821da0a-cec7-457c-88a4-f83f33404e65/0d0c4= 244-f184-4eaa-b5bf-8dc65c7069bb,format=3Draw,if=3Dnone,id=3Ddrive-scsi0-0-= 0-0,serial=3Df821da0a-cec7-457c-88a4-f83f33404e65,cache=3Dnone,werror=3Dst= op,rerror=3Dstop,aio=3Dnative -device = scsi-hd,bus=3Dscsi0.0,channel=3D0,scsi-id=3D0,lun=3D0,drive=3Ddrive-scsi0-= 0-0-0,id=3Dscsi0-0-0-0 -netdev tap,fd=3D30,id=3Dhostnet0 -device = e1000,netdev=3Dhostnet0,id=3Dnet0,mac=3D00:50:56:9d:c9:29,bus=3Dpci.0,addr= =3D0x3 -chardev = socket,id=3Dcharchannel0,path=3D/var/lib/libvirt/qemu/channels/421d6f1b-58= e3-54a4-802f-fb52f7831369.com.redhat.rhevm.vdsm,server,nowait -device = virtserialport,bus=3Dvirtio-serial0.0,nr=3D1,chardev=3Dcharchannel0,id=3Dc= hannel0,name=3Dcom.redhat.rhevm.vdsm -chardev = socket,id=3Dcharchannel1,path=3D/var/lib/libvirt/qemu/channels/421d6f1b-58= e3-54a4-802f-fb52f7831369.org.qemu.guest_agent.0,server,nowait -device = virtserialport,bus=3Dvirtio-serial0.0,nr=3D2,chardev=3Dcharchannel1,id=3Dc= hannel1,name=3Dorg.qemu.guest_agent.0 -chardev spicevmc,id=3Dcharchannel2,name=3Dvdagent -device = virtserialport,bus=3Dvirtio-serial0.0,nr=3D3,chardev=3Dcharchannel2,id=3Dc= hannel2,name=3Dcom.redhat.spice.0 -spice = tls-port=3D5900,addr=3D10.4.192.32,x509-dir=3D/etc/pki/vdsm/libvirt-spice,= tls-channel=3Ddefault,tls-channel=3Dmain,tls-channel=3Ddisplay,tls-channel= =3Dinputs,tls-channel=3Dcursor,tls-channel=3Dplayback,tls-channel=3Drecord= ,tls-channel=3Dsmartcard,tls-channel=3Dusbredir,seamless-migration=3Don -device = qxl-vga,id=3Dvideo0,ram_size=3D67108864,vram_size=3D8388608,vram64_size_mb= =3D0,vgamem_mb=3D16,max_outputs=3D1,bus=3Dpci.0,addr=3D0x2 -msg timestamp=3Don =20 _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
--Apple-Mail=_2FD1F378-589D-49F8-9290-B20DCD2BF6A6 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><br = class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div = class=3D"">On 9 Feb 2018, at 14:04, Gianluca Cecchi <<a = href=3D"mailto:gianluca.cecchi@gmail.com" = class=3D"">gianluca.cecchi@gmail.com</a>> wrote:</div><br = class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" = class=3D"">Hello,<div class=3D"">while in my activities to accomplish = migration of a Windows 2008 R2 VM (with an Oracle RDBMS inside) from = vSphere to oVirt, I'm going to check performance related = things.</div><div class=3D""><br class=3D""></div><div class=3D"">Up to = now I only ran Windows guests inside my laptops and not inside an oVirt = infrastructure.</div><div class=3D""><br class=3D""></div><div = class=3D"">Now I successfully migrated this kind of VM to oVirt = 4.1.9.</div><div class=3D"">The guest had an LSI logic sas controller. = Inside the oVirt host that I used as proxy (for VMware virt-v2v) I = initially didn't have the virtio-win rpm.</div><div class=3D"">I presume = that has been for this reason that the oVirt guest has been configured = with IDE disks=E2=80=A6</div></div></div></blockquote><div><br = class=3D""></div>yes</div><div>you won=E2=80=99t get any decent = performance unless you use virtio drivers. Either virtio-block or = virtio-scsi</div><div><br class=3D""><blockquote type=3D"cite" = class=3D""><div class=3D""><div dir=3D"ltr" class=3D""><div class=3D"">Can= you confirm?</div><div class=3D""><br class=3D""></div><div = class=3D"">For this test I started with ide, then added a virtio-scsi = disk and then changed also the boot disk to virtio-scsi and all now goes = well, with also ovirt-guest-tools-iso-4.1-3 provided iso used to install = qxl and so on...</div><div class=3D""><br class=3D""></div><div = class=3D"">So far so good.</div><div class=3D"">I found this = bugzilla:</div><div class=3D""><a = href=3D"https://bugzilla.redhat.com/show_bug.cgi?id=3D1277353" = class=3D"">https://bugzilla.redhat.com/show_bug.cgi?id=3D1277353</a><br = class=3D""></div><div class=3D""><br class=3D""></div><div = class=3D"">where it seems that </div><div class=3D""><br = class=3D""></div><div class=3D"">"</div><div class=3D""><pre = class=3D"gmail-bz_wrap_comment_text gmail-bz_comment_text" = id=3D"gmail-comment_text_24" style=3D"font-size: small; font-family: = monospace; white-space: pre-wrap; word-wrap: break-word; width: 50em; = font-style: normal; font-variant-ligatures: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; word-spacing: 0px;">For optimum = I/O performance it's critical to make sure that Windows guests use the = Hyper-V reference counter feature. QEMU command line should include -cpu ...,hv_time and -no-hpet</pre><pre class=3D"gmail-bz_wrap_comment_text = gmail-bz_comment_text" id=3D"gmail-comment_text_24" style=3D"font-size: = small; font-family: monospace; white-space: pre-wrap; word-wrap: = break-word; width: 50em; font-style: normal; font-variant-ligatures: = normal; font-variant-caps: normal; font-weight: 400; letter-spacing: = normal; text-align: start; text-indent: 0px; text-transform: none; = word-spacing: 0px;">"</pre><pre class=3D"gmail-bz_wrap_comment_text = gmail-bz_comment_text" id=3D"gmail-comment_text_24" style=3D"font-size: = small; font-family: monospace; white-space: pre-wrap; word-wrap: = break-word; width: 50em; font-style: normal; font-variant-ligatures: = normal; font-variant-caps: normal; font-weight: 400; letter-spacing: = normal; text-align: start; text-indent: 0px; text-transform: none; = word-spacing: 0px;"><span = style=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;= font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;f= ont-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text= -transform:none;white-space:normal;word-spacing:0px;background-color:rgb(2= 55,255,255);text-decoration-style:initial;text-decoration-color:initial;fl= oat:none;display:inline" class=3D"">Analyzing my command line I see the = "-no-hpet" but I dont see the "hv_time"</span></pre><pre = class=3D"gmail-bz_wrap_comment_text gmail-bz_comment_text" = id=3D"gmail-comment_text_24" style=3D"font-size: small; font-family: = monospace; white-space: pre-wrap; word-wrap: break-word; width: 50em; = font-style: normal; font-variant-ligatures: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; word-spacing: 0px;"><span = style=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;= font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;f= ont-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text= -transform:none;white-space:normal;word-spacing:0px;background-color:rgb(2= 55,255,255);text-decoration-style:initial;text-decoration-color:initial;fl= oat:none;display:inline" class=3D"">See below full = comand.</span></pre><pre class=3D"gmail-bz_wrap_comment_text = gmail-bz_comment_text" id=3D"gmail-comment_text_24" style=3D"font-size: = small; font-family: monospace; white-space: pre-wrap; word-wrap: = break-word; width: 50em; font-style: normal; font-variant-ligatures: = normal; font-variant-caps: normal; font-weight: 400; letter-spacing: = normal; text-align: start; text-indent: 0px; text-transform: none; = word-spacing: 0px;"><span = style=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;= font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;f= ont-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text= -transform:none;white-space:normal;word-spacing:0px;background-color:rgb(2= 55,255,255);text-decoration-style:initial;text-decoration-color:initial;fl= oat:none;display:inline" class=3D"">Any = hints?</span></pre></div></div></div></blockquote><div><br = class=3D""></div>What OS type do you have set for that VM? Make sure it = matches the Windows version. That enables the hyperv enlightenments = settings</div><div><br = class=3D""></div><div>Thanks,</div><div>michal</div><div><blockquote = type=3D"cite" class=3D""><div class=3D""><div dir=3D"ltr" class=3D""><div = class=3D""><pre class=3D"gmail-bz_wrap_comment_text = gmail-bz_comment_text" id=3D"gmail-comment_text_24" style=3D"font-size: = small; font-family: monospace; white-space: pre-wrap; word-wrap: = break-word; width: 50em; font-style: normal; font-variant-ligatures: = normal; font-variant-caps: normal; font-weight: 400; letter-spacing: = normal; text-align: start; text-indent: 0px; text-transform: none; = word-spacing: 0px;"><span = style=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;= font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;f= ont-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text= -transform:none;white-space:normal;word-spacing:0px;background-color:rgb(2= 55,255,255);text-decoration-style:initial;text-decoration-color:initial;fl= oat:none;display:inline" class=3D"">Thanks,</span></pre><pre = class=3D"gmail-bz_wrap_comment_text gmail-bz_comment_text" = id=3D"gmail-comment_text_24" style=3D"font-size: small; font-family: = monospace; white-space: pre-wrap; word-wrap: break-word; width: 50em; = font-style: normal; font-variant-ligatures: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; word-spacing: 0px;"><span = style=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;= font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;f= ont-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text= -transform:none;white-space:normal;word-spacing:0px;background-color:rgb(2= 55,255,255);text-decoration-style:initial;text-decoration-color:initial;fl= oat:none;display:inline" class=3D"">Gianluca</span></pre><pre = class=3D"gmail-bz_wrap_comment_text gmail-bz_comment_text" = id=3D"gmail-comment_text_24" style=3D"font-size: small; font-family: = monospace; white-space: pre-wrap; word-wrap: break-word; width: 50em; = font-style: normal; font-variant-ligatures: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; word-spacing: 0px;"><span = style=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;= font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;f= ont-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text= -transform:none;white-space:normal;word-spacing:0px;background-color:rgb(2= 55,255,255);text-decoration-style:initial;text-decoration-color:initial;fl= oat:none;display:inline" class=3D""><br class=3D""></span></pre><pre = class=3D"gmail-bz_wrap_comment_text gmail-bz_comment_text" = id=3D"gmail-comment_text_24" = style=3D"word-wrap:break-word;width:50em;text-align:start;text-indent:0px;= text-decoration-style:initial;text-decoration-color:initial">/usr/libexec/= qemu-kvm -name guest=3Dtestmig,debug-threads=3Don -S -object = secret,id=3DmasterKey0,format=3Draw,file=3D/var/lib/libvirt/qemu/domain-12= -testmig/master-key.aes -machine pc-i440fx-rhel7.3.0,accel=3Dkvm,usb=3Doff,dump-guest-core=3Doff -cpu Westmere,vmx=3Don -m size=3D4194304k,slots=3D16,maxmem=3D16777216k -realtime mlock=3Doff -smp 2,maxcpus=3D16,sockets=3D16,cores=3D1,threads=3D1 -numa node,nodeid=3D0,cpus=3D0-1,mem=3D4096 -uuid x-y-z-x-y -smbios type=3D1,manufacturer=3DoVirt,product=3DoVirt Node,version=3D7-4.1708.el7.centos,serial=3Dxx,uuid=3Dyy -no-user-config -nodefaults -chardev = socket,id=3Dcharmonitor,path=3D/var/lib/libvirt/qemu/domain-12-testmig/mon= itor.sock,server,nowait -mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol -rtc base=3D2018-02-09T12:41:41,driftfix=3Dslew -global kvm-pit.lost_tick_policy=3Ddelay -no-hpet -no-shutdown -boot strict=3Don -device piix3-usb-uhci,id=3Dusb,bus=3Dpci.0,addr=3D0x1.0x2 -device virtio-scsi-pci,id=3Dscsi0,bus=3Dpci.0,addr=3D0x5 -device = virtio-serial-pci,id=3Dvirtio-serial0,max_ports=3D16,bus=3Dpci.0,addr=3D0x= 4 -drive if=3Dnone,id=3Ddrive-ide0-1-0,readonly=3Don -device ide-cd,bus=3Dide.1,unit=3D0,drive=3Ddrive-ide0-1-0,id=3Dide0-1-0 -drive = file=3D/rhev/data-center/ef17cad6-7724-4cd8-96e3-9af6e529db51/fa33df49-b09= d-4f86-9719-ede649542c21/images/2de93ee3-7d6e-4a10-88c4-abc7a11fb687/a9f4e= 35b-4aa0-45e8-b775-1a046d1851aa,format=3Dqcow2,if=3Dnone,id=3Ddrive-scsi0-= 0-0-1,serial=3D2de93ee3-7d6e-4a10-88c4-abc7a11fb687,cache=3Dnone,werror=3D= stop,rerror=3Dstop,aio=3Dnative -device = scsi-hd,bus=3Dscsi0.0,channel=3D0,scsi-id=3D0,lun=3D1,drive=3Ddrive-scsi0-= 0-0-1,id=3Dscsi0-0-0-1,bootindex=3D1 -drive = file=3D/rhev/data-center/ef17cad6-7724-4cd8-96e3-9af6e529db51/fa33df49-b09= d-4f86-9719-ede649542c21/images/f821da0a-cec7-457c-88a4-f83f33404e65/0d0c4= 244-f184-4eaa-b5bf-8dc65c7069bb,format=3Draw,if=3Dnone,id=3Ddrive-scsi0-0-= 0-0,serial=3Df821da0a-cec7-457c-88a4-f83f33404e65,cache=3Dnone,werror=3Dst= op,rerror=3Dstop,aio=3Dnative -device = scsi-hd,bus=3Dscsi0.0,channel=3D0,scsi-id=3D0,lun=3D0,drive=3Ddrive-scsi0-= 0-0-0,id=3Dscsi0-0-0-0 -netdev tap,fd=3D30,id=3Dhostnet0 -device = e1000,netdev=3Dhostnet0,id=3Dnet0,mac=3D00:50:56:9d:c9:29,bus=3Dpci.0,addr= =3D0x3 -chardev = socket,id=3Dcharchannel0,path=3D/var/lib/libvirt/qemu/channels/421d6f1b-58= e3-54a4-802f-fb52f7831369.com.redhat.rhevm.vdsm,server,nowait -device = virtserialport,bus=3Dvirtio-serial0.0,nr=3D1,chardev=3Dcharchannel0,id=3Dc= hannel0,name=3Dcom.redhat.rhevm.vdsm -chardev = socket,id=3Dcharchannel1,path=3D/var/lib/libvirt/qemu/channels/421d6f1b-58= e3-54a4-802f-fb52f7831369.org.qemu.guest_agent.0,server,nowait -device = virtserialport,bus=3Dvirtio-serial0.0,nr=3D2,chardev=3Dcharchannel1,id=3Dc= hannel1,name=3Dorg.qemu.guest_agent.0 -chardev spicevmc,id=3Dcharchannel2,name=3Dvdagent -device = virtserialport,bus=3Dvirtio-serial0.0,nr=3D3,chardev=3Dcharchannel2,id=3Dc= hannel2,name=3Dcom.redhat.spice.0 -spice = tls-port=3D5900,addr=3D10.4.192.32,x509-dir=3D/etc/pki/vdsm/libvirt-spice,= tls-channel=3Ddefault,tls-channel=3Dmain,tls-channel=3Ddisplay,tls-channel= =3Dinputs,tls-channel=3Dcursor,tls-channel=3Dplayback,tls-channel=3Drecord= ,tls-channel=3Dsmartcard,tls-channel=3Dusbredir,seamless-migration=3Don -device = qxl-vga,id=3Dvideo0,ram_size=3D67108864,vram_size=3D8388608,vram64_size_mb= =3D0,vgamem_mb=3D16,max_outputs=3D1,bus=3Dpci.0,addr=3D0x2 -msg timestamp=3Don </pre></div><div class=3D""><br class=3D""></div></div> _______________________________________________<br class=3D"">Users = mailing list<br class=3D""><a href=3D"mailto:Users@ovirt.org" = class=3D"">Users@ovirt.org</a><br = class=3D"">http://lists.ovirt.org/mailman/listinfo/users<br = class=3D""></div></blockquote></div><br class=3D""></body></html>= --Apple-Mail=_2FD1F378-589D-49F8-9290-B20DCD2BF6A6--

On Fri, Feb 9, 2018 at 4:25 PM, Michal Skrivanek < michal.skrivanek@redhat.com> wrote:
Analyzing my command line I see the "-no-hpet" but I dont see the "hv_time"
See below full comand.
Any hints?
What OS type do you have set for that VM? Make sure it matches the Windows version. That enables the hyperv enlightenments settings
Thanks, michal
If I edit the VM, in general settings I see "Other OS" as operating system. In General subtab after selecting the VM in "Virtual Machines" tab I again see "Other OS" in "Operating System" and the field "Origin" filled with the value "VMware" During virt-v2v it seems it was recognized as Windows 2008 though... libguestfs: trace: v2v: hivex_value_utf8 = "Windows Server 2008 R2 Enterprise" libguestfs: trace: v2v: hivex_value_key 11809408 I can send all the log if it can help. Thanks, Gianluca

On Fri, Feb 9, 2018 at 4:32 PM, Gianluca Cecchi <gianluca.cecchi@gmail.com> wrote:
If I edit the VM, in general settings I see "Other OS" as operating system. In General subtab after selecting the VM in "Virtual Machines" tab I again see "Other OS" in "Operating System" and the field "Origin" filled with the value "VMware"
During virt-v2v it seems it was recognized as Windows 2008 though...
libguestfs: trace: v2v: hivex_value_utf8 = "Windows Server 2008 R2 Enterprise" libguestfs: trace: v2v: hivex_value_key 11809408
I can send all the log if it can help. Thanks, Gianluca
So it seems it has been a problem with virt-v2v conversion, because if I shutdown the VM and set it to Windows 2008 R2 x86_64 and optimized for server and I run it, I get this flag for the cpu: -cpu Westmere,vmx=on,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff BTW: what are the other flags for: hv_spinlocks=0x1fff hv_relaxed hv_vapic ? Complete command is: /usr/libexec/qemu-kvm -name guest=testmig,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-15-testmig/master-key.aes -machine pc-i440fx-rhel7.3.0,accel=kvm,usb=off,dump-guest-core=off -cpu Westmere,vmx=on,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff -m size=4194304k,slots=16,maxmem=16777216k -realtime mlock=off -smp 2,maxcpus=16,sockets=16,cores=1,threads=1 -numa node,nodeid=0,cpus=0-1,mem=4096 -uuid XXX -smbios type=1,manufacturer=oVirt,product=oVirt Node,version=7-4.1708.el7.centos,serial=XXX,uuid=YYY -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-15-testmig/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=2018-02-10T18:32:22,driftfix=slew -global kvm-pit.lost_tick_policy=delay -no-hpet -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x5 -device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x4 -drive if=none,id=drive-ide0-1-0,readonly=on -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -drive file=/rhev/data-center/ef17cad6-7724-4cd8-96e3-9af6e529db51/fa33df49-b09d-4f86-9719-ede649542c21/images/2de93ee3-7d6e-4a10-88c4-abc7a11fb687/a9f4e35b-4aa0-45e8-b775-1a046d1851aa,format=qcow2,if=none,id=drive-scsi0-0-0-1,serial=2de93ee3-7d6e-4a10-88c4-abc7a11fb687,cache=none,werror=stop,rerror=stop,aio=native -device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=1,drive=drive-scsi0-0-0-1,id=scsi0-0-0-1,bootindex=1 -drive file=/rhev/data-center/ef17cad6-7724-4cd8-96e3-9af6e529db51/fa33df49-b09d-4f86-9719-ede649542c21/images/f821da0a-cec7-457c-88a4-f83f33404e65/0d0c4244-f184-4eaa-b5bf-8dc65c7069bb,format=raw,if=none,id=drive-scsi0-0-0-0,serial=f821da0a-cec7-457c-88a4-f83f33404e65,cache=none,werror=stop,rerror=stop,aio=native -device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0 -netdev tap,fd=30,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=00:50:56:9d:c9:29,bus=pci.0,addr=0x3 -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/channels/421d6f1b-58e3-54a4-802f-fb52f7831369.com.redhat.rhevm.vdsm,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.rhevm.vdsm -chardev socket,id=charchannel1,path=/var/lib/libvirt/qemu/channels/421d6f1b-58e3-54a4-802f-fb52f7831369.org.qemu.guest_agent.0,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=org.qemu.guest_agent.0 -chardev spicevmc,id=charchannel2,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=3,chardev=charchannel2,id=channel2,name=com.redhat.spice.0 -spice tls-port=5900,addr=10.4.192.32,x509-dir=/etc/pki/vdsm/libvirt-spice,tls-channel=default,tls-channel=main,tls-channel=display,tls-channel=inputs,tls-channel=cursor,tls-channel=playback,tls-channel=record,tls-channel=smartcard,tls-channel=usbredir,seamless-migration=on -device qxl-vga,id=video0,ram_size=67108864,vram_size=8388608,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2 -msg timestamp=on Thanks, Gianluca

On Sat, Feb 10, 2018 at 8:41 PM, Gianluca Cecchi <gianluca.cecchi@gmail.com> wrote:
On Fri, Feb 9, 2018 at 4:32 PM, Gianluca Cecchi <gianluca.cecchi@gmail.com
wrote:
If I edit the VM, in general settings I see "Other OS" as operating system. In General subtab after selecting the VM in "Virtual Machines" tab I again see "Other OS" in "Operating System" and the field "Origin" filled with the value "VMware"
During virt-v2v it seems it was recognized as Windows 2008 though...
libguestfs: trace: v2v: hivex_value_utf8 = "Windows Server 2008 R2 Enterprise" libguestfs: trace: v2v: hivex_value_key 11809408
I can send all the log if it can help. Thanks, Gianluca
So it seems it has been a problem with virt-v2v conversion, because if I shutdown the VM and set it to Windows 2008 R2 x86_64 and optimized for server and I run it, I get this flag for the cpu:
A new virt-v2v was just released, worth testing it. It has some nice features, and perhaps fixes the above too. For example: Virt-v2v now installs Windows 10 / Windows Server 2016 virtio block drivers correctly (Pavel Butsykin, Kun Wei). Virt-v2v now installs virtio-rng, balloon and pvpanic drivers, and correctly sets this in the target hypervisor metadata for hypervisors which support that (Tomáš Golembiovský). Virt-v2v now installs both legacy and modern virtio keys in the Windows registry (Ladi Prosek).
-cpu Westmere,vmx=on,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff
BTW: what are the other flags for:
hv_spinlocks=0x1fff hv_relaxed hv_vapic ?
These are the enlightenment that allow Windows guests to run faster (hv = hyper-v). See[1] Y. [1] http://blog.wikichoon.com/2014/07/enabling-hyper-v-enlightenments-with-kvm.h...
Complete command is:
/usr/libexec/qemu-kvm -name guest=testmig,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/ qemu/domain-15-testmig/master-key.aes -machine pc-i440fx-rhel7.3.0,accel=kvm,usb=off,dump-guest-core=off -cpu Westmere,vmx=on,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff -m size=4194304k,slots=16,maxmem=16777216k -realtime mlock=off -smp 2,maxcpus=16,sockets=16,cores=1,threads=1 -numa node,nodeid=0,cpus=0-1,mem=4096 -uuid XXX -smbios type=1,manufacturer=oVirt,product=oVirt Node,version=7-4.1708.el7. centos,serial=XXX,uuid=YYY -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain- 15-testmig/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=2018-02-10T18:32:22,driftfix=slew -global kvm-pit.lost_tick_policy=delay -no-hpet -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x5 -device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci. 0,addr=0x4 -drive if=none,id=drive-ide0-1-0,readonly=on -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -drive file=/rhev/data-center/ef17cad6-7724-4cd8-96e3- 9af6e529db51/fa33df49-b09d-4f86-9719-ede649542c21/images/ 2de93ee3-7d6e-4a10-88c4-abc7a11fb687/a9f4e35b-4aa0- 45e8-b775-1a046d1851aa,format=qcow2,if=none,id=drive-scsi0- 0-0-1,serial=2de93ee3-7d6e-4a10-88c4-abc7a11fb687,cache= none,werror=stop,rerror=stop,aio=native -device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=1,drive=drive- scsi0-0-0-1,id=scsi0-0-0-1,bootindex=1 -drive file=/rhev/data-center/ef17cad6-7724-4cd8-96e3- 9af6e529db51/fa33df49-b09d-4f86-9719-ede649542c21/images/ f821da0a-cec7-457c-88a4-f83f33404e65/0d0c4244-f184- 4eaa-b5bf-8dc65c7069bb,format=raw,if=none,id=drive-scsi0-0- 0-0,serial=f821da0a-cec7-457c-88a4-f83f33404e65,cache=none, werror=stop,rerror=stop,aio=native -device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive- scsi0-0-0-0,id=scsi0-0-0-0 -netdev tap,fd=30,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=00:50:56:9d:c9:29,bus=pci. 0,addr=0x3 -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/channels/ 421d6f1b-58e3-54a4-802f-fb52f7831369.com.redhat.rhevm.vdsm,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=1,chardev= charchannel0,id=channel0,name=com.redhat.rhevm.vdsm -chardev socket,id=charchannel1,path=/var/lib/libvirt/qemu/channels/ 421d6f1b-58e3-54a4-802f-fb52f7831369.org.qemu.guest_agent.0,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=2,chardev= charchannel1,id=channel1,name=org.qemu.guest_agent.0 -chardev spicevmc,id=charchannel2,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=3,chardev= charchannel2,id=channel2,name=com.redhat.spice.0 -spice tls-port=5900,addr=10.4.192.32,x509-dir=/etc/pki/vdsm/ libvirt-spice,tls-channel=default,tls-channel=main,tls- channel=display,tls-channel=inputs,tls-channel=cursor,tls- channel=playback,tls-channel=record,tls-channel=smartcard, tls-channel=usbredir,seamless-migration=on -device qxl-vga,id=video0,ram_size=67108864,vram_size=8388608, vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2 -msg timestamp=on
Thanks, Gianluca
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Sun, Feb 11, 2018 at 9:33 AM, Yaniv Kaul <ykaul@redhat.com> wrote:
On Sat, Feb 10, 2018 at 8:41 PM, Gianluca Cecchi < gianluca.cecchi@gmail.com> wrote:
On Fri, Feb 9, 2018 at 4:32 PM, Gianluca Cecchi < gianluca.cecchi@gmail.com> wrote:
If I edit the VM, in general settings I see "Other OS" as operating system. In General subtab after selecting the VM in "Virtual Machines" tab I again see "Other OS" in "Operating System" and the field "Origin" filled with the value "VMware"
During virt-v2v it seems it was recognized as Windows 2008 though...
libguestfs: trace: v2v: hivex_value_utf8 = "Windows Server 2008 R2 Enterprise" libguestfs: trace: v2v: hivex_value_key 11809408
I can send all the log if it can help. Thanks, Gianluca
So it seems it has been a problem with virt-v2v conversion, because if I shutdown the VM and set it to Windows 2008 R2 x86_64 and optimized for server and I run it, I get this flag for the cpu:
A new virt-v2v was just released, worth testing it. It has some nice features, and perhaps fixes the above too. For example: Virt-v2v now installs Windows 10 / Windows Server 2016 virtio block drivers correctly (Pavel Butsykin, Kun Wei).
Virt-v2v now installs virtio-rng, balloon and pvpanic drivers, and correctly sets this in the target hypervisor metadata for hypervisors which support that (Tomáš Golembiovský).
Virt-v2v now installs both legacy and modern virtio keys in the Windows registry (Ladi Prosek).
Thanks for the info. In the mean time after installing virtio-win on proxy host I retried with the same version of virt-v2v provided with 4.1.9: virt-v2v-1.36.3-6.el7_4.3.x86_64 and then selecting and injecting it in the import window and the VM correctly starts with virtio drivers (version 61.74.104.14100) after a reboot requested (first starts remains in black window for a couple of minutes and then asks to restart) It also has qxl drivers (6.1.0.1024) But the VM remains as "Other OS" and obviously has no hv_ optimization. I'm going to try the new version as you suggested. It would be nice also to have virtio-scsi option and not only the virtio option directly in import function.... BTW: I see that in case a target VM with the same name of source exists, I'm given an error and I can't change the VM name on destination.... This seems to me a big limitation, because forces to rename the source VM or rename a pre-existing VM at destination with the same name....
-cpu Westmere,vmx=on,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff
BTW: what are the other flags for:
hv_spinlocks=0x1fff hv_relaxed hv_vapic ?
These are the enlightenment that allow Windows guests to run faster (hv = hyper-v). See[1] Y.
[1] http://blog.wikichoon.com/2014/07/enabling-hyper-v- enlightenments-with-kvm.html
Thanks for the Cole link Gianluca
participants (3)
-
Gianluca Cecchi
-
Michal Skrivanek
-
Yaniv Kaul