The nova.virt.disk.vfs.guestfs Module

class VFSGuestFS(image, partition=None)

Bases: nova.virt.disk.vfs.api.VFS

This class implements a VFS module that uses the libguestfs APIs to access the disk image. The disk image is never mapped into the host filesystem, thus avoiding any potential for symlink attacks from the guest filesystem.

append_file(path, content)
configure_debug()

Configures guestfs to be verbose.

get_image_fs()
has_file(path)
inspect_capabilities()

Determines whether guestfs is well configured.

make_path(path)
read_file(path)
replace_file(path, content)
set_ownership(path, user, group)
set_permissions(path, mode)
setup(mount=True)
setup_os()
setup_os_inspect()
setup_os_root(root)
setup_os_static()
teardown()
force_tcg(force=True)

Prevent libguestfs trying to use KVM acceleration

It is a good idea to call this if it is known that KVM is not desired, even if technically available.

Previous topic

The nova.virt.disk.vfs.api Module

Next topic

The nova.virt.disk.vfs.localfs Module

Project Source

This Page