With the increasing prevalence of virtualization comes the greater need for management of “guest” operating systems that run as virtual machines on the hypervisor, and the tool called libguestfs is set to provide that on Linux.
Libguestfs is a library for accessing and modifying guest vms and can be used for making batch configuration changes to guests, viewing and editing files inside guests, getting disk statistics, migrating between virtualization systems, performing partial guest backups and clones, cloning guests and changing system information of Linux and Windows guests among other things.
Developed by Red Hat emerging technologies software engineer Richard Jones, libguestfs overcomes the “constant problem” with virtualization management of how to “see inside” the guest virtual machine.
“You can measure things like how much CPU it’s using or how much network traffic it generates, but people often ask how much disk space a guest is using (not allocated, but actually using)?” Jones said.
“Did the guest boot up correctly? Can you install virtio drivers in that guest? Can you add a disk to a guest and change its /etc/fstab at the same time? Can you migrate a guest from Xen to KVM, uninstall the Xen PV kernel and add the right KVM drivers?”
Libguestfs uses Linux kernel and qemu code, and can access any type of guest file system that Linux and qemu can, including ext2/3/4, btrfs, FAT and NTFS, LVM, different disk partition schemes, qcow, qcow2, and vmdk.
“What we need to use is the Linux kernel code directly,” he said. “The whole thing runs inside a qemu container, and we talk from a small library to the userspace inside qemu, giving it instructions like 'edit this file', 'run this program', 'install this device driver'.”
The library can be linked with C and C++ management programs and has bindings for OCaml, Perl, Python, Ruby, Java and Haskell. It can also be used from shell scripts or the command line with the guestfish utility.
“The beauty of this is that Linux already has the drivers to handle numerous different file systems, LVM, partition types and so on,” Jones said, adding all the complexity is “hidden” inside the libguestfs library.
“The qemu process can decode qcow2 and a variety of other containers. We can even run an NFS server inside the guest and mount file systems on the host.”
Latest on Red Hat Linux
- Red Hat board gets military leadership
- Court patent ruling leaves software patents intact
- Red Hat support subscription to cover Amazon's cloud
- Red Hat drops Xen from RHEL
- Red Hat focuses new RHEL 5.5 on multicore
- Red Hat moves into desktop virtualization
- Red Hat open sources desktop application protocol
- Red Hat defends its subscription license model for Linux
- Open source Xen a 1-Stop for transport IT company
- Red Hat pushes certification program amid Linux wave
- WebSphere Solution Design (S20) - CBD, contract role3/09/2010
Other
I.T. & T
WebSphere Solution Design (S20) - CBD, contract role - Solution Architect - Web Application Architecture Project!3/09/2010
Other
I.T. & T
Solution Architect to provide strategic and operational consulting for the end-to-end Web Application System project! Experienced with J2EE or .NET?! - Principal Consultant - ITIL2/09/2010
Other
I.T. & T
Excellent opportunity for an experienced ITIL Principal Consultant to join an innovative leading IT Service management consultancy. Attractive packag - Mainframe Developer - COBOL - 12 Month Contract2/09/2010
Other
I.T. & T
Mainframe Developer - COBOL - 12 Month Contract - Business Systems Analyst2/09/2010
Other
I.T. & T
Perm CBD based role for an experienced Business Systems Analyst - Senior SAP Project Manager2/09/2010
Other
I.T. & T
Senior SAP Project Manager - SAP FICO Consultant - 6 week contract - West Sydney2/09/2010
Other
I.T. & T
SAP FICO Consultant - 6 week contract - West Sydney
Whitepapers
TechWorld Blogs
Recent blog posts
- Windows Phone 7: how big can it get?
- NBN gets a turn at political football
- Internet filter gets caught up in politics
- TechWorld Forums goes live
- Selective sourcing the hybrid of cloud services
- Social networks catch more business attention
- RIP Kin
- Telstra’s copper and NBN’s fibre: will the two ends meet?
- RIP Windows 2000, XP lives on
- Does the world need another iPhone? Why not
Recent comments
- java development
12 hours 22 min ago - When mine called they
13 hours 5 min ago - 3D TV cannot fall - no way! Why?
16 hours 19 min ago - Thanks for taking the time to
1 day 4 hours ago - Windows scam
1 day 12 hours ago - My only anti fraud method is
2 days 6 hours ago - Private Cloud Taxonomies
2 days 7 hours ago - ...however...
2 days 16 hours ago - This Guy
2 days 16 hours ago - Glasses Free technology
2 days 17 hours ago - FOSS community
2 days 23 hours ago - i have dv6000 with nvidia
3 days 1 hour ago - i have dv6000 and suddenly
3 days 1 hour ago - This is an awesome comment.
3 days 5 hours ago - Real Estate
3 days 7 hours ago - Scam - eventvwr scammers
3 days 11 hours ago - Well I never...
5 days 1 hour ago - Too bad Microsoft was mentioned
5 days 4 hours ago - Phone card is a better option to make calls at a lower rate
5 days 8 hours ago - In other words: "Developers,
5 days 14 hours ago










Comments
Post new comment