{"id":22,"date":"2014-09-12T01:51:07","date_gmt":"2014-09-12T01:51:07","guid":{"rendered":"http:\/\/blog.electrongoo.com\/?p=22"},"modified":"2017-05-01T15:40:40","modified_gmt":"2017-05-01T15:40:40","slug":"by-htm","status":"publish","type":"post","link":"https:\/\/blog.electrongoo.com\/index.php\/by-htm\/","title":{"rendered":"Using Hyper-V services to simplify the software development cycle"},"content":{"rendered":"<h1>Hyper-V\u00a0for software developers:<\/h1>\n<p>An efficient and well-defined development environment is required for a software engineer to be effective.\u00a0 A major part of this environment is the testing\/certification system (i.e. the Operating System available to install and test the software under development).\u00a0 Microsoft&#8217;s Hyper-V is a service which runs on 64-bit versions of Microsoft Windows Server and Windows 8.1 Pro.\u00a0 It is an excellent tool to enable a simple and effective test environment for software developers. Hyper-V virtualization services is a key part of my software development process.\u00a0 Below, I share how I setup, configure, and utilize the service for my everyday development and testing needs.<\/p>\n<h1><strong>Pros:<\/strong><\/h1>\n<ul>\n<li>not necessary to purchase new hardware<\/li>\n<li>easy to reconfigure the operating system to a &#8220;clean&#8221; or &#8220;well defined&#8221; state for testing<\/li>\n<li>able to share images of operating systems easily with other developers<\/li>\n<li>faster setup and re-configure times<\/li>\n<li>easy to roll-back to a previous state to get a fresh look at a software bug<\/li>\n<\/ul>\n<h1><strong>Cons:<\/strong><\/h1>\n<ul>\n<li>A 64-bit version of Microsoft Server (or Windows 8.1 Pro) operating system is required to install the host Hyper-V service<\/li>\n<li>An Intel or AMD microprocessor with hardware-assisted virtualization must be available and configured by you in the BIOS<\/li>\n<\/ul>\n<h1><strong>Requirements:<\/strong><\/h1>\n<ul>\n<li>Windows Server 2008 or later, Windows 8.1 (64-bit) Pro\/Enterprise<\/li>\n<li>A x64-based processor\u00a0 (64-bit)<\/li>\n<li>A BIOS with hardware-assisted virtualization. This is available in processors that include a virtualization option such as Intel Virtualization Technology (Intel VT) or AMD Virtualization (AMD-V)<\/li>\n<li>A BIOS with hardware-enforced Data Execution Prevention (DEP) must be available and be enabled. Specifically, you must enable the Intel XD bit (execute disable bit) or AMD NX bit (no execute bit).<\/li>\n<\/ul>\n<p>The first requirement to utilize Hyper-V is to install the host service on your Windows Server or Windows 8 Pro\/Enterprise system.\u00a0 This is a one-time setup as described below.<\/p>\n<h1>Enabling Intel VT or AMD-V in the BIOS:<\/h1>\n<p>Enabling the Intel Virtualization Technology (Intel VT) or AMD Virtualization (AMD-V) feature in your processor via the BIOS is required to run Hyper-V.\u00a0 Unfortunately, not all processors have this feature.\u00a0 If the processor in your host system does not have this feature then you can either purchase a new processor or use a different virtualization host such as Virtual Box which does not require hardware virtualization. To verify that your processor&#8217;s Virtualization Technology is enabled, restart your PC and enter the BIOS menu (note: there is no common PC BIOS or BIOS interface so you should refer to your\u00a0motherboard\/CPU documentation for detailed information about your specific system).\u00a0 Enter the BIOS as your system is restarting (typically press the <strong>Delete<\/strong>, <strong>F1<\/strong>, <strong>ESC<\/strong>, or <strong>Alt-F4<\/strong> keys).\u00a0 Once you&#8217;re in the BIOS menu look for a setting title <strong>Intel Virtualization Technology<\/strong> or <strong>VT-x<\/strong>.\u00a0 This could be under the <strong>Advanced CPU<\/strong>, <strong>Chipset<\/strong>, <strong>Advanced<\/strong>, or <strong>Other<\/strong> sub-menu.\u00a0 Make sure the setting is <strong>Enabled<\/strong> and save the BIOS settings and restart your system. If you can&#8217;t locate the setting you can simple try installing Hyper-V.\u00a0 If the virtualization feature is enabled (as it would be by default with most modern\u00a0AMD processors) then Hyper-V will work fine.\u00a0 If the feature is NOT installed then you will get a warning during installation and you will not be allowed to continue until the virtualization feature is enabled.<\/p>\n<h1><strong>Installing Microsoft Hyper-V services on Windows Server:<\/strong><\/h1>\n<p>From the Windows Start Menu, search for the Server Manager and launch it<\/p>\n<figure id=\"attachment_37\" aria-describedby=\"caption-attachment-37\" style=\"width: 362px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-start.jpg\"><img loading=\"lazy\" class=\"wp-image-37 size-full\" src=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-start.jpg\" alt=\"launch the server manager\" width=\"362\" height=\"547\" srcset=\"https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-start.jpg 362w, https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-start-198x300.jpg 198w\" sizes=\"(max-width: 362px) 100vw, 362px\" \/><\/a><figcaption id=\"caption-attachment-37\" class=\"wp-caption-text\">launch the server manager<\/figcaption><\/figure>\n<p>In the Console Tree on the left-side, right-click <strong>Roles<\/strong> and select <strong>Add Roles<\/strong>.\u00a0 .<\/p>\n<figure id=\"attachment_38\" aria-describedby=\"caption-attachment-38\" style=\"width: 207px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-addroles.jpg\"><img loading=\"lazy\" class=\"wp-image-38 size-full\" src=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-addroles.jpg\" alt=\"select add roles\" width=\"207\" height=\"296\" \/><\/a><figcaption id=\"caption-attachment-38\" class=\"wp-caption-text\">select add roles<\/figcaption><\/figure>\n<p>The Add Role Wizard \u00a0will be displayed.\u00a0 Click-though the wizard and select <strong>Hyper-V<\/strong> from the <strong>Select Server Roles<\/strong> page.\u00a0 If Hyper-V is already installed then simply click the <strong>Cancel<\/strong> button and move along to the next section.\u00a0 Otherwise, press the <strong>Install<\/strong> button and click-through the Confirmation and Progress pages to complete the installation<\/p>\n<figure id=\"attachment_36\" aria-describedby=\"caption-attachment-36\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-service.jpg\"><img loading=\"lazy\" class=\"wp-image-36 size-medium\" src=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-service-300x220.jpg\" alt=\"add role wizard\" width=\"300\" height=\"220\" srcset=\"https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-service-300x220.jpg 300w, https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-service.jpg 778w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-36\" class=\"wp-caption-text\">add role wizard<\/figcaption><\/figure>\n<h1><strong>Installing Microsoft Hyper-V services on Windows 8.1:<\/strong><\/h1>\n<p>In the Control Panel, click <strong>Programs<\/strong>, and then click <strong>Programs and Features<\/strong>.\u00a0 Click <strong>Turn Windows features on or off<\/strong>.\u00a0 Click <strong>Hyper-V<\/strong>, click <strong>OK<\/strong>, and then click <strong>Close<\/strong>.<\/p>\n<h1><strong>Launching the Hyper-V Console:<\/strong><\/h1>\n<p>From the Windows Start menu, search for the Hyper V Manager and launch it<\/p>\n<figure id=\"attachment_35\" aria-describedby=\"caption-attachment-35\" style=\"width: 405px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-manager.jpg\"><img loading=\"lazy\" class=\"wp-image-35 size-full\" src=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-manager.jpg\" alt=\"launch hyper-v manager\" width=\"405\" height=\"544\" srcset=\"https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-manager.jpg 405w, https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-manager-223x300.jpg 223w\" sizes=\"(max-width: 405px) 100vw, 405px\" \/><\/a><figcaption id=\"caption-attachment-35\" class=\"wp-caption-text\">launch hyper-v manager<\/figcaption><\/figure>\n<p>When you launch the Hyper-V manager you will see a list of all current virtual machines (guest operating systems) that you have created.\u00a0 Selecting a virtual machine from the top-center view will display a list of each of the snapshots you have created for that virtual machine.<\/p>\n<figure id=\"attachment_45\" aria-describedby=\"caption-attachment-45\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-manager-view.jpg\"><img loading=\"lazy\" class=\"size-medium wp-image-45\" src=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-manager-view-300x210.jpg\" alt=\"hyper-v manager view\" width=\"300\" height=\"210\" srcset=\"https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-manager-view-300x210.jpg 300w, https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-manager-view.jpg 960w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-45\" class=\"wp-caption-text\">hyper-v manager view<\/figcaption><\/figure>\n<p>Your view of virtual machines will be empty if this is the first time you have run the Hyper-V manager.<\/p>\n<h1>Creating a\u00a0new virtual machine:<\/h1>\n<p>In the <strong>Actions<\/strong> pane located in the upper-right select <strong>New<\/strong> | <strong>Virtual Machine<\/strong>.\u00a0 The New Virtual Machine wizard will be displayed.<\/p>\n<figure id=\"attachment_50\" aria-describedby=\"caption-attachment-50\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-1.jpg\"><img loading=\"lazy\" class=\"size-medium wp-image-50\" src=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-1-300x217.jpg\" alt=\"hyper-v wizard - startup\" width=\"300\" height=\"217\" srcset=\"https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-1-300x217.jpg 300w, https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-1.jpg 693w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-50\" class=\"wp-caption-text\">hyper-v wizard &#8211; startup<\/figcaption><\/figure>\n<p>Click <strong>Next<\/strong> and enter a description of your new Virtual Machine such as &#8220;<strong>Windows Server 2012 Essentials<\/strong>&#8221; or &#8220;<strong>Windows 8.&#8221;\u00a0<\/strong> Click <strong>Next <\/strong>to configure the amount of memory accessible to the virtual machine.<\/p>\n<figure id=\"attachment_51\" aria-describedby=\"caption-attachment-51\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-2.jpg\"><img loading=\"lazy\" class=\"size-medium wp-image-51\" src=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-2-300x217.jpg\" alt=\"hyper-v wizard - VM name\" width=\"300\" height=\"217\" srcset=\"https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-2-300x217.jpg 300w, https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-2.jpg 693w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-51\" class=\"wp-caption-text\">hyper-v wizard &#8211; VM name<\/figcaption><\/figure>\n<p>Enter the amount of memory you want the guest operating system in you new virtual machine to have access to.\u00a0 Note this physical memory must exist in the host system running Hyper-V.\u00a0 So you should make this value only as large as you actually need.\u00a0 Make sure you take into account the actual amount of RAM required by the operating system you are going to install in the virtual machine (for example Windows Small Business Server 2011 requires a minimum of 1024 MB).\u00a0 You can always change this value later so don&#8217;t be too concerned about absolute requirements or optimizations for your system at this time.\u00a0 Click <strong>Next<\/strong> to configure your network.<\/p>\n<figure id=\"attachment_52\" aria-describedby=\"caption-attachment-52\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-3.jpg\"><img loading=\"lazy\" class=\"size-medium wp-image-52\" src=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-3-300x217.jpg\" alt=\"hyper-v wizard - configure memory\" width=\"300\" height=\"217\" srcset=\"https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-3-300x217.jpg 300w, https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-3.jpg 693w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-52\" class=\"wp-caption-text\">hyper-v wizard &#8211; configure memory<\/figcaption><\/figure>\n<p>Configure the network you want the guest operating system to have access to.\u00a0\u00a0 It&#8217;s best to select the LAN.\u00a0 Doing so will allow the installed guest operating system to appear on your local network just like a normal\u00a0physical system.\u00a0 You will have access to\u00a0 file sharing, internet access, and (most important to us developers) remote debugging features.\u00a0 Click <strong>Next<\/strong> to configure the size and location of the virtual hard drive.<\/p>\n<figure id=\"attachment_53\" aria-describedby=\"caption-attachment-53\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-4.jpg\"><img loading=\"lazy\" class=\"size-medium wp-image-53\" src=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-4-300x217.jpg\" alt=\"hyper-v wizard - configure network\" width=\"300\" height=\"217\" srcset=\"https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-4-300x217.jpg 300w, https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-4.jpg 693w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-53\" class=\"wp-caption-text\">hyper-v wizard &#8211; configure network<\/figcaption><\/figure>\n<p>Enter a name for your new virtual machine.\u00a0 It will always have the file extension <strong>vhd<\/strong>.\u00a0 You should name it something relevant so you will be able to match the <strong>vhd<\/strong> file\u00a0with the operating system you install within the virtual machine.\u00a0 For example,\u00a0 if I create a virtual machine named, &#8220;<strong>Windows\u00a02012 Server Essentials<\/strong>&#8221; then I would name the virtual machine something like, &#8220;<strong>ws2012essentials.vhd<\/strong>&#8221; so I can immediately identify the <strong>vhd<\/strong> file when exploring the Windows file system. Enter the location of your new virtual machine.\u00a0 I prefer to save all virtual machines on a secondary data drive away from the Windows operating system drive of the Hyper-V host not only for easier storage management but also a slight boost in efficiency by reducing the amount of hard drive seeks between both the Hyper-V host and the virtual machine.\u00a0 But you can place the <strong>vhd<\/strong> files where ever you prefer as long as there is enough space on the hard drive. Enter the size in Gigabytes of the virtual hard drive.\u00a0 The best size is dependent on the guest operating system you install in the virtual machine.\u00a0 There&#8217;s quite a bit of trial and error to get this value just right for your needs.\u00a0 I recommend leaving the default value of 127GB.\u00a0 You can increase size of the virtual hard drive later if you need.\u00a0 Press\u00a0<strong>Next<\/strong> to configure the guest operating system and attached CD\/DVD devices. <a href=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-5.jpg\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-54\" src=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-5-300x217.jpg\" alt=\"hyper-v create 5\" width=\"300\" height=\"217\" srcset=\"https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-5-300x217.jpg 300w, https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-5.jpg 693w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Finally, locate the iso file containing the operating system you want to install into your new virtual machine.\u00a0 You can download iso files directly from Microsoft&#8217;s MSDN site.\u00a0 This iso file will be mounted in the virtual machine as a CD\/DVD device an allow you to install the operating system on the first boot of the virtual machine.\u00a0 Press <strong>Next<\/strong> to view the final settings of the new virtual machine.<\/p>\n<figure id=\"attachment_48\" aria-describedby=\"caption-attachment-48\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-6.jpg\"><img loading=\"lazy\" class=\"size-medium wp-image-48\" src=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-6-300x217.jpg\" alt=\"hyper-v wizard - configure guest operating system\" width=\"300\" height=\"217\" srcset=\"https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-6-300x217.jpg 300w, https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-6.jpg 693w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-48\" class=\"wp-caption-text\">hyper-v wizard &#8211; configure guest operating system<\/figcaption><\/figure>\n<p>If all your virtual machine settings look okay then click Finish to finalize the process.\u00a0 A new virtual hard disk will be created with the name you specified in the folder you specified.\u00a0 Return to the Hyper-V manager and you will see the name of your new virtual machine in the Vi<strong>rtual Machines<\/strong> pane located in the top-center of the window.<\/p>\n<figure id=\"attachment_49\" aria-describedby=\"caption-attachment-49\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-7.jpg\"><img loading=\"lazy\" class=\"size-medium wp-image-49\" src=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-7-300x217.jpg\" alt=\"hyper-v wizard - verify final settings\" width=\"300\" height=\"217\" srcset=\"https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-7-300x217.jpg 300w, https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-create-7.jpg 693w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-49\" class=\"wp-caption-text\">hyper-v wizard &#8211; verify final settings<\/figcaption><\/figure>\n<p>Now your new virtual machine is setup and you can\u00a0install the operating system into it.\u00a0 Double-click the virtual machine within the Hyper-V manager to start it.\u00a0\u00a0 You will see the virtual machine starts in a disabled state.<\/p>\n<figure id=\"attachment_56\" aria-describedby=\"caption-attachment-56\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-launch-1.jpg\"><img loading=\"lazy\" class=\"size-medium wp-image-56\" src=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-launch-1-300x229.jpg\" alt=\"hyper-v first launch \" width=\"300\" height=\"229\" srcset=\"https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-launch-1-300x229.jpg 300w, https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-launch-1.jpg 648w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-56\" class=\"wp-caption-text\">hyper-v first launch<\/figcaption><\/figure>\n<p>From the virtual machine select Action | Start to launch the install process of the new virtual machine.<\/p>\n<figure id=\"attachment_57\" aria-describedby=\"caption-attachment-57\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-launch-2.jpg\"><img loading=\"lazy\" class=\"size-medium wp-image-57\" src=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-launch-2-300x229.jpg\" alt=\"hyper-v install guest OS\" width=\"300\" height=\"229\" srcset=\"https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-launch-2-300x229.jpg 300w, https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-launch-2.jpg 648w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-57\" class=\"wp-caption-text\">hyper-v install guest OS<\/figcaption><\/figure>\n<p>Now the install process will begin loading directly from the iso file you specified when creating the virtual machine.\u00a0 Finish the install process just like you would on any machine any you are done.<\/p>\n<figure id=\"attachment_58\" aria-describedby=\"caption-attachment-58\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-launch-3.jpg\"><img loading=\"lazy\" class=\"size-medium wp-image-58\" src=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-launch-3-300x251.jpg\" alt=\"hyper-v install OS\" width=\"300\" height=\"251\" srcset=\"https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-launch-3-300x251.jpg 300w, https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-launch-3-1024x857.jpg 1024w, https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-launch-3.jpg 1031w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-58\" class=\"wp-caption-text\">hyper-v install OS<\/figcaption><\/figure>\n<h1>Launching a virtual machine:<\/h1>\n<p>After you have created one of more virtual machines you can launch them directly from the Hyper-V Manager.\u00a0 Double-click the virtual machine from the <strong>Virtual Machine<\/strong> pane located at top-center then click Action | Start.<\/p>\n<h1>Creating and utilizing snapshots:<\/h1>\n<p>Snapshots give you the ability to freeze an operating system at a point in time.\u00a0 This is perfect for testing before-and-after issues and compatibility with other software. To create a new snapshot for a virtual machine select the virtual machine from the <strong>Virtual Machines<\/strong> pane, right-click and select <strong>Snapshot<\/strong>.<\/p>\n<figure id=\"attachment_59\" aria-describedby=\"caption-attachment-59\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-snapshot.jpg\"><img loading=\"lazy\" class=\"size-medium wp-image-59\" src=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-snapshot-300x210.jpg\" alt=\"hyper-v snapshot\" width=\"300\" height=\"210\" srcset=\"https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-snapshot-300x210.jpg 300w, https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-snapshot.jpg 959w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-59\" class=\"wp-caption-text\">hyper-v snapshot<\/figcaption><\/figure>\n<h1>Managing virtual machine images:<\/h1>\n<p>It&#8217;s best to manage your virtual machines directly through the Hyper-V Manager.\u00a0 You can create, edit, and delete directly through the manager&#8217;s user-interface.\u00a0 With that, it&#8217;s good to know that all virtual machines,\u00a0 virtual hard disks, and snap shots are stored on a local hard drive on the Hyper-V host system.\u00a0 You can locate this folder via Windows Explorer.\u00a0 Open an Explorer window to the folder you specified during the virtual machine creation wizard.\u00a0 For example, in my case I save all virtual machine files on a data drive D:<\/p>\n<p><iframe loading=\"lazy\" src=\"\/\/rcm-na.amazon-adsystem.com\/e\/cm?o=1&#038;p=12&#038;l=ur1&#038;category=wireless&#038;banner=02HND5YJK5NEFPBWFS02&#038;f=ifr&#038;lc=pf4&#038;linkID=dbe9a0582bc5a397e6194f46bcabb3c9&#038;t=wwwelectrongo-20&#038;tracking_id=wwwelectrongo-20\" width=\"300\" height=\"250\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"><\/iframe><\/p>\n<figure id=\"attachment_60\" aria-describedby=\"caption-attachment-60\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-explore.jpg\"><img loading=\"lazy\" class=\"size-medium wp-image-60\" src=\"http:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-explore-300x190.jpg\" alt=\"hyper-v explore\" width=\"300\" height=\"190\" srcset=\"https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-explore-300x190.jpg 300w, https:\/\/blog.electrongoo.com\/wp-content\/uploads\/2014\/09\/hyper-v-explore.jpg 847w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-60\" class=\"wp-caption-text\">hyper-v explore<\/figcaption><\/figure>\n<h1>Tips and tricks:<\/h1>\n<ul>\n<li>Backup your virtual machine image files.\u00a0 Be aware of the folder containing\u00a0the virtual machine, virtual hard drive, and snap shot files.\u00a0 If you don&#8217;t run an image backup on your Hyper-V host machine then make sure you backup those specific folders.\u00a0 Regenerating all your virtual machines would not be fun!<\/li>\n<li>Create a snapshot immediately after installing a new operating system on your virtual machine.\u00a0 The ability to rollback to a &#8220;clean&#8221; system will be helpful at some point trying to track-down a bug<\/li>\n<li>Install the Hyper-V host on the most powerful and memory-filled system you have available.\u00a0 Each virtual machine will gobble memory from the host so if you want to run multiple virtual machines simultaneously you&#8217;ll need more\u00a0RAM.\u00a0 Also, a multi-core CPU is much more friendly to running virtual machines.<\/li>\n<li>Create a library of virtual machines with all the operating systems you develop for.\u00a0\u00a0 Have them available at a moments notice for quick efficient testing of your code.\u00a0 If your product supports all the way back to Windows XP then so should your VM library.<\/li>\n<li>\u00a0Share virtual machine images with other developers.\u00a0 Unlike physical hardware which might not always be compatible, you can share some, or all, of your VM library with other developers in your company.\u00a0 As long as they use Hyper-V it&#8217;s all good.\u00a0 When creating a new library you can divvy up the work, save time, helping each other build a VM library.<\/li>\n<li>Add multiple languages to your VM library.\u00a0 We&#8217;ve all seen some bugs which are only reproducible in certain languages.\u00a0 Add some Japanese, German, and other native VM&#8217;s to your library based on the target audience of your software.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Hyper-V\u00a0for software developers: An efficient and well-defined development environment is required for a software engineer to be effective.\u00a0 A major part of this environment is the testing\/certification system (i.e. the Operating System available to install and test the software under development).\u00a0 Microsoft&#8217;s Hyper-V is a service which runs on 64-bit versions of Microsoft Windows Server &hellip; <a href=\"https:\/\/blog.electrongoo.com\/index.php\/by-htm\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Using Hyper-V services to simplify the software development cycle<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,4],"tags":[6,5,7],"_links":{"self":[{"href":"https:\/\/blog.electrongoo.com\/index.php\/wp-json\/wp\/v2\/posts\/22"}],"collection":[{"href":"https:\/\/blog.electrongoo.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.electrongoo.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.electrongoo.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.electrongoo.com\/index.php\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":4,"href":"https:\/\/blog.electrongoo.com\/index.php\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"predecessor-version":[{"id":247,"href":"https:\/\/blog.electrongoo.com\/index.php\/wp-json\/wp\/v2\/posts\/22\/revisions\/247"}],"wp:attachment":[{"href":"https:\/\/blog.electrongoo.com\/index.php\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.electrongoo.com\/index.php\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.electrongoo.com\/index.php\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}