virt-win-reg -c qemu:///system --unsafe-printable-strings \
Win7x32 'HKLM\SYSTEM\ControlSet001\Services\Tcpip\Parameters' \
@@ -212,15 +244,125 @@ F15x32:/dev/vg_f15x32/lv_root 5.5G 3.4G 1.8G 63%
Inspection
+
+$ virt-filesystems -c qemu:///system -d Win7x32 --all --long -h --uuid
+Name Type VFS Label MBR Size Parent UUID
+/dev/sda1 filesystem ntfs System Reserved - 100M - F81C92571C92112C
+/dev/sda2 filesystem ntfs - - 20G - F2E8996AE8992E3B
+/dev/sda1 partition - - 07 100M /dev/sda -
+/dev/sda2 partition - - 07 20G /dev/sda -
+/dev/sda device - - - 20G - -
+
+
+manual ...
+
+
+
+$ virt-inspector -c qemu:///system -d Win7x32
+<?xml version="1.0"?>
+<operatingsystems>
+ <operatingsystem>
+ <root>/dev/sda2</root>
+ <name>windows</name>
+ <arch>i386</arch>
+ <distro>windows</distro>
+ <product_name>Windows 7 Enterprise</product_name>
+ <product_variant>Client</product_variant>
+ <major_version>6</major_version>
+ <minor_version>1</minor_version>
+ <windows_systemroot>/Windows</windows_systemroot>
+ <windows_current_control_set>ControlSet001</windows_current_control_set>
+ <hostname>win7x32</hostname>
+... etc ...
+
+
+full XML ...
+manual ...
+
+
+
+ char **roots;
+ size_t i;
+ char *type, *distro, *product_name;
+ int major, minor;
+
+ roots = guestfs_inspect_os (g);
+
+ if (roots == NULL)
+ exit (EXIT_FAILURE);
+
+ if (roots[0] == NULL) {
+ fprintf (stderr, "no operating systems found\n");
+ exit (EXIT_FAILURE);
+ }
+
+ for (i = 0; roots[i] != NULL; ++i) {
+ type = guestfs_inspect_get_type (g, roots[i]);
+ distro = guestfs_inspect_get_distro (g, roots[i]);
+ product_name = guestfs_inspect_get_product_name (g, roots[i]);
+ major = guestfs_inspect_get_major_version (g, roots[i]);
+ minor = guestfs_inspect_get_minor_version (g, roots[i]);
+
+ printf ("Root: %s\n"
+ " Type: %s\n"
+ " Distro: %s\n"
+ " Version: %d.%d\n"
+ " Product name: %s\n\n");
+ roots[i],
+ type ? : "unknown", distro ? : "unknown", major, minor,
+ product_name ? : "");
+
+ free (type);
+ free (distro);
+ free (product_name);
+ free (roots[i]);
+ }
+
+ free (roots);
+
+full source ...
+
+
+
+ Click to enlarge the images
+ |
+
+
+ |
+
+ |
+
+
+
+
+
+ Graphical browsers
+
+
+
+
+
+
+
+
+
+
- V2V & P2V
+
+
+
+ source ...
+
+
+
+ source ...
- Read more ...
+ Find out more ...
libguestfs.org is the
@@ -240,6 +382,11 @@ F15x32:/dev/vg_f15x32/lv_root 5.5G 3.4G 1.8G 63%
local man command.
+
+ For information about virt-v2v and virt-p2v, see
+ http://libguestfs.org/virt-v2v/
+
+
|