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

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:~#
主站蜘蛛池模板: 库尔勒市| 庆元县| 积石山| 哈尔滨市| 巍山| 南华县| 定陶县| 唐河县| 宁海县| 黄龙县| 青州市| 玉树县| 桂阳县| 荆门市| 碌曲县| 中牟县| 邛崃市| 香格里拉县| 乌拉特后旗| 西畴县| 深泽县| 孟津县| 淮南市| 华容县| 基隆市| 元氏县| 巨鹿县| 宜君县| 赤壁市| 华宁县| 桂阳县| 长泰县| 张家口市| 金塔县| 和田市| 西畴县| 射洪县| 若尔盖县| 广安市| 长乐市| 安国市|