- 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:~#
推薦閱讀
- Redis Applied Design Patterns
- 深度學習經典案例解析:基于MATLAB
- PHP+MySQL網站開發技術項目式教程(第2版)
- Python爬蟲開發與項目實戰
- CKA/CKAD應試教程:從Docker到Kubernetes完全攻略
- GeoServer Beginner's Guide(Second Edition)
- Modern JavaScript Applications
- Responsive Web Design by Example
- 寫給程序員的Python教程
- CRYENGINE Game Development Blueprints
- Hands-On JavaScript for Python Developers
- Kotlin極簡教程
- Julia High Performance(Second Edition)
- Android應用開發攻略
- Analytics for the Internet of Things(IoT)