The ESXi-host is using an iSCSI-target as storage provider. The KVM-host has local storage but is also connected to the iSCSI-network. This is how I went about migrating a couple of virtual machines running different operating systems between the two hypervisors. Mount the iSCSI-target on the KVM-host The KVM-host need to be set up as … Read More →
Tag Archives: Iscsi
iSCSI: Migrating from istgt to ctld
Deciding to upgrade my NAS from FreeBSD 9.2-RELEASE to 10.2-RELEASE, I wanted to try out the new native iSCSI initiator. As my iSCSI-network is physically separated by vlan I don’t bother with chap-authentication. I allow the entire network connect to the presented targets. The only part of the config previously used in istgt that couldn’t … Read More →
Migrating virtualbox storage from local disk to iSCSI
Turn off the virtual machine, preferably by logging in and do a clean shutdown or if not possible VBoxManage controlvm <machine> poweroff Add another disk VBoxManage storageattach <machine> –storagectl “SATA Controller” –port 1 –type hdd –medium iscsi –server 192.168.100.13 –target “iqn.2004-06.net.strahlert.home:L1” Boot the machine by FreeBSD 9.0 Install and start a Rescue Live shell dd … Read More →
Setting up iSCSI
Should operate on a physical separate lan and VLAN 200 has been set aside for this. Server Install net/istgt from ports and set istgt_enable=”YES” in /etc/rc.conf. iSCSI uses an addressing scheme called iqn which is built up by the reverse domainname along with the founding date. In this case the address is iqn.2004-06.net.strahlert.home /usr/local/etc/istgt/auth.conf Set … Read More →
Volume management in ZFS
This is ideal for creating LUN’s over iSCSI or locally. zfs create -s -V 2G raid5/volume1 This will create a 2Gb volume on the zpool raid5 with thin provisioning. newfs /dev/zvol/raid5/volume1 Creates a ufs filesystem with default settings on the volume just created. mount /dev/zvol/raid5/volume1 /mnt/tmp Mounts it as /mnt/tmp mount|grep volume1 Note how it … Read More →
Recent Comments