查看vm01虚拟机的分区情况 [[email protected] ~]# virt-filesystems -d vm01 /dev/sda1 /dev/VolGroup/lv_root 挂载vm01虚拟机的/dev/sda1分区到/mnt/1 [[email protected] ~]# guestmount -a /home/kvm/vm01/vm01.img -m /dev/sda1 --rw /mnt/1 [[email protected] ~]# cd /mnt/1 [[email protected] 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 [[email protected] ~]# guestmount -a /home/kvm/vm01/vm01.img -m /dev/VolGroup/lv_root --rw /mnt/2 [[email protected] ~]# cd /mnt/2 [[email protected] 2]# ls bin boot dev etc home lib lib64 lost+found media mnt opt proc root sbin selinux srv sys tmp usr var
时间: 2024-11-04 18:00:47