
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Virtual Switch Archives - TECHNIG</title>
	<atom:link href="https://www.technig.com/tag/virtual-switch/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.technig.com/tag/virtual-switch/</link>
	<description>Gateway for IT Experts and Tech Geeks</description>
	<lastBuildDate>Tue, 12 Apr 2022 07:45:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>

<image>
	<url>https://www.technig.com/wp-content/uploads/2020/04/32x32.png</url>
	<title>Virtual Switch Archives - TECHNIG</title>
	<link>https://www.technig.com/tag/virtual-switch/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">162720667</site>	<item>
		<title>How to Share Host resources with Virtual Machine in Hyper-V</title>
		<link>https://www.technig.com/share-host-resources-with-virtual-machine-in-hyper-v/</link>
					<comments>https://www.technig.com/share-host-resources-with-virtual-machine-in-hyper-v/#respond</comments>
		
		<dc:creator><![CDATA[Mashallah Haidarzada]]></dc:creator>
		<pubDate>Tue, 12 Apr 2022 07:45:40 +0000</pubDate>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Hyper-v Configuration]]></category>
		<category><![CDATA[Hyper-V installation]]></category>
		<category><![CDATA[Hyper-V Manager]]></category>
		<category><![CDATA[Hypervisor]]></category>
		<category><![CDATA[Server Virtualization]]></category>
		<category><![CDATA[Virtual Machine]]></category>
		<category><![CDATA[Virtual Machine Management]]></category>
		<category><![CDATA[Virtual Switch]]></category>
		<category><![CDATA[Windows Server]]></category>
		<guid isPermaLink="false">https://technig.com/?p=17155</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="624" height="461" src="https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220407_191437.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Share host&#039;s local resources with a virtual machine." decoding="async" fetchpriority="high" srcset="https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220407_191437.png 624w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220407_191437-300x222.png 300w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220407_191437-86x64.png 86w" sizes="(max-width: 624px) 100vw, 624px" /></div>
<p>Sharing physical resources is the primary purpose of virtualization. in Hyper-V we assign physical resources like; CPU, RAM, and disk space for every Virtual Machine at the time of configuration. But other resources like External disks, USB flash drives, and other plug play are configured when needed. In this article, I explain how to share [&#8230;]</p>
<p>The post <a href="https://www.technig.com/share-host-resources-with-virtual-machine-in-hyper-v/">How to Share Host resources with Virtual Machine in Hyper-V</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="624" height="461" src="https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220407_191437.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Share host&#039;s local resources with a virtual machine." decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220407_191437.png 624w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220407_191437-300x222.png 300w, https://www.technig.com/wp-content/uploads/2022/04/screenshot_20220407_191437-86x64.png 86w" sizes="(max-width: 624px) 100vw, 624px" /></div>
<p>Sharing physical resources is the primary purpose of virtualization. in Hyper-V we assign physical resources like; CPU, RAM, and disk space for every Virtual Machine at the time of configuration. But other resources like External disks, USB flash drives, and other plug play are configured when needed. In this article, I explain how to share host resources with the virtual machine in Hyper-V.</p>



<p>In Hyper-V, even if you want to copy a file from the USB flash drive to your virtual machine, you have to go a long way: You must create a virtual switch, connect your host and virtual machine to the same virtual switch, and give your virtual machine access to your USB flash drive. I will go through this process step by step in this article.</p>



<h2 class="wp-block-heading">Create Virtual Switch in Hyper-V</h2>



<p>When you create a Virtual Switch in Hyper-V, you will see three types of virtual switches. Each of these switch types has its advantages, so you have to choose the right type of Switch.</p>



<h3 class="wp-block-heading">External Switch</h3>



<p>External Switch provides a connection between virtual machines, hosts, and the physical network. It means that your virtual machine can connect to the internet as well. When you connect your virtual machine to an external switch, your virtual machine will be accessible by the host, physical network and the internet.</p>



<h3 class="wp-block-heading">Internal Switch</h3>



<p>You can use an Internal switch to separate your host network from your virtual network. Your virtual machines can communicate with each other and with the host, using an internal switch. But can not communicate with the physical network.</p>



<h3 class="wp-block-heading">Private Switch</h3>



<p>Virtual machines connected to a private switch can communicate with each other, but can not communicate with the host or physical network.</p>



<p>Now that you have understood virtual switch types follow the steps below to create a virtual switch.</p>



<p><strong>1.</strong> <strong>Open Hyper-V Manager</strong> and click on <strong>Virtual Switch Manager</strong>.</p>



<div class="wp-block-image"><figure class="aligncenter"><img decoding="async" width="1024" height="709" src="//i0.wp.com/technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-03-102937-1-1024x709.jpg" alt="Create a Virtual Switch in Hyper-V from Virtual Switch Manager." class="wp-image-17157" srcset="https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-03-102937-1-1024x709.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-03-102937-1-300x208.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-03-102937-1-768x532.jpg 768w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-03-102937-1.jpg 1074w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Showing Virtual Switch Manager in Hyper-V.</figcaption></figure></div>



<p><strong>2.</strong> Click on the <strong>New virtual network switch</strong> and select <strong>External</strong>, <strong>Internal</strong> or <strong>Private,</strong> then click on <strong>Create Virtual Switch</strong>. To share local resources with a virtual machine in Hyper-V, you must create an external switch or internal Switch because just external and internal switches provide the connection with the host. A Private Switch doesn&#8217;t provide the connection between virtual machines and the host machine.</p>



<div class="wp-block-image is-style-default"><figure class="aligncenter size-full"><img decoding="async" width="909" height="865" src="//i0.wp.com/technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-03-103127-1.jpg" alt="Sharing host local resources with a virtual machine can be done through virtual switch in Hyper-V." class="wp-image-17208" srcset="https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-03-103127-1.jpg 909w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-03-103127-1-300x285.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-03-103127-1-768x731.jpg 768w" sizes="(max-width: 909px) 100vw, 909px" /><figcaption>Create Internal or External Virtual Switch from Virtual Switch Manager.</figcaption></figure></div>



<p><strong>3.</strong> Name your virtual Switch; you can see it as you type the name. Choose the Internal network connection type for your virtual Switch, then press <strong>OK</strong>.</p>



<div class="wp-block-image is-style-default"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="912" height="866" src="//i0.wp.com/technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-03-11190-0-1.png" alt="" class="wp-image-17162" srcset="https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-03-11190-0-1.png 912w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-03-11190-0-1-300x285.png 300w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-03-11190-0-1-768x729.png 768w" sizes="(max-width: 912px) 100vw, 912px" /><figcaption>Name the new Virtual Switch and choose the connection type.</figcaption></figure></div>



<p>Now that you have created a virtual switch make sure that it has been created appropriately by clicking on <strong>Virtual Switch Manager</strong> in Hyper-V Manager. You can change your switch type easily from <strong>Virtual Switch Manager</strong>. Now let&#8217;s connect the virtual machine to the virtual Switch.</p>



<p>Check out if you want to know how to <a href="https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/get-started/create-a-virtual-switch-for-hyper-v-virtual-machines" target="_blank" rel="noreferrer noopener nofollow">create a virtual switch by using Windows PowerShell</a>.</p>



<h2 class="wp-block-heading">Connect Virtual Machine to Virtual Switch</h2>



<p>Both the host and the virtual machine must be connected to the same virtual Switch in order to share your host resources with the virtual machine. When you create an external or internal switch in Hyper-V, your host connects automatically to that Switch, but your virtual machine doesn&#8217;t. You have to connect your virtual machine to the virtual switch manually. I explain how to connect the virtual machine to the virtual switch step by step.</p>



<p><strong>1.</strong> Open Hyper-V Manager, right-click on the name of your virtual machine and click on <strong>Settings</strong>. Or, if your virtual machine is running, maximize your virtual machine window and click on the <strong>File </strong>and click on <strong>settings</strong>.</p>



<p><strong>2.</strong> Click on <strong>Add Hardware,</strong> select <strong>Network Adapter</strong> and click on <strong>Add</strong>.</p>



<div class="wp-block-image is-style-default"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="942" height="886" src="https://technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-083642.jpg" alt="Add network Adapter to Virtual Machine" class="wp-image-17167" srcset="https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-083642.jpg 942w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-083642-300x282.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-083642-768x722.jpg 768w" sizes="(max-width: 942px) 100vw, 942px" /><figcaption>Add Network Adapter from Add Hardware tab of the Virtual Machine Settings.</figcaption></figure></div>



<p><strong>3.</strong> Select the virtual Switch from the list and click <strong>OK</strong>. You can also remove any virtual switch that is not needed by selecting that virtual Switch and clicking on Remove.</p>



<div class="wp-block-image is-style-default"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="910" height="866" src="https://technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-091826.jpg" alt="Select a Virtual Switch to connect the Virtual Machine" class="wp-image-17168" srcset="https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-091826.jpg 910w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-091826-300x285.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-091826-768x731.jpg 768w" sizes="(max-width: 910px) 100vw, 910px" /><figcaption>Specify the configuration of the network adapter or remove the network adapter.</figcaption></figure></div>



<p><strong>4.</strong> Before you go to share local resources in Hyper-V, make sure that your host is connected to your virtual Switch. Open Control Panel, click on Network and Internet, and then click on Network and Sharing Center.</p>



<div class="wp-block-image is-style-default"><figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="587" src="https://technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-095601-1024x587.jpg" alt="" class="wp-image-17169" srcset="https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-095601-1024x587.jpg 1024w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-095601-300x172.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-095601-768x440.jpg 768w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-095601-750x430.jpg 750w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-095601.jpg 1051w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure></div>



<p>When creating a virtual switch, make sure it is the right type of Switch that you need. If you want to connect your virtual machine to the internet, create an external switch, and if you&#8217;re going to separate your virtual network from the host network, then create a Private Switch.</p>



<h2 class="wp-block-heading">Configure to Share Host&#8217;s Local Resources With Virtual Machine</h2>



<p>You can share; printers, clipboards, external hard disks, internal disk drives, USB flash drives, and other plug and play devices from the Local Resources. In Hyper-V, if you want to copy a file into your virtual machine, it doesn&#8217;t provide you with the copy and paste option from the host to the virtual machine, so you have to share it via file-sharing or share the disk or USB itself. Follow the steps below to configure resource sharing.</p>



<p><strong>1.</strong> Right-click on the <strong>Virtual Machine</strong> name and click on <strong>Connect</strong>. The following screen appears, then click on <strong>Show Options</strong>.</p>



<div class="wp-block-image is-style-default"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="548" height="280" src="https://technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-100723.jpg" alt="In Hyper-V this screen appears when you want to connect to a Virtual Machine." class="wp-image-17170" srcset="https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-100723.jpg 548w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-100723-300x153.jpg 300w" sizes="(max-width: 548px) 100vw, 548px" /><figcaption>Connect to Virtual Machine screen</figcaption></figure></div>



<p><strong>2.</strong> Click on <strong>Local resources</strong> to see local devices, check the devices you want to share with the virtual machine, and then click on <strong>Connect</strong>. If the resource you want to share is not in the list, click on <strong>More</strong>.</p>



<div class="wp-block-image is-style-default"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="545" height="400" src="https://technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-103624.jpg" alt="Check any device that you want to share with Virtual Machine." class="wp-image-17171" srcset="https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-103624.jpg 545w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-103624-300x220.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-103624-86x64.jpg 86w" sizes="(max-width: 545px) 100vw, 545px" /><figcaption>Local Resources like Remote Audio, Printers, and Clipboard. Click <strong>More</strong> to see more devices.</figcaption></figure></div>



<p><strong>3.</strong> The following screen appears, select your resource from that list and click <strong>OK</strong>. I want to share Local drive C and a USB Pendrive which is plugged into my computer.</p>



<div class="wp-block-image is-style-default"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="548" height="385" src="//i0.wp.com/technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-125610-1.jpg" alt="You can select USB, disk drives and other plug and play to share with the Virtual Machine running in Hyper-V." class="wp-image-17175" srcset="https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-125610-1.jpg 548w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-05-125610-1-300x211.jpg 300w" sizes="(max-width: 548px) 100vw, 548px" /><figcaption>Select local devices and resources you want to share with the virtual machine.</figcaption></figure></div>



<p><strong>4.</strong> After your virtual machine is connected, log in with a username and password. Check the File Explorer, drive and devices you shared before will appear under <strong>Redirected drives and folders</strong>.</p>



<div class="wp-block-image is-style-default"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="847" height="532" src="https://technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-06-120206.jpg" alt="The drive C and USB flash drive is shared by Hyper-V host and appears in the virtual machine." class="wp-image-17216" srcset="https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-06-120206.jpg 847w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-06-120206-300x188.jpg 300w, https://www.technig.com/wp-content/uploads/2022/04/Screenshot-2022-04-06-120206-768x482.jpg 768w" sizes="(max-width: 847px) 100vw, 847px" /><figcaption>The drive C of the host and a USB flash drive plugged into the host appeared in the virtual machine.</figcaption></figure></div>



<p>Sharing local resources look complicated, but it gets easier when you understand the process well. If you create the correct type of switch, connect your host and virtual machine to the virtual switch properly, so you will not find issues to share local resources with the virtual machine in Hyper-V.</p>



<p>Check out this article to know more about the <a href="https://www.technig.com/installation-of-hyper-v-on-windows-11-windows-server-2022/" target="_blank" rel="noreferrer noopener">installation of Hyper-V on Windows 11 and Windows Server 2022</a>.</p>



<p>Check out this article if you want to know How<a href="https://www.technig.com/connect-hyper-v-machines-to-internet/" target="_blank" rel="noreferrer noopener"> To Connect Hyper-V Machines To Internet?</a></p>
<p>The post <a href="https://www.technig.com/share-host-resources-with-virtual-machine-in-hyper-v/">How to Share Host resources with Virtual Machine in Hyper-V</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/share-host-resources-with-virtual-machine-in-hyper-v/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">17155</post-id>	</item>
	</channel>
</rss>
