Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Create new vm. Setup VM with (4 cores, 8gb memory, 30Gb hdd, and 3x8Gb for zfs test).

  2. Create new user for test:

    Code Block
    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):

    Code Block
    //add this to /etc/apt/sources.list
    Code Block
    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:

    Code Block
    sudo apt install os-upgrade
    sudo os-upgrade
    
  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:

    Code Block
    sudo su
    cat>/etc/apt/sources.list <<EOT
    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
    deb https://apt2.dilos.org/dilos dgdbg-unstable main contrib non-free
    EOT
    exit
    sudo apt update 
    sudo os-upgrade
    sudo reboot

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

Code Block
create
set zonepath=/zones/zone
set autoboot=false
set ip-type=exclusive
add net
set physical=int1
set global-nic="vsw0"
add property (name="ip",value="dhcp")
add property (name="primary",value="true")
end
commit
exit