/
How to prepare a VM for tests
How to prepare a VM for tests
Create new vm. Setup VM with (4 cores, 8gb memory, 30Gb hdd, and 3x8Gb for zfs test).
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
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
Update pkg os-upgrade and os upgrade and reboot on new BE:
sudo apt install os-upgrade sudo os-upgrade
Reboot system.
Set network and nat for zones.
Prepare vm for install zone and install zone dhcp.
Now, you must upgrade on debug build. Delete dg2 repo and add dgdbg repo:
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:
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
, multiple selections available,
Related content
How to prepare a VM for tests with zones
How to prepare a VM for tests with zones
More like this
Version 2
Version 2
More like this
Dilos Tests
Dilos Tests
Read with this
How to run ZFS tests on VM environment
How to run ZFS tests on VM environment
More like this
Tests on Virtual Machine Environment
Tests on Virtual Machine Environment
Read with this
How to run STABILITY tests on VM environment
How to run STABILITY tests on VM environment
More like this