-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
无nbd driver情况下有没有挂载qcow2的方法? #2
Comments
额,我最新的才用到CentOS 6.5。估计需要在CentOS上找一下qemu-nbd驱动吧。没有试过CentOS上的情况。研究一下。如果你有什么新的进展,麻烦也给我说一下哦。Ubuntu到是很方便的样子。 |
看了一下,大概找到方法如下:首先你需要安装如下包: 我的是CentOS 6.5:安装了 安装好之后,
比如下面有这个分区: /dev/vg_centosbase/lv_root 可以查看img里面的分区情况: For example, to mount the root partition from our centos63_desktop.qcow2 image to /mnt, we can do: guestmount -a centos63_desktop.qcow2 -m /dev/vg_centosbase/lv_root --rw /mnt |
感谢您的回复,libguestfs的确是个不错的选择,我也在尝试,不过还没成功,我的虚拟机装的是windows,ntfs文件系统,用libguestfs挂载会报错
看样子是倒数第10行supermin-helper: ext2fs_read_inode: Illegal inode number的报错信息导致supermin-helper出错,不知道您有没有这样的问题? |
您好,看了您的书很受启发,请问无nbd driver情况下有没有挂载qcow2的方法?我用的centos,centos 7 默认是不带nbd的。
The text was updated successfully, but these errors were encountered: