HyperV CVM VM. An additional internal switch is required for iSCSI Connection

Software-based VM-centric and flash-friendly VM storage + free version

Moderators: anton (staff), art (staff), Max (staff), Anatoly (staff)

Post Reply
alexvoigt
Posts: 8
Joined: Mon Jul 11, 2022 8:35 am

Wed Dec 11, 2024 7:57 am

Screenshot 2024-12-11 155247.png
Screenshot 2024-12-11 155247.png (88.83 KiB) Viewed 29550 times
Team

I am trying to configure an instance of vsan using the CVM virtual machine approach. I have successfully configured the vm and attached passthur disks to the vm and setup the storage pool / volume and successfully created the iscsi luns using powershell scripts.

I have 2x sync and 2x iscsi nic directly connected at 10gb between the hosts.

I have a separate management network in a set team for hyperv and management traffic.

My issue is when it comes to connecting the host machines to the iscsi targets there is no network path as such from the host machine to the iscsi target network.

One of the guides alludes to needing an extra internal switch but I am not sure how to configure. When i read the esxi setup there is a port group setup to expose the iscsi network to the host machines.

This document https://www.starwindsoftware.com/resour ... shell-cli/ contains this bit of information.

An additional internal switch is required for iSCSI Connection. Contact support for additional details.

What is the trick on hyperv to allow the host machines access to this iscsi network?
Attachments
Screenshot 2024-12-11 155239.png
Screenshot 2024-12-11 155239.png (246.76 KiB) Viewed 29550 times
Screenshot 2024-12-11 151304.png
Screenshot 2024-12-11 151304.png (193.08 KiB) Viewed 29550 times
alexvoigt
Posts: 8
Joined: Mon Jul 11, 2022 8:35 am

Wed Dec 11, 2024 7:58 am

Extra Pics
Attachments
Screenshot 2024-12-11 155436.png
Screenshot 2024-12-11 155436.png (148.78 KiB) Viewed 29549 times
Screenshot 2024-12-11 155416.png
Screenshot 2024-12-11 155416.png (174.78 KiB) Viewed 29549 times
Screenshot 2024-12-11 155344.png
Screenshot 2024-12-11 155344.png (147.19 KiB) Viewed 29549 times
yaroslav (staff)
Staff
Posts: 3598
Joined: Mon Nov 18, 2019 11:11 am

Wed Dec 11, 2024 11:37 am

Try pinging the Host iSCSI IP addresses from VMs.
It looks like there is something funny between Linux and Windows.
alexvoigt
Posts: 8
Joined: Mon Jul 11, 2022 8:35 am

Wed Dec 11, 2024 11:43 pm

I can ping the IP address of the management of the VM which is connected via the switched network and have access the web interface

I am trying to connect my host to the iscsi network address and as they are on separate virtual switches and are direct connected without switching. So there is no path to the iscsi network network.

There is section in your documentation that says you need an additional internal virtual switch. Trying to understand what that means.
alexvoigt
Posts: 8
Joined: Mon Jul 11, 2022 8:35 am

Thu Dec 12, 2024 2:05 am

Using this ps command i was able to expose the virtual switch to the host machine. is this the approved method.

Add-VMNetworkAdapter -ManagementOS -Name "P4 ISCSI" -SwitchName "P4 ISCSI"
yaroslav (staff)
Staff
Posts: 3598
Joined: Mon Nov 18, 2019 11:11 am

Thu Dec 12, 2024 9:31 am

We normally use UI.
Can you ping iSCSI IPs on the host from the VM? You need to assign IP addresses on iSCSI Hyper-V switch and ping it from both local and partner VMs
emilyjohnson63
Posts: 1
Joined: Mon Feb 10, 2025 2:16 am

Mon Feb 10, 2025 2:19 am

You've got a solid setup going! It sounds like the missing piece is configuring an internal virtual switch in Hyper-V to bridge the iSCSI network to the host. Have you tried setting up an **Internal Virtual Switch** in the Virtual Switch Manager and assigning it an IP in the iSCSI subnet? That should allow the host to communicate with the targets. Also, double-check the NIC bindings to make sure iSCSI traffic is properly routed.
Let me know if you need more details!
yaroslav (staff)
Staff
Posts: 3598
Joined: Mon Nov 18, 2019 11:11 am

Mon Feb 10, 2025 4:21 am

Thanks for your hint.
amz
Posts: 1
Joined: Wed Jun 04, 2025 7:00 am

Wed Jun 04, 2025 7:03 am

I solved my problem through your tutorial, thanks a lot!
Post Reply