VmWare/Setup iSCSI

From r00tedvw.com wiki
(Difference between revisions)
Jump to: navigation, search
Line 5: Line 5:
  
 
=ESXi setup=
 
=ESXi setup=
 +
==vSwitches==
 
Have (2) vSwitches <br>
 
Have (2) vSwitches <br>
 
(1) vSwitch should be connected to a physical adapter with a real IP address that is resolvable on your network. (ie. management vmknic) <br>
 
(1) vSwitch should be connected to a physical adapter with a real IP address that is resolvable on your network. (ie. management vmknic) <br>
 
(1) vSwitch should be not be connected to any physical adapters (intranet). <br>
 
(1) vSwitch should be not be connected to any physical adapters (intranet). <br>
 +
==VMkernel NIC==
 
Create a new VMkernel NIC and select the intranet vSwitch as its Port group. Define a static IP address such as: <br>
 
Create a new VMkernel NIC and select the intranet vSwitch as its Port group. Define a static IP address such as: <br>
 
  <nowiki>IP Address: 192.168.0.5
 
  <nowiki>IP Address: 192.168.0.5
Line 13: Line 15:
  
 
=TrueNAS setup=
 
=TrueNAS setup=
 +
==Configure NICs==
 
Have (2) physical NICs (vmknics) associated with the VM. <br>
 
Have (2) physical NICs (vmknics) associated with the VM. <br>
 
(1) vmknic should be connected to to the vSwitch providing it with a resolvable ip address. <br>
 
(1) vmknic should be connected to to the vSwitch providing it with a resolvable ip address. <br>
Line 20: Line 23:
 
  <nowiki>IP Address: 192.168.0.15/24</nowiki>
 
  <nowiki>IP Address: 192.168.0.15/24</nowiki>
 
'''Note:''' Make sure to also configure the first vmknic to DHCP, TrueNAS doesnt retain the existing configuration automatically.
 
'''Note:''' Make sure to also configure the first vmknic to DHCP, TrueNAS doesnt retain the existing configuration automatically.
 +
==Add Zvol to existing pool==
 +
on the (3) dots for the pool, from the drop down select `Add Zvol`.<br>
 +
give it a name such as: truenas02.pool02<br>
 +
Specify a size for the pool, do not assign more than 75% of the pool size. (ie. 7.5GB for a 10GB pool)<br>
 +
Use defaults for:
 +
<nowiki>Sync: Inherit (standard)
 +
Compression level: Inherit (lz4)
 +
ZFS Deduplication: Inherit (off)</nowiki>

Revision as of 00:32, 3 September 2023

Contents

Pre-requisites

Setup done using:

  • ESXi host 6.7.0 (13006603)
  • TrueNas-12.0-U8.1

ESXi setup

vSwitches

Have (2) vSwitches
(1) vSwitch should be connected to a physical adapter with a real IP address that is resolvable on your network. (ie. management vmknic)
(1) vSwitch should be not be connected to any physical adapters (intranet).

VMkernel NIC

Create a new VMkernel NIC and select the intranet vSwitch as its Port group. Define a static IP address such as:

IP Address: 192.168.0.5
Subnet: 255.255.255.0

TrueNAS setup

Configure NICs

Have (2) physical NICs (vmknics) associated with the VM.
(1) vmknic should be connected to to the vSwitch providing it with a resolvable ip address.
(1) vmknic should be connected to the intranet vSwitch

For the second vmknic (intranet), give it a static internal address such as:

IP Address: 192.168.0.15/24

Note: Make sure to also configure the first vmknic to DHCP, TrueNAS doesnt retain the existing configuration automatically.

Add Zvol to existing pool

on the (3) dots for the pool, from the drop down select `Add Zvol`.
give it a name such as: truenas02.pool02
Specify a size for the pool, do not assign more than 75% of the pool size. (ie. 7.5GB for a 10GB pool)
Use defaults for:

Sync: Inherit (standard)
Compression level: Inherit (lz4)
ZFS Deduplication: Inherit (off)
Personal tools
Namespaces

Variants
Actions
Navigation
Mediawiki
Confluence
DevOps Tools
Ubuntu
Ubuntu 22
Mac OSX
Oracle Linux
AWS
Windows
OpenVPN
Grafana
InfluxDB2
TrueNas
OwnCloud
Pivotal
osTicket
OTRS
phpBB
WordPress
VmWare ESXI 5.1
Crypto currencies
HTML
CSS
Python
Java Script
PHP
Raspberry Pi
Canvas LMS
Kaltura Media Server
Plex Media Server
MetaSploit
Zoneminder
ShinobiCE
Photoshop CS2
Fortinet
Uploaded
Certifications
General Info
Games
Meal Plans
NC Statutes
2020 Election
Volkswagen
Covid
NCDMV
Toolbox