Difference between revisions of "Qemu-nbd"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 7: Line 7:
  
 
== Examples ==
 
== 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]] [[/var/lib/libvirt/images/]]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
 
Solution:
 
[[modprobe nbd]] max_part=8
 
  
 
+
*<code>[[fsck -y]] /dev/nbd0pXXXX</code>
 
 
[[fdisk -l /dev/nbd0]]
 
 
 
[[fsck -y]] /dev/nbd0pXXXX
 
  
 
  qemu-nbd --disconnect /dev/nbd0
 
  qemu-nbd --disconnect /dev/nbd0
 
  /dev/nbd0 disconnected
 
  /dev/nbd0 disconnected
 
  
 
== Related terms ==
 
== Related terms ==

Revision as of 10:21, 27 September 2021

qemu-nbd

Examples

  • 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

See also

Advertising: