nbd挂载qcow2磁盘镜像
首先,加载nbd内核模块
modprobe nbd max_part=8
将qcow2磁盘镜像连接到nbd设备
qemu-nbd -c /dev/nbdX /path/to/image.qcow2
挂载镜像到目录
mount /dev/nbdXpX /mnt/dir
卸载后断开nbd设备连接
qemu-nbd -d /dev/nbdX
首先,加载nbd内核模块
modprobe nbd max_part=8
将qcow2磁盘镜像连接到nbd设备
qemu-nbd -c /dev/nbdX /path/to/image.qcow2
挂载镜像到目录
mount /dev/nbdXpX /mnt/dir
卸载后断开nbd设备连接
qemu-nbd -d /dev/nbdX