官术网_书友最值得收藏!

Getting ready

We are going to need the following in order to complete this recipe:

  • The block devices created in the previous recipe
  • The debootstrap utility
  • The chroot utility

To ensure that the swap and root block devices are still present on the system, run the following:

root@kvm:~# ls -la /dev/nbd0*
brw-rw---- 1 root disk 43, 0 Feb 10 18:24 /dev/nbd0
brw-rw---- 1 root disk 43, 1 Feb 10 18:24 /dev/nbd0p1
brw-rw---- 1 root disk 43, 2 Feb 10 18:24 /dev/nbd0p2
root@kvm:~#

If that's not the case, please refer to the Preparing images for OS installation with qemu-nbd recipe on how to associate the raw image with the /deb/nbd0 block device.

To install the debootstrap utility, if not already present on your system, execute the following code:

root@kvm:~# apt install -y debootstrap
...
Setting up debootstrap (1.0.78+nmu1ubuntu1.2) ...
root@kvm:~#
主站蜘蛛池模板: 舟山市| 离岛区| 进贤县| 桐梓县| 望江县| 吐鲁番市| 株洲市| 金川县| 金湖县| 蓝山县| 五家渠市| 舟山市| 漠河县| 都昌县| 田阳县| 岳池县| 两当县| 五原县| 新巴尔虎右旗| 新和县| 卓资县| 永济市| 大渡口区| 开江县| 武平县| 新巴尔虎右旗| 桐柏县| 鹿邑县| 余姚市| 本溪市| 克拉玛依市| 栾城县| 镇巴县| 新邵县| 集贤县| 道孚县| 金寨县| 保山市| 邵阳市| 西藏| 兴安县|