To view the partitioning of a vm01 virtual machine [[email protected] ~]# virt-filesystems -d vm01 /dev/sda1/dev/ Volgroup/lv_root mount the/DEV/SDA1 partition of the VM01 virtual machine to/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]# lsconfig-2.6.32-573.el6.x86_64 grub lost+found System.map-2.6.32-573.el6.x86_64efi 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 mounting The/dev/volgroup/of a vm01 virtual machine Lv_root Partition to/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]# lsbin boot dev etc home Lib lib64 lost+found media mnt opt proc root sbin selinux srv sys tmp Usr var
This article is from the "Xiao Mo" blog, please be sure to keep this source http://xiaofengmo.blog.51cto.com/10116365/1743901
KVM View partition content for virtual machines (4)