A message is output stating that the NBD socket setting failed when mounting the image.
[root@XXXX ~]# sudo qemu-nbd -c /dev/sda2 CentOS-7-XXXXXXX.qcow2 qemu-nbd: Failed to set NBD socket qemu-nbd: Disconnect client, due to: Failed to read request: Unexpected end-of-file before all bytes were read [root@XXXX ~]#
Kernel module needs to be loaded before mounting the image.
Load the module with the following command
[root@XXXX ~]# modprobe nbd max_part=16
Recommended Posts