Thursday, September 19, 2019

New VM cleanup

When creating a new VM in vSphere, you get a number of virtual devices & settings by default that you probably don't have any interest in keeping:

  • Floppy drive (depending on version & type of client in use)
  • Floppy adapter
  • IDE ports
  • Serial ports
  • Parallel ports
Given that some of these are redundant (why keep the IDE adapter when you're using SATA for the optical device?) while others are polled I/O in Windows (OS must keep checking to see if there's activity on the port, even if there will never be any), it just makes things more streamlined if you cleanup these settings when creating a new VM...then using the cleaned-up VM as a template for creating new VMs later on.

Step 1: create a new VM
Step 2: Set VM name and select a location
Step 3: Select a compute resource
Step 4: Select storage
Step 5: Set compatibility no higher than your oldest version of ESXi that the template could be deployed on.
Step 6: Select the guest OS you'll install
Step 7a: Customize hardware: CPU, Memory, Hard Drive
Step 7b: Attach NIC to a general-purpose or remediation network port
Step 7c: Don't forget to change the NIC type! If you don't the only way to change it later is to remove & re-add the correct type, which will also change the MAC address and, depending on the order you do the modifications, could put the new virtual NIC into a different virtual PCIe slot on the VM hardware, upsetting other configurations in the guest (like static IP addresses).
Step 7d: Jump to the Options tab and set "Force BIOS setup"
Step 8: Finish creating the VM
Step 9: Open remote console for VM
Step 10: Power On the VM. IT should pause at the BIOS editor screen.
Step 11: On the Advanced page, set Local Bus IDE to "Disabled" if using SATA; set it to "Secondary" if using IDE CD-ROM (Even better: Change the CD-ROM device to IDE 0:0 and set it to "Primary").
Step 12: Descend into the "I/O Device Configuration" sub-page; by default, it'll look like the screenshot below:
Step 13: Using the arrow keys & space bar, set each device to "Disabled", then [Esc] to return to the Advanced menu.
Step 14: Switch to the Boot page. By default, removable devices are first in the boot order.
Step 15: Use the minus [-] key to lower the priority of removable devices. This won't hurt the initial OS setup, even on setup ISOs that normally require a key-press to boot off optical/ISO media: the new VM's hard drive has no partition table or MBR, so it'll be skipped as a boot device even when it's first. Once the OS is installed, you'll never have to worry about a removable media causing a reboot to stall.
Step 16: Press [F10] to save the BIOS config, then use the console to attach to an ISO (local or on a datastore) before exiting the BIOS setup page.


Step 17: Install the guest OS, then add VMware Tools. Perform any additional customization—e.g., patching, updates, and generalization—then convert the new VM to a template.

You're set! No more useless devices in your guest that take cycles from the OS or hypervisor.

Additional Note on modifying existing VMs:
Aside from the need to power down existing VMs that you might want to clean up with this same procedure, the only issue I've run into after doing the device + BIOS cleanup is making sure I get the right combination of IDE channels & IDE CD-ROM attachment. The number of times I've set "Primary" in BIOS but forgot to change the CD-ROM to IDE 0:0 is ... significant.

Additional Note on Floppy Drives:
Floppy drive handling is a special case, and will very much depend on which version of vSphere—and therefore, the management client—you're using. If you have the "Flex" client (or are still using v6.0 and have the C# client), the new VM will have a floppy disk device added by default. Naturally, you want to remove it as part of your Hardware Customization step during new VM deployment.
If you're happily using the HTML5 Web Client, you may find that the floppy is neither present, nor manageable (for adding/removing or attaching media)... This is the 0.1% of feature parity that I still find lacking in the H5 client. Hopefully, it'll get added, if for no better reason than to allow an admin to remove floppy devices that are still part of VMs that were created in older versions.

120 comments:

  1. Thank you for your analysis.
    Looking forward to reading more of your posts.
    I hope to give something back and help others like you aided me
    Watch UFC Online Free

    ReplyDelete
  2. Wellington cars aim is to provide 1st class taxi service for all our customers taking them to their destination efficiently and safely.We have an outstanding reputation for providing taxi service in Wokingham and its surroundings. All our drivers are fully licensed through Wokingham Borough council and CRB checked previously known as DBS through thames valley police.We are happy to say we have a reputation of safety, punctuality, professionalism, respectful

    ReplyDelete
  3. The kart racing sensation enjoyed by over 300M players worldwide is back and better than ever with more style, more game modes, more thrill! Race with friends or just play it solo through a variety of gameplay modes. Collect and upgrade iconic characters and karts from the KartRider universe. Climb the leaderboard ranks and become the ultimate racing legend!
    kartrider rush plus hack

    ReplyDelete
  4. klikspo express merupakan industri pelayanan Ekspedisi yang dibuat semenjak tahun 2004. klikspo express menawarkan 2 tipe layanan pelayanan pengiriman, ialah BEST( Esok Hingga Tujuan) serta Registrasi( Regular).
    ekspedisi surabaya makassar via udara
    ekspedisi surabaya makassar via laut
    ekspedisi surabaya makassar via murah
    jasa ekspedisi surabaya makassar
    ekspedisi pengiriman surabaya makassar

    ReplyDelete
  5. The lesson here is: any nutritional plan you pick to lose weight must be part of a lifestyle change you will be able to follow - in one form or another - forever. That is, if it's not a way of eating you can comply with indefinitely, even after you get to your target weight, then it's worthless.

    Azithromycin
    Azithromycin
    Azithromycin
    Azithromycin
    Azithromycin

    ReplyDelete
  6. Usally I do not comment on blogs. IT is the first time I am commenting on this blog. Really
    Keep it up
    Thumbs Up for you
    I like this very much
    Really Appriciate the good work
    Keep it up

    ReplyDelete
  7. Usally I do not comment on blogs. IT is the first time I am commenting on this blog. Really
    Keep it up

    ReplyDelete
  8. Usally I do not comment on blogs. IT is the first time I am commenting on this blog. Really
    Keep it up
    Thumbs Up for you
    I like this very much
    Really Appriciate the good work
    Keep it up

    ReplyDelete
  9. We create strategic, goal-driven search engine optimization (SEO) campaigns to skyrocket your website's search presence, launching your business to the top of search results.
    We're experts in SEO. From the on-page optimization of your website, including page speed, keyword density, and much more, our SEO services are certain to help you outrank your competitors
    oakemarketing

    oakemarketing

    oakemarketing

    ReplyDelete
  10. A Brindes Personalizados Produtos Personalizados é uma empresa que transforma suas ideias de personalização em realidade de forma rápida e simples.
    O nosso diferencial é atender a qualquer pedido de quantidade, para isso utilizamos as várias técnicas de estamparia.Atender as necessidades dos Clientes, com tecnologia de ponta, qualidade, rapidez e confiabilidade dos serviços, buscando a total satisfação dos nossos Clientes, Fornecedores e Comunidade com responsabilidade e respeito.
    camisetas personalizadas em curitiba
    camisetas personalizadas em são josé dos pinhais

    ReplyDelete
  11. Thank you for taking the time to publish this information very useful!
    Click
    here for
    more
    info

    ReplyDelete
  12. I was extremely satisfied to discover this site.I needed to thank you for this incredible read !! I certainly getting a charge out of each and every piece of it and I have you bookmarked to look at new stuff you pos
    Click
    here for
    more
    info

    ReplyDelete
  13. You have a good point here! I totally agree with what you have said !! Thanks for sharing your views ... hope more people will read this article ! read this article!
    Click
    here for
    more info

    ReplyDelete
  14. You need to zzzoomer take part in a contest for one of the greatest sites on the web. I am going to highly recommend this website!

    ReplyDelete
  15. This article content is really unique and amazing.This article really helpful and explained very well.So i am really thankful to you for sharing keep it up..
    Sedot wc
    Sedot wc
    Sedot wc
    Sedot wc
    Sedot wc
    Sedot wc
    Sedot wc
    Sedot wc

    ReplyDelete
  16. That is a good tip particularly to those fresh to the blogosphere. Short but very accurate info… Many thanks for sharing this one. A must read post!learn quran online

    ReplyDelete
  17. Greetings! Very helpful advice within this post! It's the little changes that produce the most important changes. Thanks for sharing!viablequran.com

    ReplyDelete
  18. Keki Clearway provides the best drainage repairing solution in Harrow, Edgware, Greenford, Northolt, Slough, and High Wycombe. If you are looking for Drainage Repair Slough then, we have well-trained staff, who fix your drainage problem instantly by using the latest equipment and techniques. Visit our website to contact us.

    CCTV Drainage Survey help to fix blocked drains. This process needs to inspect drains to discover causes of drain blockages and how can fix issues immediately. We mainly provide services in Hounslow, Watford, Barnet, Uxbridge, Putney, and more. You can find us on CCTV Drainage Survey Hounslow or CCTV Drainage Survey Uxbridge for instant support.

    We have a long year of experience in this service, Our team is well-trained and highly skilled to resolve blocked drains by using highly technical equipment and machines. In beginning, we inspect the causes of blockages. Each survey comes with a video report and then our experts analyze the report and execute a plan to work on it. Our service areas are Unblocking Drains Park Royal, Fulham, Southgate, Ealing, Finchley in the UK. Contact us to know to full details of service areas in the UK.

    ReplyDelete
  19. Keki Clearway provides the best drainage repairing solution in Harrow, Edgware, Greenford, Northolt, Slough, and High Wycombe. If you are looking for Drainage Repair Greenford then, we have well-trained staff, who fix your drainage problem instantly by using the latest equipment and techniques. Visit our website to contact us.

    CCTV Drainage Survey Uxbridge
    CCTV Drainage Survey Hounslow
    Blocked Drains Park Royal
    Drainage Repair Edgware
    Drainage Repair High Wycombe

    ReplyDelete
  20. Today, everyone needs an online survey solution and online survey company for authentic surveys in various types of business. There are many changes and update in different organizations day by day. So, if you want to get the latest survey update about customer satisfaction then Jusfeedback Pte Ltd is the best option for you. Contact us now and get genuine solutions.

    Visit our website for the best online survey solution, listed below-:

    online survey company

    Text Analytics Singapore

    Enterprise Feedback Management

    ReplyDelete
  21. Bradford Access Pte Ltd is a leading distributor of home security alarm systems in Singapore. We offer Video Intercom System Singapore for private and government sectors. We supply high-quality video intercom with high tech technology at a budget price. Our expert provides safe and easy monitoring solutions for apartment buildings and private houses.

    Read More about us-:

    security products distributors

    Card access system Singapore

    Video Intercom System Singapore

    ReplyDelete
  22. This Article content is Really Unique and amazing. This article Really helpful and Explained very well.So i am Really Thankful to you for Sharing Keep it up CoolSymbol.

    ReplyDelete
  23. Jusfeedback Pte Ltd is especially known for its Customer Satisfaction survey. We are the best Speech Analytics and online survey company in the whole Asia-Pacific region. Our services are reliable and affordable for everyone. If you want to get a genuine solution then contact us.

    Today, everyone needs an online survey solution and online survey company for authentic surveys in various types of business. There are many changes and update in different organizations day by day. So, if you want to get the latest survey update about customer satisfaction then Jusfeedback Pte Ltd is the best option for you. Contact us now and get genuine solutions.

    ReplyDelete
  24. This is the right site for everyone who would like to find out about this topic. You realize so much its almost tough to argue with you (not that I actually would want to…HaHa). You definitely put a fresh spin on a topic which has Canon Cameras been discussed for ages. Wonderful stuff, just great!

    ReplyDelete
  25. I am very impressed with your post because this post is very beneficial for me and provide a new knowledge to me mobile price in bd

    ReplyDelete
  26. When I initially commented I appear to have clicked on the -Notify me when new comments are added- checkbox and from now on every time a comment is added I recieve 4 emails with the same comment. There has to be a way you can remove me from that service? Thanks!
    english-course

    ReplyDelete
  27. I love your blog you did an amazing job. Thanks dear.
    https://proscrack.co/microsoft-office-2013-crack/

    ReplyDelete
  28. You did an amazing job thanks for sharing nice blog.
    https://crackvip.com/adobe-acrobat-pro-dc-crack/

    ReplyDelete
  29. We provide complete drainage condition reports to our customers. You feel that issues are actually making your pipes go haywire or backing up the wastewater with reports. So, contact us for Blocked Drains Finchley, and breathe as well as wash freely.

    Blocked drains are nothing but trouble. You flush your toilet, and it does not work. You take a shower, and the water is floating around your feet. Is not it time you clean and unblock your drains? If yes, you need to hear the sound of Unblocking Drains Fulham.

    Call us and get clear of blocked sewer obstructions like fats, the waste build-up of limescale deposits. We do our work with the confidence of years of expertise without any mess. Further, there are common reasons why Blocked Drains Park Royal, are your worst enemy.

    In a nutshell, the service of CCTV Drainage Survey Putney is the professional and expert drainage and plumbing assessment and investigative measures for underground pipes and sewers. It uses small CCTV cameras to report any damages and potential problems that may occur later.

    ReplyDelete
  30. If you're looking for the best lifestyle blog, you should check out the following link: best lifestyle blog

    ReplyDelete
  31. When you are planning on defining the look and space of your home, it is very important that you take the time out to find a reliable interior designer that can offer their expertise to you and define the whole ambience inside your home. However, with so many well known interior designers offering their services in Singapore, it can be a little difficult for you to choose a company that can be just perfect for you. Here are some things that you need to look for when you want to hire an interior designer Singapore for managing your residential interiors.

    ReplyDelete
  32. When you are planning on defining the look and space of your home, it is very important that you take the time out to find a reliable interior designer that can offer their expertise to you and define the whole ambience inside your home. However, with so many well known interior designers offering their services in Singapore, it can be a little difficult for you to choose a company that can be just perfect for you. Here are some things that you need to look for when you want to hire an interior designer Singapore for managing your residential interiors.

    ReplyDelete
  33. Shade Sails Online provide high-quality custom-made Shade Sails. Here, we offer a large range of fixed-size Shade Sails for sale. Important points to ponder before you install your DIY Shade Sails. All our shade sails are individually made-not mass-produced and made from fabricated using cloth specifically designed for Shade Sails. Shade Sails Online specialize in providing a custom-made shade sails fabrication service. Additionally, we also offer a range of shade sail fittings. We can also provide assistance with large, unusual, or multiple Shade Sail projects. Visit our website and get benefits.

    ReplyDelete
  34. Https://kogitesocial.com
    Https://kogitesocial.com/category/news
    Https://kogitesocial.com/about
    Https://kogitesocial.com/contact
    Https://kogitesocial.com/category/sport
    Https://kogitesocial.com/category/livescore
    Https://kogitesocial.com/category/review
    Https://kogitesocial.com/category/business

    ReplyDelete
  35. https://freeprosoftz.com/easeus-data-recovery-pro-license-code-crack/

    ReplyDelete