1. Download Ubuntu-16.04.1-server-amd64.iso
2. Create a virtual machine in VBox, set the network configuration for network address translation NAT, and create a port forwarding rule (for SSH):
Name: Default
Protocol: TCP
Host IP: null
Host Port: 2206
subsystem IP: null
Subsystem Port: 22
3, the normal installation system, the intermediate selection of modules check sshd
4, after the installation into the shell, modify the root password, lazy every time to execute commands are sudo
sudo passwd root
5, modify the/etc/ssh/sshd_config
Permitrootlogin Prohibit-password
Switch
Permitrootlogin Yes
6. Restart sshd
sudo service sshd restart
7. Using client, root, login
Ssh-p 2206 [email protected]
8. Install and load the NBD module
Apt-get Install Nbd-serverdepmodmodprobe NBD
9. Verify that the NBD is loaded
Lsmod |grep NBD
10, installation Qemu-utils
Apt-get Install Qemu-utils
11. Add the following line to the/etc/modules
Nbd
Reboot.
Compile ZFS:
Download the source code, unzip the Apt-get install GCC makespl-0.6.5.8 directory,./configure;make;make installapt-get Install Zlib1g-dev Uuid-dev libnvpair1linuxzfs-0.6.5.8 directory,./configure;make;make installdepmod-a;modprobe zfsmkdir/etc/zfs;touch/etc/zfs/ Zpool.cache Add a line #为了zdb命令执行创建的缓冲在/etc/modules: ZFS
This article is from the "Zhang Yu (Data Recovery)" blog, please be sure to keep this source http://zhangyu.blog.51cto.com/197148/1863234
Operation Record: in ubuntu16.04.1 configuration QEMU-IMG,QEMU-NBD