info-mtools
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Info-mtools] use windows 95 with the kvm virtualization in linux


From: Alain Knaff
Subject: Re: [Info-mtools] use windows 95 with the kvm virtualization in linux
Date: Wed, 28 Apr 2010 08:04:51 +0200
User-agent: Thunderbird 2.0.0.24 (X11/20100317)

Alain Knaff wrote:
[...]
> You may find some info about this on 
> http://tjworld.net/wiki/Linux/MountQemuQcowImages
> 
> They also supply a "simpler" command to do the various nbd steps in one go:
> 
>   qemu-nbd -P 1 -c /dev/nbd0 ~/kvm/c.img
> 
> ... but I've found that this doesn't work well with partitions (-P 1). If I 
> try to
> use that command with partitions, it hangs on my Kubuntu 9.04.
> 
> It does work tough without -P 1, but then you need to figure out the offset 
> yourself,
> and give it to mtools (@@63S).

Actually, there is a way to make it handle partitions. When connecting a
"whole partition" device, nbd automatically creates subdevices for each 
partition,
named /dev/nbd0p1 (for first partition), /dev/nbd0p2, /dev/nbd0p3, ...

So you can do:
  qemu-nbd  -c /dev/nbd0 ~/kvm/c.img

or, depending on your distribution:
  kvm-nbd  -c /dev/nbd0 ~/kvm/c.img

... and then access it as follows:

  mdir -i /dev/nbd0p1 ::

Regards,

Alain




reply via email to

[Prev in Thread] Current Thread [Next in Thread]