在 星期五 05 二月 2010 14:54:57,satimis@xxxxxxxxxxxxxx 写道: > 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 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html