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: http://libguestfs.org/guestfs.3.html#network-block-device and it could do iscsi too with very minimal effort. Are we really interested in iscsi? If so I'll add it. Rich. -- 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. http://fedoraproject.org/wiki/MinGW