Skip to main content
The 2024 Developer Survey results are live! See the results

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • This looks like a neat approach. I will try to test it later. Thanks.
    – Kusalananda
    Commented Jul 5 at 13:17
  • 1
    you're welcome! I wouldn't have thought of it had I not tried to image a laptop SSD using nbdkit earlier today. Commented Jul 5 at 13:18
  • It's a bit fiddly, but it definitely solves the issue.
    – Kusalananda
    Commented Jul 5 at 15:01
  • 1
    One suggestion to add here: While it’s possible to have the guest use the NBD devices itself instead of using them through QEMU, doing so means that the guest networking stack then has an impact on how everything performs. In my experience, that will usually be a bigger impact than having QEMU connect to the device itself and then expose it as a VirtIO block device to the guest, irrespective of what the guest network stack looks like. Commented Jul 6 at 22:55
  • Sorry, unaccepting this for now. I was a bit quick to accept it before. It does not mean it's a bad solution, only that I need to evaluate the other answers a bit more carefully first. Thanks again for mentioning nbdkit!
    – Kusalananda
    Commented Jul 7 at 8:37