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.

229 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 No Time to Die Online Free

    ReplyDelete
  2. 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 F9 Online Free

    ReplyDelete
  3. 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
  4. 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
  5. Great article, It's very informative. Thanks for the share. Free Pie Has a great article, check it out here

    ReplyDelete
  6. Hello I really impressed from your article.You article is very usefull.
    wordpress tutorialan other issues
    you find out here. fix wordpress problems

    ReplyDelete
  7. Kellogg Movers offers a professional moving service that you deserve. We are the best call you can make, and we will prove it.


    In House Moving Service
    Full Service Moving Company
    Relocation Services

    ReplyDelete
  8. 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
  9. 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
  10. 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
  11. Kampala International University (KIU) founded in 2001 is a private chartered University in the Republic of Uganda. It is a member of the Association of Commonwealth Universities, the Association of Africa Universities as well as the Inter University-Council of East Africa. KIU offers a variety of programs in Health Sciences, Science and Technology, Engineering, Business and Management, Law, Humanities and Education.
    kampala international university

    ReplyDelete
  12. 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
  13. Usally I do not comment on blogs. IT is the first time I am commenting on this blog. Really
    Keep it up

    ReplyDelete
  14. 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
  15. Usally I do not comment on blogs. IT is the first time I am commenting on this blog. Really
    Thumbs Up for you
    I like this very much
    Really Appriciate the good work
    Keep it up
    Thumbs Up for you

    ReplyDelete
  16. 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
  17. Usally I do not comment on blogs. IT is the first time I am commenting on this blog. Really
    Thumbs Up for you
    I like this very much
    Really Appriciate the good work
    Keep it up
    Thumbs Up for you

    ReplyDelete
  18. 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
  19. amazing stuff. your content is so great and informative. FB also it was fun reading it. I really enjoyed it.


    Daftar FB
    login FB
    facebook
    Download Facebook Lite

    ReplyDelete
  20. 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
  21. I read a article under the same title some time ago, but this articles quality is much, much better. How you do this
    Click
    here for
    more
    info

    ReplyDelete
  22. Extremely inspired! Everything is extremely open and clear illumination of issues. It contains really certainties. Your site is extremely important. Much obliged for sharing.
    Click
    here for
    more
    info

    ReplyDelete
  23. Nice story. It's good that they have made something like these. This looks a whole lot better to me.
    Click
    here for
    more
    info

    ReplyDelete
  24. I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job
    Click
    here for
    more
    info

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

    ReplyDelete
  26. I am a new user of this site so here i saw multiple articles and posts posted by this site, I curious more interest in some of them hope you will give more information on this topics in your next articles
    Click
    here for
    more
    info

    ReplyDelete
  27. This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free
    Click
    here for
    more
    info

    ReplyDelete
  28. 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
  29. 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!
    Click
    here for
    more
    info

    ReplyDelete
  30. I have read your Post. you write very well. i'm impressed.
    I design websites here are some posts anybody can visit with thanks.
    Pak Web Idea
    Web Designing
    Web Development
    e-commerce Websites
    SEO Services

    ReplyDelete
  31. I read a article under the same title some time ago, but this articles quality is much, much better. How you do this
    Click
    here for
    more
    info

    ReplyDelete
  32. Extremely inspired! Everything is extremely open and clear illumination of issues. It contains really certainties. Your site is extremely important. Much obliged for sharing.
    Click
    here for
    more
    info

    ReplyDelete
  33. Nice story. It's good that they have made something like these. This looks a whole lot better to me.
    Click
    here for
    more
    info

    ReplyDelete
  34. I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job
    Click
    here for
    more
    info

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

    ReplyDelete
  36. I am a new user of this site so here i saw multiple articles and posts posted by this site, I curious more interest in some of them hope you will give more information on this topics in your next articles next articles
    Click
    here for
    more
    info

    ReplyDelete
  37. This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free resource for free
    Click
    here for
    more
    info

    ReplyDelete
  38. 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 stuff you pos
    Click
    here for
    more
    info

    ReplyDelete
  39. 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
  40. I read a article under the same title some time ago, but this articles quality is much, much better. How you do this
    Click
    here for
    more
    info

    ReplyDelete
  41. Extremely inspired! Everything is extremely open and clear illumination of issues. It contains really certainties. Your site is extremely important. Much obliged for sharing.
    Click
    here for
    more
    info

    ReplyDelete
  42. Nice story. It's good that they have made something like these. This looks a whole lot better to me.
    Click
    here for
    more
    info

    ReplyDelete
  43. I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job
    Click
    here for
    more
    info

    ReplyDelete

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

    ReplyDelete
  45. I am a new user of this site so here i saw multiple articles and posts posted by this site, I curious more interest in some of them hope you will give more information on this topics in your next articles
    Click
    here for
    more
    info

    ReplyDelete
  46. This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free
    Click
    here for
    more
    info

    ReplyDelete
  47. 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
  48. 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!
    Click
    here for
    more
    info

    ReplyDelete
  49. I read a article under the same title some time ago, but this articles quality is much, much better. How you do this
    Click
    here for
    more
    info

    ReplyDelete
  50. Extremely inspired! Everything is extremely open and clear illumination of issues. It contains really certainties. Your site is extremely important. Much obliged for sharing.
    Click
    here for
    more
    info

    ReplyDelete
  51. Nice story. It's good that they have made something like these. This looks a whole lot better to me.
    Click
    here for
    more
    info

    ReplyDelete
  52. I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job
    Click
    here for
    more
    info

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

    ReplyDelete
  54. I am a new user of this site so here i saw multiple articles and posts posted by this site, I curious more interest in some of them hope you will give more information on this topics in your next articles next articles
    Click
    here for
    more
    info

    ReplyDelete
  55. This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free resource for free
    Click
    here for
    more
    info

    ReplyDelete
  56. This is an awesome post. Really very informative and creative contents. This concept is a good way to enhance knowledge. I like it and help me to development very well. Thank you for this brief explanation and very nice information.
    Visit more BEVYBUZZ

    ReplyDelete
  57. I read a article under the same title some time ago, but this articles quality is much, much better. How you do this
    Click
    here for
    more
    info

    ReplyDelete
  58. Extremely inspired! Everything is extremely open and clear illumination of issues. It contains really certainties. Your site is extremely important. Much obliged for sharing.
    Click
    here for
    more
    info

    ReplyDelete
  59. Nice story. It's good that they have made something like these. This looks a whole lot better to me.
    Click
    here for
    more
    info

    ReplyDelete
  60. I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job
    Click
    here for
    more
    info

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

    ReplyDelete
  62. I am a new user of this site so here i saw multiple articles and posts posted by this site, I curious more interest in some of them hope you will give more information on this topics in your next articles
    Click
    here for
    more
    info

    ReplyDelete
  63. This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free
    Click
    here for
    more
    info

    ReplyDelete
  64. 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
  65. 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!
    Click
    here for
    more
    info

    ReplyDelete
  66. 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
  67. I have read your excellent post. This is a great job. I have enjoyed reading your post first time. I want to say thanks for this post. Thank you...group buy SEO tools

    ReplyDelete
  68. 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
  69. I must thank you for the efforts you have put in writing this blog. I am hoping to check out the same high-grade content by you in the future as well.
    I was very pleased to uncover this website. I want to to thank you for your time for this fantastic read!! I definitely savored every little bit of it and i also have you saved as a favorite to see new things in your site.

    No more waste time to searching #HDimages, #PCwallpaper, #smartphone_wallpaper, #socialmedia_banner, #socialmedia_image_post, #natureHDimages, and many more awesome pictures. Just visit All Awesome Pictures Only For Love Hearts and choose your best choice.
    All Awesome Pictures Only For Love Hearts
    All Awesome Pictures Only For Love Hearts
    All Awesome Pictures Only For Love Hearts

    ReplyDelete