Operation Record: in ubuntu16.04.1 configuration QEMU-IMG,QEMU-NBD

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.