The nova.virt.disk.vfs.guestfs Module

class VFSGuestFS(imgfile, imgfmt='raw', 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)
has_file(path)
make_path(path)
read_file(path)
replace_file(path, content)
set_ownership(path, user, group)
set_permissions(path, mode)
setup()
setup_os()
setup_os_inspect()
setup_os_root(root)
setup_os_static()
teardown()

Previous topic

The nova.virt.disk.vfs.api Module

Next topic

The nova.virt.disk.vfs.localfs Module

This Page