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

38 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. 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
  10. This comment has been removed by the author.

    ReplyDelete
  11. 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
  12. 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
  13. This is amazing article, I would love to hear more about this topic.

    walmart

    ReplyDelete
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. There are lots of options are out and can be having an great way which can be benefitted with this options.
    Night Service in Delhi

    ReplyDelete
  20. This is an amazing blog for Linux beginners. facebook login

    ReplyDelete
  21. You do a great job, keep doing thank you for good work
    ดาวน์โหลด 123plus

    ReplyDelete
  22. I have read your Post it is very informative and helpful for me.
    igoal88 แนะนำเพื่อน

    ReplyDelete
  23. thousands of years. Moving to Cairo, the capital and most famous city in Egypt where you will find yourself among a large selection of historical sites just like the https://arbdar.com/  Egyptian Museum; the center of the ancient Egyptian

    ReplyDelete
  24. Amazon is taking aim at fake reviews on its marketplace in a new lawsuit targeting more than 10,000 facebook login administrators.

    The suit, filed this week in King County Superior Court in Seattle, is the latest attempt by the e-commerce giant to combat fake reviews.

    Amazon alleges that the group administrators organize marketplaces “for the purchase and sale of fake reviews.” It says they are “actively deceiving Amazon’s customers and tarnishing Amazon’s brand for their own profit as well as for the profit of dishonest sellers who purchase their services,” according to the suit.

    The suit identifies Facebook admins who guarantee 5-star reviews to sellers in exchange for payments of up to $10 per review. Some admins orchestrate fake reviews in exchange for free products, Amazon said.

    ReplyDelete
  25. AARP Free GamesEngaging in games that require creativity and analytical skills can help to sharpen the human mind at a faster pace. Individuals can significantly improve their analytical and problem-solving abilities by playing puzzles or word games. Have you ever indulged in the challenge of a game like Solitaire? It is a great way to exercise your mind and stimulate your cognitive processes

    ReplyDelete