[Libguestfs] guestmount issues with --live, but guestfish works just fine

Adam Miller maxamillion at fedoraproject.org
Mon Oct 10 02:15:53 UTC 2011


On Sun, Oct 09, 2011 at 10:41:10AM +0100, Richard W.M. Jones wrote:
> On Sun, Oct 09, 2011 at 01:54:32AM -0500, Adam Miller wrote:
> > It would appear that running with F16 Host and F16 VM the result was
> > similar to running F15 Host and F16 VM. 
> [...]
> > [root at longitude ~]# guestmount --live -d F16-rawhide -m /dev/sda3:/
> > /mnt/guest/
> > libguestfs: error: mount_options: /dev/vda3 on /: mount: /dev/vda3
> > already mounted or / busy
> 
> The problem is you want to use *neither* -i *nor* -m options.
> 
> So this test:
> 
>   /* Check we have the right options. */
>   if (!drvs || !(mps || inspector)) {
> 
> should be something like:
> 
>   if (!live) {
>     if (!drvs || !(mps || inspector)) {
>       ...
>     }
>   }
> 
> but with a more complex test in the else branch to ensure a '-d'
> option was specified.

I will probably check this out before long to see if it works, but I was
actually able to accomplish what I was trying to using the python
bindings to libguestfs so this isn't as much of an issue for me. Thanks
so much for spending time helping me, I know its all still highly
experimental.

Thanks again!
-AdamM




More information about the Libguestfs mailing list