I'm pleased to announce version 1.0.15 of libguestfs, the library for accessing and modifying virtual machine filesystems.
Home page: http://et.redhat.com/~rjones/libguestfs/ Downloads: http://et.redhat.com/~rjones/libguestfs/files/ Source: http://git.et.redhat.com/?p=libguestfs.git;a=shortlog
New since the previous announcement we have:
- New 'virt-inspector' tool. This can tell you at a high level what is on a virtual machine, such as how its filesystems are mounted, what OS and version it is running, what kernel, drivers and apps are installed. http://et.redhat.com/~rjones/libguestfs/virt-inspector.1.html
- New 'lvremove', 'vgremove', 'pvremove' commands.
- Add really working support for NTFS and FAT.
- Add really working support for CD-ROMs and DVDs.
- Add --ro option for read-only mounts in guestfish.
- New 'set-e2uuid', 'get-e2uuid', 'set-e2label', 'get-e2label' commands for setting ext2/3/4 UUIDs and labels.
- New 'debug' command for debugging daemon internals.
- Guestfish recipes.
- Many bugs fixed (note: including a data corruptor that affected FileOut transfers, so upgrading is recommended).
Rich.
On Tue, Apr 28, 2009 at 05:34:32PM +0100, Richard W.M. Jones wrote:
I'm pleased to announce version 1.0.15 of libguestfs, the library for accessing and modifying virtual machine filesystems.
Good news. :)
Can you also add fsck to supported commands?
This worked:
guestfish -a /home/images/rawhide.img -m /dev/sda2 # /proc is required to use fsck command "mount /proc" # devices are not created in dev, so I need to create them command "/sbin/MAKEDEV /dev/sda" command "/sbin/MAKEDEV /dev/sda1" # Autorepair with "-y" need to be used, otherwise it will only display # error, that interactive mode can't be used. command "/sbin/fsck /dev/sda1 -f -y"
At least /proc and /dev files can be useful for users.
But for one filesystem this only displayed: e2fsck: Cannot continue, aborting. No more information.
Which version of kvm>74 is fully functional? What is status of Fedora 10 new virt packages (rebuild packages from F11/F12)? After some tests with new virt packages, my qemu qcow2 partitions have been corrupted and I was unable to install new or use my old virtual machines.
I can't test libguestfs until I can make some almost stable packages? Data corruption is not my problem, I only need anything, that work. My current (functional) configuration: etherboot-roms-kvm-5.4.4-13.fc11.noarch etherboot-zroms-kvm-5.4.4-13.fc11.noarch gtk-vnc-0.3.8-8.fc11.i586 kvm-74-10.fc10.i386 libvirt-python-0.6.1-1.fc10.i386 libvirt-0.6.1-1.fc10.i386 python-virtinst-0.400.3-3.fc10.noarch python-virtualenv-1.3.2-1.fc10.noarch qemu-img-0.9.1-12.fc10.i386 qemu-0.9.1-12.fc10.i386 virt-df-2.1.5-1.fc10.i386 virt-manager-0.7.0-4.fc10.i386 virt-mem-0.2.9-6.fc10.i386 virt-top-1.0.3-2.fc10.i386 virt-viewer-0.0.3-3.fc10.i386
SAL
On Tue, Apr 28, 2009 at 06:46:49PM +0200, Ján ONDREJ (SAL) wrote:
On Tue, Apr 28, 2009 at 05:34:32PM +0100, Richard W.M. Jones wrote:
I'm pleased to announce version 1.0.15 of libguestfs, the library for accessing and modifying virtual machine filesystems.
Good news. :)
Can you also add fsck to supported commands?
This worked:
guestfish -a /home/images/rawhide.img -m /dev/sda2 # /proc is required to use fsck command "mount /proc" # devices are not created in dev, so I need to create them command "/sbin/MAKEDEV /dev/sda" command "/sbin/MAKEDEV /dev/sda1" # Autorepair with "-y" need to be used, otherwise it will only display # error, that interactive mode can't be used. command "/sbin/fsck /dev/sda1 -f -y"
Yeah, this is very hairy.
Can you come up with a patch which adds an fsck command, just running off the initramfs? It won't need to mount anything or make device nodes.
At least /proc and /dev files can be useful for users.
/proc and /dev should probably be bind-mounted into the /sysroot, but only while external commands are running (otherwise it'll break mounting). That's a different matter though.
But for one filesystem this only displayed: e2fsck: Cannot continue, aborting. No more information.
Which version of kvm>74 is fully functional? What is status of Fedora 10 new virt packages (rebuild packages from F11/F12)?
There's no chance of libguestfs for Fedora 10, because the qemu maintainers aren't interested in pulling back vmchannel support into that old qemu 0.9 package in F-10.
Fedora 11+ should be OK though. I'm still trying to shepherd the review through.
After some tests with new virt packages, my qemu qcow2 partitions have been corrupted and I was unable to install new or use my old virtual machines.
That sounds like the general problem with qemu & qcow2, which is that there are various data corrupters :-(
If you run libguestfs without write privileges to the guests, then it can't corrupt your filesystems ...
I usually do 'chmod o+r /dev/mapper/Guests-foo' and then run guestfish as non-root.
Rich.
On Tue, Apr 28, 2009 at 05:57:37PM +0100, Richard W.M. Jones wrote:
Can you come up with a patch which adds an fsck command, just running off the initramfs? It won't need to mount anything or make device nodes.
See also:
http://rwmj.wordpress.com/2009/04/29/contributing-a-libguestfs-enhancement-w...
Rich.