{"version":"1.0","width":"100%","blog_url":"https://takuya-1st.hatenablog.jp/","author_url":"https://blog.hatena.ne.jp/takuya_1st/","title":" qcow2 \u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u76f4\u63a5\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3002(\u30eb\u30fc\u30d7\u30d0\u30c3\u30af\u3067\u63a5\u7d9a\u7d4c\u7531\u3057\u3001losetup\u3067\u4f7f\u3046\u3002)","author_name":"takuya_1st","type":"rich","height":"190","description":"qcow2 \u30c7\u30a3\u30b9\u30af\u30a4\u30e1\u30fc\u30b8\u3092\u30de\u30a6\u30f3\u30c8\u3057\u3088\u3046\u3068\u601d\u3063\u305f\u3089\u3001loop back \u3067\u63a5\u7d9a\u3059\u308c\u3070\u3044\u3044\u3068\u308f\u304b\u3063\u305f\u3002 raw \u3067\u3042\u308c\u3070\u3001losetup -P -f /path/to/raw.img\u3067losetup\u3067\u624b\u8efd\u306b\u6271\u3048\u308b\u304c\u3001qcow2\u306e\u5834\u5408\u306f\u3001nbd\u3092\u7d4c\u7531\u3059\u308b\u3002 qcow2 \u306e\u30c7\u30a3\u30b9\u30af\u3092\u63a5\u7d9a\u3059\u308b \u30b3\u30cd\u30af\u30c8\u3092\u4f7f\u3046\u3002 sudo modprobe nbd max_part=8 sudo qemu-nbd --connect=/dev/nbd0 /var/lib/libvirt/images/d02.qcow2 sudo fdisk /dev/nbd0 -l sudo qemu-nbd -d /dev/nb\u2026","image_url":null,"published":"2022-04-18 13:54:43","blog_title":"\u305d\u308c\u30de\u30b0\u3067\uff01","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F2022%2F04%2F18%2F135443\" title=\" qcow2 \u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u76f4\u63a5\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3002(\u30eb\u30fc\u30d7\u30d0\u30c3\u30af\u3067\u63a5\u7d9a\u7d4c\u7531\u3057\u3001losetup\u3067\u4f7f\u3046\u3002) - \u305d\u308c\u30de\u30b0\u3067\uff01\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://takuya-1st.hatenablog.jp/entry/2022/04/18/135443","categories":["linux","kvm","qemu","qcow2"],"provider_name":"Hatena Blog","provider_url":"https://hatena.blog"}