LoginSignup
0
1

More than 1 year has passed since last update.

ブロックデバイスからqcow2を作る

Last updated at Posted at 2021-12-11

qemu-imgではddのサブコマンドが使えます
以下のコマンドで/dev/sdaからoutput.qcow2を作ります

qemu-img dd -f raw -O qcow2 bs=16m if=/dev/sda of=output.qcow2

オプション説明

-f raw #入力フォーマット指定(ブロックデバイスのためRaw)
-O qcow2 #出力フォーマット指定(今回はqcow2)
-bs #一度に読み書きするブロックサイズ指定(ある程度まとまった単位の方が高速に読み書き出来る)

参考

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1