查看vm01虚拟机的分区情况 [root@centos67 ~]# virt-filesystems -d vm01 /dev/sda1 /dev/VolGroup/lv_root 挂载vm01虚拟机的/dev/sda1分区到/mnt/1 [root@centos67 ~]# guestmount -a /home/kvm/vm01/vm01.img -m /dev/sda1 --rw /mnt/1 [root@centos67 ~]# cd /mnt/1 [root@centos67 1]# ls config-2.6.32-573.el6.x86_64 grub lost+found System.map-2.6.32-573.el6.x86_64 efi initramfs-2.6.32-573.el6.x86_64.img symvers-2.6.32-573.el6.x86_64.gz vmlinuz-2.6.32-573.el6.x86_64 挂载vm01虚拟机的/dev/VolGroup/lv_root分区到/mnt/2 [root@centos67 ~]# guestmount -a /home/kvm/vm01/vm01.img -m /dev/VolGroup/lv_root --rw /mnt/2 [root@centos67 ~]# cd /mnt/2 [root@centos67 2]# ls bin boot dev etc home lib lib64 lost+found media mnt opt proc root sbin selinux srv sys tmp usr var
本文出自 “小莫” 博客,请务必保留此出处http://xiaofengmo.blog.51cto.com/10116365/1743901
原文地址:http://xiaofengmo.blog.51cto.com/10116365/1743901