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

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:~#
主站蜘蛛池模板: 南通市| 镇江市| 昂仁县| 休宁县| 东平县| 乌海市| 永新县| 吉安市| 连南| 马公市| 鄂温| 东方市| 菏泽市| 中西区| 丹凤县| 安阳县| 青田县| 贵德县| 永德县| 虹口区| 乐清市| 醴陵市| 镇安县| 大埔区| 土默特右旗| 中西区| 玉田县| 宜兴市| 永城市| 锦屏县| 渭源县| 镇原县| 冕宁县| 江北区| 陇南市| 忻城县| 广宗县| 吴忠市| 新闻| 天祝| 天气|