Solved

iSCSI initiator on VM?

Posted on 2010-08-28
8
914 Views
Last Modified: 2012-05-10
EE,
I'm having an issue initiating iSCSI on a virtual machine so I can connect to the shared storage.

Usually we do this on physical servers connected to the switch and it works no problem because we are able to ping those private IPs using the servers second NIC. But within the Virtual Machine, we can't ping those IPs therefore, cannot connect to the iSCSI shared storage.

When I add a new NIC in the VM and give it an IP Address of 192.168.x.x (same as iSCSI network) it does not ping.

What do I have to do to virtually connect to the iSCSI network so I can use the iSCSI initiator?

Thanks guys/gals :)
0
Comment
Question by:snyderkv
  • 4
  • 4
8 Comments
 
LVL 28

Expert Comment

by:bgoering
Comment Utility
You have to make sure the 2nd NIC is in a vSwitch that is on the same network as your storage. What are you using? ESX? ESXi? VMware Workstation or Server?
0
 

Author Comment

by:snyderkv
Comment Utility
ESX
I have iSCSI network and the server is on the public server network as you see it on the configuration tab | Networking

I'm going to try and create a port group but don't know if it should be VMKernal or Virtual Machine.

Once I do this for the iSCSI VSwitch, the virtual machine NIC2 should have the new port group drop down for iSCSI?
0
 

Author Comment

by:snyderkv
Comment Utility
Ok I used Virtual Machine for the new Port Group under the iSCSI network.

But my next question is, should I use Virtual Machine or VMKernal instead?

Thanks again :)
0
 
LVL 28

Expert Comment

by:bgoering
Comment Utility
It sounded to me like you are wanting to run the iSCSI initiater within the VM guest. If that is the case it will be a Virtual Machine network - not VMkernal.

Create the virtual machine network on the storage subnet
Add another NIC to the VM and place on the new vm network
configure the iSCSI initiator in the virtual machine same as you would in a physical machine

0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 28

Expert Comment

by:bgoering
Comment Utility
I guess I am assuming you are using software iSCSI initiators in your physical machines... If that isn't the case let me know
0
 

Author Comment

by:snyderkv
Comment Utility
Bqoering:

Your first comment was correct. I'm using the software iSCSI initiator in the VM to connect to the shared storage MD3000i from the R710 where the VMs are located.

I did like you said, Created a port group on the iSCSI vSwitch in VSphere using Virtual Machine network.
I added another NIC to the VM and on the drop down, selected the new port group.
It immediately started to ping the private iSCSI IPs.

If this isn't the best method let me know. Otherwise I'm closing the question. Thanks for your help and time.
:)
0
 

Author Comment

by:snyderkv
Comment Utility
Oh and just to point out incase anyone else read this. If your clustered, you need to create the same port group with the same name and everything on the second ESX host. That way when a VM with shared storage failsover dur to power outage or whatever, your storage fails over too.

But I haven't tested that theory yet so don't take my word for it. :)
0
 
LVL 28

Accepted Solution

by:
bgoering earned 500 total points
Comment Utility
In your situation it sounds like it may be the best solution. Best practice would be, if you have a free NIC on the ESX hosts, plug that free NIC into the storage network and create your virtual machine port group on the seperate NIC.

Whenever possible seperate virtual machine traffic (which your software iSCSI  network traffic would be considered virtual machine traffic) from your VMkenel traffic. It will However work just fine if the vm port group is created on the same vSwitch as a VMkernel port. It is after all how ESX(i) looks immediately after installation -- there is a vSwitch0 bound to a vmnic that has a Virtual Machien Port Group called "VM Network" and a VMkernel Port for the Management Network service console.

Whenever the host is installed into a cluster you will need to create identically named Virtual Machine Port Groups on all of the ESX hosts before vMotion will work properly.

Glad you got it going
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Teach the user how to delpoy the vCenter Server Appliance and how to configure its network settings Deploy OVF: Open VM console and configure networking:
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now