• About
  • Manuals
  • Network
Confessions of a FreeBSD hacker Various tips & tricks about computers in general and FreeBSD in particular
Confessions of a FreeBSD hacker

Category Archives: Freebsd

Migrating virtualbox storage from local disk to iSCSI

April 21, 2012 13:11 / Leave a Comment / Magnus Strahlert

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 →

Posted in: FreeBSD / Tagged: freebsd, iscsi, virtualbox

Setting up a mirror through geom on a GPT labeled disk

March 4, 2012 16:57 / Leave a Comment / Magnus Strahlert

Synchronise the disklayout gpart backup ada0 > /tmp/ada0.gpt gpart restore -F /dev/ada1 < /tmp/ada0.gpt Check that everything went as expected. gpart show Add the geom kernel module as loaded on startup echo ‘geom_mirror_load=”YES”‘ >> /boot/loader.conf Add bootcode to the second disk gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 /dev/ada1 Reboot into single-user mode. Then … Read More →

Posted in: FreeBSD / Tagged: freebsd, gpt, mirror, raid

Setting up iSCSI

March 4, 2012 16:23 / Leave a Comment / Magnus Strahlert

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 →

Posted in: FreeBSD / Tagged: freebsd, iscsi, virtualbox, zfs

Restore a FreeBSD installation through ZFS send/recieve

November 11, 2011 16:49 / Leave a Comment / Magnus Strahlert

Boot into RescueCD onto receiving machine. Then create GPT partitioning scheme (If a new machine and assuming ad0 is the disk) gpart create -s gpt ad0 gpart add -t freebsd-boot -s 64K ad0 gpart add -t freebsd-swap -s 2G -l swap0 ad0 gpart add -t freebsd-zfs -l disk0 ad0 gpart bootcode -b /dist/boot/pmbr -p /dist/boot/gptzfsboot … Read More →

Posted in: FreeBSD / Tagged: backup, freebsd, ssh, zfs

Post Navigation

« Previous 1 2 3

Recent Posts

  • Takeaways utilising VFIO in a KVM virtual guest
  • Converting VM from ESXi to KVM with iSCSI storage
  • Deploying oVirt in self-hosted mode
  • Ansible playbook for handling perl on FreeBSD
  • iSCSI: Migrating from istgt to ctld

Tags

ansible backup carp chroot cluster cross-server esxi freebsd ftp ftpchroot gpt grub hast install iscsi kvm linux lun lvm mirror network nfs nfsroot ovirt pxe raid ramdrive raspberrypi snapshot ssd ssh terminalserver usb vfio virtio virtualbox vlan vmware volumes winxp zfs zpool zroot

Archives

  • July 2019
  • March 2018
  • February 2018
  • July 2017
  • February 2016
  • January 2015
  • August 2014
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • September 2012
  • July 2012
  • April 2012
  • March 2012
  • November 2011
  • August 2011

Recent Comments

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    © Copyright 2013-2016 - Magnus Strahlert
    Infinity Theme by DesignCoral / WordPress