§2023-10-20
試作機器: orangePi 6G,
- using
qemu-img
to create a disk image
qcow2 (QEMU Copy-On-Write 2) is a disk image file format used with QEMU. It is a popular and efficient file format for managing virtual machine disk images.
$ mkdir qemu-proj && cd $_
qemu-img create -f qcow2 debian-12.2.0-amd64.qcow2 16G
Formatting 'debian-12.2.0-amd64.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=17179869184 lazy_refcounts=off refcount_bits=16
$ wget https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.2.0-amd64-netinst.iso
$ wget https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/debian-12.2.0-amd64-DVD-1.iso
Installing the operating system
$ qemu-system-x86_64 \
-m 512 \
-boot order=d \
-cdrom debian-12.2.0-amd64-netinst.iso \ --> failed to configure the network
debian-12.2.0-amd64.qcow2
-enable-kvm \ <--- ??? take it
-m 512 --> 512M -m 2G allocate 2G
$ qemu-system-x86_64 -m 2G \
-boot order=d \
-cdrom debian-12.2.0-amd64-DVD-1.iso debian-12.2.0-amd64.qcow2