[Libguestfs] [PATCH 4/4] stub server side mount command

Richard W.M. Jones rjones at redhat.com
Fri May 10 12:37:41 UTC 2013

On Fri, May 10, 2013 at 08:19:48AM -0400, Mo Morsi wrote:
> +sub mount_disk
> +{
> +    my ($uri,$disk_type) = @_;
> +
> +    # TODO create local devices mapped to remote uri
> +    #      if nbd use nbd-client, if iscsi use iscsiadm
> +    #      store local device paths in $meta->{mounts}
> +    p2v_return_ok();
> +}

Yikes ...  There is no nbd device support in RHEL, and mounting drives
directly on the host is very insecure.  Only a few days ago another
exploitable bug in ext3 was found and fixed.

Anyhow, libguestfs can do nbd directly:


and it could do iscsi too with very minimal effort.  Are we really
interested in iscsi?  If so I'll add it.


Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.

More information about the Libguestfs mailing list