Monday, September 23, 2013

Windows 8?

My first brush win WinPE turned out to be rather successful http://blog.chrysocome.net/2013/02/pxe-boot-winpe.html but recently our Windows team upgraded the SCCM server. Now when I attempt to install Windows 7 in KVM on CentOS-6, I get a windows 8 logo and then the dreaded error 0x0000005D.

The cause for this is, as always, long and complex. The new SCCM release now uses WinPE version 4 which is bases on Windows 8. Windows 8 requires a minimum level of CPU features to run. If you don't meet the minimum you get a well worded error message (well, at least it is easier to search for than a BSOD report).

I can't do much about SCCM, WinPE or Windows 8 so the next part of the problem is why does my KVM virtual machine not meet the Windows 8 requirements?

You guessed it. Bugs! It seems (more or less) that the 'sep' cpu feature was forgotten by libvirt and there is no fix coming soon.

What is needed then is a well implemented work around. KVM does support the required flag (-cpu +sep) but libvirt has no method to pass the flag to kvm. I already have a wrapper around kvm http://blog.chrysocome.net/2013/05/can-kvm-guest-found-out-who-its-host-is.html so it seemed logical to extend that script to add the missing flag.

Below is my solution which adds the +sep flag to the existing CPU configuration as well as set the serial number, as per the original script. Installation is the same as shown in my other blog post, edit the guest and set the <emulator> path to /usr/local/libexec/qemu-kvm (either using virsh edit or your favourite XML editor).

/usr/local/libexec/qemu-kvm
#!/bin/bash
# This is a wrapper around qemu which will supply
# DMI information
# and correct a bug with the CPU type required for winpe4 (Windows 8)
max=${#@}
index=0

for i in $(seq 1 $max) ; do
   p=${@:$i:1}
   if [ "$p" = "-cpu" ] ; then
      (( index = $i + 1 ))
      break
   fi
done

if [ $index -gt 0 ] ; then
cpu=${@:$index:1}
cpu="$cpu,+sep"

(( ibefore = $index - 1 ))
(( iafter = $index + 1 ))
set -- "${@:1:$ibefore}" $cpu "${@:$iafter}"
fi

if [ "$1" = "-name" ] ; then
    SERIAL=$(/usr/bin/hal-get-property --udi /org/freedesktop/Hal/devices/computer --key system.hardware.serial)
    exec /usr/libexec/qemu-kvm "$@" -smbios type=1,serial="KVM-$SERIAL"
else
    exec /usr/libexec/qemu-kvm "$@"
fi

32 comments:

  1. Oh! This article has suggested to me many new ideas. I will embark on doing it. Hope you can continue to contribute your talents in this area. Thank you.
    run 3

    ReplyDelete
  2. Soak your detergent in hot water.
    Have you ever seen household cleaners wipe your counterpart with a damp cloth? Start. This is because cleaning clothes can also house bacteria if you do not clean them properly or continue to use them after their effectiveness.شركة نقل اثاث بجدة
    شركة كشف تسربات المياه بجدة
    نصائح لرائحة بيت منعشة

    ReplyDelete
  3. Looking forward to reading more.. Great post. Really Cool
    gmail sign up
    hotmail login

    ReplyDelete
  4. Join clash royale decks, a strategy fun game that available for PC and MAC

    ReplyDelete
  5. If you need to install or reinstall Windows 8.1, you can use the tools on this page to create your own installation media using either a USB flash drive or a DVD.

    https://sites.google.com/site/1playergames66/

    ReplyDelete
  6. I Loved The Way You Discuss The Topic Great Work Thanks For The Share aptoide

    ReplyDelete
  7. I have read your article deeply, the points you mentioned in this article are helpful
    lucky patcher apkxyz

    ReplyDelete
  8. Finding the best healthcare assignment writing services and Medical Assignment Writing Services is not easy unless one is keen to establish a reliable custom medical research paper provider & medical writing service help online.

    ReplyDelete
  9. Cleanliness is one of the important things and attention must be paid to the constant cleaning of the place and care in order to have a house free from dust and dirt, as having a completely clean place is one of the things that every housewife seeks for and our company is used
    شركة تنظيف بعنيزة

    شركة تنظيف مجالس بعنيزة

    شركة مكافحة حشرات بعنيزة

    شركة نقل عفش بعنيزة

    شركة كشف تسربات المياه بعنيزة

    ReplyDelete
  10. Dear admin, really you are doing a fantastic job by sharing this type of useful information with us.
    when I read your all post I think each and every post was so important so for that thank you so much and wish you all the best for the upcoming post.
    visit my website: https://www.mcafee.com/activate

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete
  12. Where to find Aerocity call girls service?
    Our Escorts with the best history of the hottest young ladies is well known among its customers for its exotic and fulfilling administration.Call Girls in Aerocity The prostitutes with us change from bushy retro wonders to shaved chinks and undergrads to experienced homemakers.Escort in Aerocity Add a flash by presenting pretend and trust me; it is exceptionally fascinating. You may attempt new areas like sex on the tabletop or sofa.High Profile Call Girls in Aerocity Disregard the well-established evangelist position and attempt new situations with the best Female Aerocity Call girls services. The models are powerful to try and attempt sex props like binds or dildos.Female Escorts in Aerocity They can go to any degree to fulfill you with their bodies. Make the most smoking young lady in the territory your sex slave for the evening. Make her go down on their knees and do all that you request.

    ReplyDelete
  13. The models are sitting tight for you to bore their vagina with your enormous dick.High Profile Call Girls in Aerocity Would you be able to fulfill them? Appreciate each night with another young lady. It isn’t unreasonably intriguing! Let us know your decision and hang tight for your little glimpse of heaven in no time.Escort in Aerocity Call Girls Services from the believed place additionally convey Independent escorts for outstation administrations. These days, Aerocity nightlife is meant by the breathtaking young ladies occupied in fulfilling customers everywhere in the delightful city. Escorts Service in Aerocity The escort area has gotten exceptionally coordinated with the intense Independent Escorts in Aerocity, holding on to sizzle up your bed.

    ReplyDelete
  14. Our best independent escort’s girls make it simple to get Escorts Service in Agra. Call Girls in Agra are a popular girl’s directory in general due to regular updates of new Call Girls in Agra and real escort girls.

    Escorts Service in Agra
    Call Girls in Agra
    Escorts Service in Agra
    Call Girls in Agra
    Escorts Service in Agra
    Call Girls in Agra
    Call Girls in Agra

    ReplyDelete
  15. This is amazing article, I would love to hear more about this topic.

    walmart

    ReplyDelete
  16. Rebooting a device helps fix many temporary issues with it, and this applies to hp printer in error state as well. When your PC says that your printer is in an error state, it’s worth turning off your printer and then turning it back on.

    ReplyDelete
  17. I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. สล็อตออนไลน์

    ReplyDelete
  18. Your blog is very informative and great. Its very great read for me because your writing skills is so good and you will write this post in very good manner. Kindly Visit our Website:- Recover Comcast Email Password

    ReplyDelete
  19. I am always trying providing best attempt to my customers because customer's
    fulfillment is more important for me and the E*scort Female working with Delhi E*scort Agency.

    E*scorts in Delhi
    Professional Dating Girls in Delhi
    High Profile E*scorts in Delhi
    Air Hostess E*scorts in Delhi
    book online e*scorts in Delhi

    ReplyDelete
  20. I will set up the whole thing for you with the purpose that you will have the nice pleasure of desirous adoration in an undistributed organic system. My incredible delight is to make my folks fulfilled and upbeat. This has helped me get a huge collection of nice in elegance gentlemen and industrialists as my rehash clients.
    what's app Dehradun girls number
    phone call Nainital girls
    hot call Haldwani girls number.
    call Ramnagar girls phone number
    call Rudrapur models phone number
    call Rishikesh models phone number

    ReplyDelete
  21. Additionally, you can make a booking anytime of the night or day we make it easy to make it easy for you to book the most desirable models for your special occasion in rudrapur. With our 24/7 operating hours, it won't matter when you decide to meet with one of our models. You'll also have an enjoyable and stimulating time thanks to our fantastic models. They won't be missed in a flash.
    what's app Udaipur girls number
    phone call udaipur girls
    hot call udaipur girls number.
    call udaipur girls phone number
    call udaipur girls phone number

    ReplyDelete