How to prepare a VM for tests

  1. Create new vm. Setup VM with (4 cores, 8gb memory, 30Gb hdd, and 3x8Gb for zfs test).

  2. Create new user for test:

    sudo useradd -m -d /var/ztest -g staff -s /bin/bash ztest # add password for remote ssh sudo passwd ztest sudo su echo "ztest ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers.d/ztest
  3. Update source.list and update (install ca-certificates, if need):

    //add this to /etc/apt/sources.list
    deb-src http://apt2.dilos.org/dilos du2-unstable main contrib non-free deb https://apt2.dilos.org/dilos dg2-unstable main contrib non-free deb https://apt2.dilos.org/dilos du2-unstable main contrib non-free
  4. Update pkg os-upgrade and os upgrade and reboot on new BE:

  5. Reboot system.

  6. Set network and nat for zones.

  7. Prepare vm for install zone and install zone dhcp.

  8. Now, you must upgrade on debug build. Delete dg2 repo and add dgdbg repo:

9. Install zone for use dhcp. Example config zone for use dhcp: