Difference between revisions of "Qemu-nbd"

From wikieduonline
Jump to navigation Jump to search
 
(29 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<code>qemu-nbd</code>  
+
{{lowercase}}
 +
<code>[[qemu]]-[[nbd]]</code> [[QEMU]] Disk [[Network Block Device]] server.
 +
* [[Man page]]: https://manpages.debian.org/testing/qemu-utils/qemu-nbd.8.en.html
 +
* https://gist.github.com/shamil/62935d9b456a6f9877b5
 +
* <code>[[qemu-nbd --help]]</code>
  
https://gist.github.com/shamil/62935d9b456a6f9877b5
 
  
[[modprobe]] nbd max_part=8
+
== Examples ==
 +
*<code> [[qemu-nbd]] --connect=[[/dev/nbd0]] [[/var/lib/libvirt/images/]]your_image.qcow2</code>
 +
*<code> qemu-nbd: Failed to open /dev/nbd0: No such file or directory</code>
 +
*<code> qemu-nbd: Disconnect client, due to: Failed to read request: Unexpected end-of-file before all bytes were read</code>
  
 +
Solution:
 +
*<code>[[modprobe nbd]] max_part=8</code>
  
qemu-nbd --connect=/dev/nbd0 /path/to/your_image.qcow2
+
*<code>[[fdisk -l /dev/nbd0]]</code>
qemu-nbd: Failed to open /dev/nbd0: No such file or directory
 
qemu-nbd: Disconnect client, due to: Failed to read request: Unexpected end-of-file before all bytes were read
 
  
fdisk /dev/nbd0 -l
+
*<code>[[fsck -y]] /dev/nbd0pXXXX</code>
  
  fsck -y /dev/nbd0pXXXX
+
  [[qemu-nbd --disconnect]] /dev/nbd0
 
 
qemu-nbd --disconnect /dev/nbd0
 
 
  /dev/nbd0 disconnected
 
  /dev/nbd0 disconnected
 
  
 
== Related terms ==
 
== Related terms ==
Line 22: Line 25:
 
* <code>[[guestfish]]</code>
 
* <code>[[guestfish]]</code>
 
* <code>[[fsck]]</code>
 
* <code>[[fsck]]</code>
 +
* <code>[[modprobe]] [[nbd]] max_part=8</code>
  
 
== See also ==
 
== See also ==
 +
* {{HDD}}
 
* {{QEMU}}
 
* {{QEMU}}
 
+
* {{NBD}}
  
 
[[category:KMV]]
 
[[category:KMV]]
 +
[[Category:QEMU]]

Latest revision as of 17:36, 12 October 2021

qemu-nbd QEMU Disk Network Block Device server.


Examples[edit]

  • qemu-nbd --connect=/dev/nbd0 /var/lib/libvirt/images/your_image.qcow2
  • qemu-nbd: Failed to open /dev/nbd0: No such file or directory
  • qemu-nbd: Disconnect client, due to: Failed to read request: Unexpected end-of-file before all bytes were read

Solution:

qemu-nbd --disconnect /dev/nbd0
/dev/nbd0 disconnected

Related terms[edit]

See also[edit]

Advertising: