How to prepare a VM for tests with zones

  1. Use this guide. Create new vm. Setup VM with:

    • CPU - 4

    • Memory - 8GB

    • Hard disk - 100GB

    • Hard disk - 8GB

    • Hard disk - 8GB

    • Hard disk - 8GB

    • Have to use DEBUG build, where we have debug macro

  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:

    //add this to /etc/apt/sources.list
    deb-src http://apt2.dilos.org/dilos du2-unstable main contrib non-free deb http://apt2.dilos.org/dilos dg2-unstable main contrib non-free deb http://apt2.dilos.org/dilos du2-unstable main contrib non-free #deb https://apt2.dilos.org/dilos dgdbg-unstable main contrib non-free
  4. Install ca-certificates

  5. Update pkg os-upgrade and os upgrade and reboot on new BE:

  6. Reboot system.

  7. Create new etherstub for internal network in vm:

     

  8. Install zone for dhcp. dhcp will be use for another zones:

     

  9. Now login in zone and setting dhcp zone:

     

  10. Now, you must upgrade on debug build. Comment # dg2 and recommnet dgdbg-unstable:

  11. Login server. Use login ztest: