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 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
- New Linux tool helps manage guest virtual machines
- Red Hat virtual desktop technology heads into beta tests
- Red Hat offers customizable app servers
- Ingres bundles Red Hat for application development stack
- Red Hat sues Swiss government over $39M Microsoft contract
- Red Hat CEO questions desktop's relevance in Linux debate
- Instructional Designer (Training Developer) (s15)10/02/2010
Other
I.T. & T
Instructional Designer (Training Developer) (s15) - BUSINESS DEVELOPMENT MANAGER - CONTENT MANAGEMENT SYSTEMS, INTRANETS,10/02/2010
Other
I.T. & T
BUSINESS DEVELOPMENT MANAGER - CONTENT MANAGEMENT SYSTEMS, INTRANETS, - Informatica PowerCenter Consultants10/02/2010
Other
I.T. & T
Informatica PowerCenter Consultants - WEB CONTENT MANAGEMENT SYSTEMS - BUSINESS DEVELOPMENT MANAGER10/02/2010
Other
I.T. & T
WEB CONTENT MANAGEMENT SYSTEMS - BUSINESS DEVELOPMENT MANAGER - Senior Tester9/02/2010
Other
I.T. & T
Senior Tester
TechWorld Blogs
Recent blog posts
- Talk about mobile computing
- iPad arrives: can Apple crack the tablet?
- Linux.conf.au 2010 kicks off in New Zealand
- VMware jumps further into SaaS with Zimbra
- Amarok 2.2.2 released – rock on!
- Happy Nexus Year
- So long 2009, and thanks for another decade in tech
- KDE 4.4 enters beta, bring on mainstream computing
- Chromium OS source released: another way of thinking
- Dell goes Android for mobile market entrance
Recent comments
- Buy 2 get 1 free: Apple iphone 3gs 32gb,Nokia N97,BB Bold,HTC HD
5 hours 22 min ago - My Take:
5 hours 38 min ago - PDA Smart phone users
14 hours 51 min ago - Touch Phone Accessories
14 hours 58 min ago - joo joo
15 hours 50 min ago - Thanks!
1 day 11 hours ago - Transcription mistake
2 days 12 hours ago - Freeway is hardly Australian
2 days 13 hours ago - Great Business Initiative
3 days 9 hours ago - www.mintfly.com
3 days 13 hours ago - also creating unemployment
4 days 6 hours ago - How to save in one page???
5 days 8 hours ago - Well it's 2010 now...
5 days 17 hours ago - Man, catch up. You're being
6 days 18 hours ago - Rhapsody in Australia
6 days 18 hours ago - ipad reaction
1 week 9 hours ago - Capacity Bollenecks
1 week 23 hours ago - not only for "young folks"
1 week 1 day ago - Take action now
1 week 2 days ago - u guys are a idiots. i have
1 week 2 days ago







Comments
Post new comment