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

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:~#
主站蜘蛛池模板: 巴东县| 济南市| 阿瓦提县| 新河县| 文山县| 渑池县| 崇文区| 贵溪市| 武安市| 彭州市| 灵丘县| 高淳县| 江安县| 高台县| 双辽市| 东明县| 安西县| 西吉县| 故城县| 武川县| 重庆市| 弥勒县| 万盛区| 呈贡县| 施秉县| 浏阳市| 新泰市| 石城县| 抚松县| 定襄县| 鹤庆县| 涟源市| 延边| 宝坻区| 莫力| 宝鸡市| 新巴尔虎右旗| 北流市| 元谋县| 新密市| 灯塔市|