On Thu, Aug 02, 2012 at 02:12:38PM +0300, Evaggelos Balaskas
wrote:> On a windows 2003 VM, i have two LVM partitions attached
>
> I was wonder how can i use virt-ls on d: disk
>
> eg.
>
> # virt-ls -d win2003 /
>
> works fine for c:
>
> but i cant figured it out how i use this for d:
virt-ls doesn't support this. It ought to, because similar utilities
like virt-cat do support Windows drive mappings, as does the
underlying API.
Unless you want to fix virt-ls sources, your best bet is probably to
use the attached script.
$ LIBVIRT_DEFAULT_URI=qemu:///system /tmp/listdrive.pl Win7x32TwoDisks E
Program Files
Program Files/Mozilla Firefox
Program Files/Mozilla Firefox/plc4.dll
Program Files/Mozilla Firefox/AccessibleMarshal.dll
Program Files/Mozilla Firefox/application.ini
Program Files/Mozilla Firefox/blocklist.xml
[etc]
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://libguestfs.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: listdrive.pl
Type: application/x-perl
Size: 1276 bytes
Desc: not available
URL:
<http://listman.redhat.com/archives/libguestfs/attachments/20120802/327cd688/attachment.pl>