Hello, It’s me again with one more misunderstanding of libguestfs usage…

Guestfish (as well as python libguestfs module) refuse to mount logical volume containing the root partition of the VM’s filesystem.

According to this short guide I am trying to mount /dev/vg_kojit/lv_root as “/”, but nothing works:

 

[root@rhevh1 integrity]#

[root@rhevh1 integrity]#

[root@rhevh1 integrity]#

[root@rhevh1 integrity]# guestfish

 

Welcome to guestfish, the libguestfs filesystem interactive shell for

editing virtual machine filesystems.

 

Type: 'help' for help on commands

      'man' to read the manual

      'quit' to quit the shell

 

><fs> add /dev/dm-40

><fs> run

><fs> inspect_os

><fs> pvs

/dev/vda2

unknown device

><fs> lvs

/dev/vg_kojit/lv_root

/dev/vg_kojit/lv_swap

><fs> mount /dev/vg_kojit/lv_root /

libguestfs: error: mount: mount_stub: /dev/vg_kojit/lv_root: No such file or directory

><fs>

><fs>

 

The actual information about VM’s block devices can be seen on the screenshot attached to this message. I would be grateful for your help

Sincerely,

 

Vitaly Isaev

Software engineer

Information security department

Fintech JSC, Moscow, Russia