+ Post New Thread
Results 1 to 8 of 8
Thin Client and Virtual Machines Thread, connect VM to iSCSI disk in Technical; Hi peoples, I'm trying somehow to connect an iSCSI disk to a VM runninng on an ESX server. But I ...
  1. #1
    DrPerceptron's Avatar
    Join Date
    Dec 2008
    Location
    In a house
    Posts
    911
    Thank Post
    34
    Thanked 131 Times in 111 Posts
    Rep Power
    40

    connect VM to iSCSI disk

    Hi peoples,

    I'm trying somehow to connect an iSCSI disk to a VM runninng on an ESX server.

    But I can't work it out

    I can add additional virtual adapters, but these only give me a named option of "Public"... Is it possible to get my VM an adapter to sit on the iSCSI network (it pulls its VHD via iSCSI) somehow?

  2. #2

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Quote Originally Posted by DrPerceptron View Post
    Hi peoples,

    I'm trying somehow to connect an iSCSI disk to a VM runninng on an ESX server.

    But I can't work it out

    I can add additional virtual adapters, but these only give me a named option of "Public"... Is it possible to get my VM an adapter to sit on the iSCSI network (it pulls its VHD via iSCSI) somehow?
    I think you still need to use the hosts HDD - but after you have OS installed i.e. Server 2003 you can install the Microsoft iSCSI initiator software which should then allow you to connect to the iSCSI.

    Going from memory here (from months ago) so may be wrong.

  3. #3
    DrPerceptron's Avatar
    Join Date
    Dec 2008
    Location
    In a house
    Posts
    911
    Thank Post
    34
    Thanked 131 Times in 111 Posts
    Rep Power
    40
    Without another adapter, wouldn't my iSCSI traffic go over our public VLAN?

  4. #4

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,272
    Thank Post
    613
    Thanked 1,567 Times in 1,407 Posts
    Rep Power
    412
    with esxi you can add an iscsi target as a datastore and then use that to install your vm's vhd to.

    Ben

  5. #5

    Theblacksheep's Avatar
    Join Date
    Feb 2008
    Location
    In a house.
    Posts
    1,917
    Thank Post
    130
    Thanked 287 Times in 208 Posts
    Rep Power
    193
    Quote Originally Posted by DrPerceptron View Post
    I can add additional virtual adapters, but these only give me a named option of "Public"... Is it possible to get my VM an adapter to sit on the iSCSI network (it pulls its VHD via iSCSI) somehow?
    You need to add the VMkernal network card (config/networking/add networking and select vmkernal).

    Create a vswitch for it to run on. Give it its own vlan (not on the public vlan!)

    You can boot from the VM and dont need the hosts disks, except to install ESXi/Vi3... but you can also run this off inbedded flash.
    Last edited by Theblacksheep; 20th January 2009 at 11:09 AM.

  6. #6
    DrPerceptron's Avatar
    Join Date
    Dec 2008
    Location
    In a house
    Posts
    911
    Thank Post
    34
    Thanked 131 Times in 111 Posts
    Rep Power
    40
    Given up with iSCSI....

    On to NFS! (from what I've read it works a lot better).

    Having trouble with that now =D


    I've set up a folder, shared it with NFS, created an NFS group which contains the ESX servers and given them RW and Root-Access.

    When I add to vmware infrastructure as a Data Store, it says unable to connect to NFS server (used consoles, port mapper service is started and nfs status's are up)

    I can't add it to a linux box either, but I don't think the nfs stuff is on those and apt-get is being stupid, so I couldn't be bothered with that.

  7. #7
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,421
    Thank Post
    10
    Thanked 486 Times in 426 Posts
    Rep Power
    110
    Quote Originally Posted by DrPerceptron View Post
    Given up with iSCSI....

    On to NFS! (from what I've read it works a lot better).

    Having trouble with that now =D


    I've set up a folder, shared it with NFS, created an NFS group which contains the ESX servers and given them RW and Root-Access.

    When I add to vmware infrastructure as a Data Store, it says unable to connect to NFS server (used consoles, port mapper service is started and nfs status's are up)

    I can't add it to a linux box either, but I don't think the nfs stuff is on those and apt-get is being stupid, so I couldn't be bothered with that.
    It's the VMKernel that needs access to the iscsi/nfs shares not the console. If you have authentication when using vmware software iscsi initiator then the vmconsole also needs access to the iscsi target.

    You have two options: Connect an existing VM to iscsi within the virtual machine itself (as mentioned above) or connect ESX to the iscsi target so that the VM has no idea about it's existance.

    For ESX: Can your ESX console and VMKernel see the iscsi box? (ping and vmkping to find out).
    For within VM: Can your virtual machine see the iscsi box using the latest iscsi initiator from MS (if Windows)?


    NFS will need to be v4 as ESX will only do nfs over tcp and not udp. Again you will be unable to connect to nfs from ESX unless vmkping indicates the vmkernel can see it.

  8. #8
    DrPerceptron's Avatar
    Join Date
    Dec 2008
    Location
    In a house
    Posts
    911
    Thank Post
    34
    Thanked 131 Times in 111 Posts
    Rep Power
    40
    hmm, why didn't any link or anything I looked at ever mention the VMK.

    going well now so far...

    1600 and now it's not :/


    I "punched" a whole in the firewall for the NFS client.
    I started portmap, nfslock and nfs (in that order) and they all run.
    I copied the group and passwd files from /etc to the NFS box and told NFS usermaps to use those, mapped nfsuser to root (same password) and administrator to root (diff passwords)

    VMIC states cannot open mount /vmfs/volumes/...

    If I do mount on the console of the esx, it connects to it, showmount - e <ip> lists the share as /datast (everyone)
    If I try and CD into it, I get Permission Denied
    Last edited by DrPerceptron; 21st January 2009 at 04:09 PM. Reason: updated

SHARE:
+ Post New Thread

Similar Threads

  1. Should I use iSCSI for home folders?
    By johnnyTechy in forum Hardware
    Replies: 4
    Last Post: 12th January 2009, 05:05 PM
  2. iSCSI Overheads. Are there any?
    By ranj in forum Windows
    Replies: 19
    Last Post: 1st October 2008, 10:58 AM
  3. iSCSI Disk won't initialise
    By Dos_Box in forum Windows Server 2008
    Replies: 4
    Last Post: 20th August 2008, 03:24 PM
  4. RM Disk to Disk to Tape Backup Solution
    By Chris in forum General Chat
    Replies: 0
    Last Post: 2nd July 2007, 10:14 AM
  5. iSCSI
    By robknowles in forum Hardware
    Replies: 9
    Last Post: 16th April 2007, 02:45 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •