public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Liang Guo <bluestonechina@gmail.com>
To: satimis@pacific.net.hk
Cc: kvm@vger.kernel.org
Subject: Re: How to edit *.qcow2
Date: Sun, 7 Feb 2010 00:33:35 +0800	[thread overview]
Message-ID: <201002070033.36735.bluestonechina@gmail.com> (raw)
In-Reply-To: <20100205145457.tic0ayspq80c0g8g@oswebmail1.pacific.net.hk>

在 星期五 05 二月 2010 14:54:57,satimis@pacific.net.hk 写道:
> Hi Liang,
> 
> 
> Thanks for your advice and link.
> 
> Host - Debian 5.0
> KVM
> libvirt
> 
> > run  kvm-nbd  VM/vm30.qcow2, modprobe nbd
> > nbd-client localhost 1024 /dev/nbd0
> >
> > then you can use /dev/nbd0 as a block device like /dev/sda
> >
> > I've write a little essay on how to install Debian on kvm image, FYI:
> >
> > http://blog.chinaunix.net/u/7667/showart_2112267.html
> 
> I can't find kvm-nbd and nbd-client.  I have nbd installed already.
> 
> 
> $ yum list nbd
> Loaded plugins: presto, refresh-packagekit
> Available Packages
> nbd.x86_64            2.9.13-1.fc12           fedora
> 
> 
> $ which kvm-nbd
> /usr/bin/which: no kvm-nbd in
> (/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:
> /usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/satimis/bin)
> 
> 
> $ which qemu-nbd
> /usr/bin/qemu-nbd
> 
> 
> $ which nbd-client
> /usr/bin/which: no nbd-client in
> (/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:
> /usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/satimis/bin)
> 
> 
> I suppose qemu-nbd = kvm-nbd ?  Where is nbd-client ?
In debian stable, kvm-nbd command is from pacakge kvm, please see 
http://packages.debian.org/lenny/amd64/kvm/filelist

If you are using Debian SID, you should use qemu-kvm instead of kvm. 

nbd-client command is from package nbd-client, please see:
http://packages.debian.org/lenny/amd64/nbd-client/filelist, It is in /sbin 
directory, so you should use root to run it.

qemu-nbd is from package qemu-utils, I have not use it, but I think it should 
do the same thing as kvm-nbd. 

I don't know fedora exactly, but I think fedora should have relevant package.

Best Wishes. 

-- 
Liang Guo
http://bluestone.cublog.cn

      reply	other threads:[~2010-02-06 16:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-01  3:58 How to edit *.qcow2 satimis
2010-02-01  5:04 ` Terry
2010-02-03  4:05   ` satimis
2010-02-03  6:11 ` Asias He
     [not found] ` <229432dd1001312031ud59ffb8s47fd50b615202d5c@mail.gmail.com>
2010-02-05  6:54   ` satimis
2010-02-06 16:33     ` Liang Guo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201002070033.36735.bluestonechina@gmail.com \
    --to=bluestonechina@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=satimis@pacific.net.hk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox