- KVM Virtualization Cookbook
- Konstantin Ivanov
- 143字
- 2021-07-02 22:07:05
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:~#
推薦閱讀
- Practical Data Analysis Cookbook
- 玩轉Scratch少兒趣味編程
- JavaScript 網頁編程從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)
- Windows Presentation Foundation Development Cookbook
- ADI DSP應用技術集錦
- SQL基礎教程(第2版)
- Haskell Data Analysis Cookbook
- Mastering Unity 2D Game Development(Second Edition)
- 基于SpringBoot實現:Java分布式中間件開發入門與實戰
- Julia 1.0 Programming Complete Reference Guide
- Practical GIS
- UI設計基礎培訓教程(全彩版)
- Greenplum構建實時數據倉庫實踐
- Spark技術內幕:深入解析Spark內核架構設計與實現原理
- Windows 10 for Enterprise Administrators