Need Help
by Rakesh Agrawal
Hi All,
Can we use libguestfs to somehow uninstall softwares from VMware images?
The VMware image is of windows 2012 server.
Thanks
Rakesh
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
9 years, 7 months
[PATCH v3 0/3] RFE: support Windows drive letter in virt-ls
by Maros Zatko
Fixes RHBZ#845234.
v3 changes: Drive letters works if inspection is enabled (-m is not given)
v2 changes: Ammended so it doesn't do inspection for every dir to list.
Maros Zatko (3):
virt-ls: support drive letters on Windows
virt-ls: update usage for win drive letters
docs: amend virt-ls manpage with win drive letters
cat/ls.c | 41 +++++++++++++++++++++++++++++++++++++----
cat/virt-ls.pod | 7 ++++++-
2 files changed, 43 insertions(+), 5 deletions(-)
--
1.9.3
9 years, 7 months
[nbdkit python]: unable to locate modules
by Bill Speirs
I'm working on a python plugin for nbdkit that treats Google Cloud
Storage as a block device. I have a library, gcs.py, that implements
simple commands: list, get, put, delete; source is here:
https://github.com/wspeirs/cldblkdev/blob/master/gcs.py
When I attempt to run nbdkit I get the following error:
nbdkit python script=/home/wspeirs/src/cldblkdev/cldblkdev.py
Traceback (most recent call last):
File "/home/wspeirs/src/cldblkdev/cldblkdev.py", line 5, in <module>
import gcs
File "/home/wspeirs/src/cldblkdev/gcs.py", line 2, in <module>
import httplib2
File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py",
line 930, in <module>
class HTTPSConnectionWithTimeout(httplib.HTTPSConnection):
AttributeError: 'module' object has no attribute 'HTTPSConnection'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line
63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python2.7/dist-packages/apport/__init__.py", line 5, in <module>
from apport.report import Report
File "/usr/lib/python2.7/dist-packages/apport/report.py", line 16, in <module>
from xml.parsers.expat import ExpatError
File "/usr/lib/python2.7/xml/parsers/expat.py", line 4, in <module>
from pyexpat import *
ImportError: /usr/lib/python2.7/lib-dynload/pyexpat.x86_64-linux-gnu.so:
undefined symbol: _Py_ZeroStruct
Original exception was:
Traceback (most recent call last):
File "/home/wspeirs/src/cldblkdev/cldblkdev.py", line 5, in <module>
import gcs
File "/home/wspeirs/src/cldblkdev/gcs.py", line 2, in <module>
import httplib2
File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py",
line 930, in <module>
class HTTPSConnectionWithTimeout(httplib.HTTPSConnection):
AttributeError: 'module' object has no attribute 'HTTPSConnection'
nbdkit: error: /home/wspeirs/src/cldblkdev/cldblkdev.py: error running
this script
Everything seems to work outside of nbdkit. I'm assuming this is some
path related issue... any thoughts on how to fix this?
Thanks...
Bill-
9 years, 7 months
[PATCH v4 0/2] inspector: recognize ppc64 and ppc64le archs (RHBZ#1211996)
by Maros Zatko
Patch extracts MSB/LSB info from /bin/file output and passes it as separate
parameret from elf_arch. Then it is sent to impl_file_architecture and checked/
Modified magic_for_file to handle regex changes.
Now with tests for file_architecture.
Fixes: RHBZ#1211996
Maros Zatko (2):
inspector: recognize ppc64 and ppc64le archs (RHBZ#1211996)
tests: ppc64 and ppc64le for file_architecture
generator/actions.ml | 8 ++++++++
src/filearch.c | 24 +++++++++++++++---------
2 files changed, 23 insertions(+), 9 deletions(-)
--
1.9.3
9 years, 7 months
libguestfs error: mkfs_btrfs
by fu lirong
Hi all :
there is a problem on libguestfs-1.29.40 after command :make check
libguestfs: error: mkfs_btrfs: /dev/vda1: device /dev/vda1 is too small
(must be at least 256 MB)
FAIL: test_btrfs_image_0
3/515 test_btrfstune_enable_skinny_metadata_extent_refs_0
libguestfs: error: btrfstune_enable_skinny_metadata_extent_refs: /dev/vda1:
btrfstune: invalid option -- 'x'
usage: btrfstune [options] device
-S value enable/disable seeding
FAIL: test_btrfstune_enable_skinny_metadata_extent_refs_0
4/515 test_btrfstune_enable_extended_inode_refs_0
libguestfs: error: btrfstune_enable_extended_inode_refs: /dev/vda1:
btrfstune: invalid option -- 'r'
usage: btrfstune [options] device
-S value enable/disable seeding
FAIL: test_btrfstune_enable_extended_inode_refs_0
5/515 test_btrfstune_seeding_0
libguestfs: error: btrfstune_seeding: /dev/vda1: btrfstune: invalid option
-- 'f'
I found two patch
https://www.redhat.com/archives/libguestfs/2012-May/msg00018.htmlvirt-mak...
Fix estimation when making btrfs (but there is no virt-make-fs under
tools)
https://www.redhat.com/archives/libguestfs/2012-April/msg00008.html New
API: mkfs-btrfs for creating btrfs filesystems ( It was patched in
libguestfs-1.29.40)
It seems stupid, but I can't find the answer, I am sorry
9 years, 7 months
[PATCH v2] resize: add sector size in debug_partition
by Chen Hanxiao
This patch will add fields of sector size for:
- partition sector data size
- target partition sector data size
Signed-off-by: Chen Hanxiao <chenhanxiao(a)cn.fujitsu.com>
---
v2: realign the position of '+^ 1'
resize/resize.ml | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/resize/resize.ml b/resize/resize.ml
index 4e58e84..602a583 100644
--- a/resize/resize.ml
+++ b/resize/resize.ml
@@ -81,10 +81,11 @@ let rec debug_partition ?(sectsize=512L) p =
printf "\tpartition data: %ld %Ld-%Ld (%Ld bytes)\n"
p.p_part.G.part_num p.p_part.G.part_start p.p_part.G.part_end
p.p_part.G.part_size;
- printf "\tpartition sector data: %Ld-%Ld\n"
- (p.p_part.G.part_start /^ sectsize) (p.p_part.G.part_end /^ sectsize);
- printf "\ttarget partition sector data: %Ld-%Ld \n"
- p.p_target_start p.p_target_end;
+ printf "\tpartition sector data: %Ld-%Ld (%Ld sectors)\n"
+ (p.p_part.G.part_start /^ sectsize) (p.p_part.G.part_end /^ sectsize)
+ ((p.p_part.G.part_end +^ 1L -^ p.p_part.G.part_start) /^ sectsize);
+ printf "\ttarget partition sector data: %Ld-%Ld (%Ld sectors)\n"
+ p.p_target_start p.p_target_end (p.p_target_end +^ 1L -^ p.p_target_start);
printf "\tbootable: %b\n" p.p_bootable;
printf "\tpartition ID: %s\n"
(match p.p_id with
--
2.1.0
9 years, 7 months
[PATCH] resize: add sector size in debug_partition
by Chen Hanxiao
This patch will add fields of sector size for:
- partition sector data size
- target partition sector data size
Signed-off-by: Chen Hanxiao <chenhanxiao(a)cn.fujitsu.com>
---
resize/resize.ml | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/resize/resize.ml b/resize/resize.ml
index 4e58e84..21bba63 100644
--- a/resize/resize.ml
+++ b/resize/resize.ml
@@ -81,10 +81,11 @@ let rec debug_partition ?(sectsize=512L) p =
printf "\tpartition data: %ld %Ld-%Ld (%Ld bytes)\n"
p.p_part.G.part_num p.p_part.G.part_start p.p_part.G.part_end
p.p_part.G.part_size;
- printf "\tpartition sector data: %Ld-%Ld\n"
- (p.p_part.G.part_start /^ sectsize) (p.p_part.G.part_end /^ sectsize);
- printf "\ttarget partition sector data: %Ld-%Ld \n"
- p.p_target_start p.p_target_end;
+ printf "\tpartition sector data: %Ld-%Ld (%Ld sectors)\n"
+ (p.p_part.G.part_start /^ sectsize) (p.p_part.G.part_end /^ sectsize)
+ ((p.p_part.G.part_end -^ p.p_part.G.part_start) /^ sectsize +^ 1L);
+ printf "\ttarget partition sector data: %Ld-%Ld (%Ld sectors)\n"
+ p.p_target_start p.p_target_end (p.p_target_end -^ p.p_target_start +^ 1L);
printf "\tbootable: %b\n" p.p_bootable;
printf "\tpartition ID: %s\n"
(match p.p_id with
--
2.1.0
9 years, 7 months
sfdisk: No more Cylinder / Head / Sector support in util-linux 2.26 and later
by Hilko Bengen
Hi,
it was brought to my attention that sfdisk has lost the ability to deal
with C/H/S addressing as of util-linux 2.26, so the -C ,-H, -S command
line parameters are no longer supported. Should there be a compile-time
check based on "sfdisk -h" output that would cause daemon/sfdisk.c to be
compiled only if something like the following is present?
,----
| Override the detected geometry using:
| -C, --cylinders <number> set the number of cylinders to use
| -H, --heads <number> set the number of heads to use
| -S, --sectors <number> set the number of sectors to use
`----
Cheers,
-Hilko
9 years, 7 months