i got it working with libguestfs. libguestfs is awesome at manipulating guest VM images.
Xin On Tue, Apr 24, 2012 at 4:45 AM, Mulyadi Santosa <mulyadi.sant...@gmail.com> wrote: > On Tue, Apr 24, 2012 at 02:09, Xin Tong <xerox.time.t...@gmail.com> wrote: >> I am not too sure what you mean by raw image. what i have is an *.img >> file that is bootable by QEMU. will kpartx work ? > > try to use "qemu-img info" to find what format the file uses... > > > -- > regards, > > Mulyadi Santosa > Freelance Linux trainer and consultant > > blog: the-hydra.blogspot.com > training: mulyaditraining.blogspot.com