search for: nbd0

Displaying 20 results from an estimated 42 matches for "nbd0".

Did you mean: nbd
2015 Nov 07
2
mkfs.ext2 succeeds despite nbd write errors?
...to the point of being a working prototype. Then I threw it onto a raspberry pi, which it turns out only has a 50/50 shot of fallocate() working correctly. I'm checking the return code of fallocate(), and my chunks_pwrite() returns -1 if it fails. No problems there. When I run mkfs.ext2 /dev/nbd0 on the client, I see this on the nbd-server: nbdkit: chunks[1]: error: Unable to fallocate '/home/cell/nbds/default/chunks/00000000000000030723' nbdkit: chunks[1]: error: Unable to fallocate '/home/cell/nbds/default/chunks/00000000000000030724' nbdkit: chunks[1]: error: Unable to...
2015 Nov 07
0
Re: mkfs.ext2 succeeds despite nbd write errors?
...totype. Then I threw it > onto a raspberry pi, which it turns out only has a 50/50 shot of > fallocate() working correctly. > > I'm checking the return code of fallocate(), and my chunks_pwrite() > returns -1 if it fails. No problems there. > > When I run mkfs.ext2 /dev/nbd0 on the client, I see this on the nbd-server: > > > nbdkit: chunks[1]: error: Unable to fallocate > '/home/cell/nbds/default/chunks/00000000000000030723' > nbdkit: chunks[1]: error: Unable to fallocate > '/home/cell/nbds/default/chunks/00000000000000030724' > n...
2005 Aug 06
1
Buffer I/O error on device nbd0
Hi. We get the errors below in the kernel logs. WARNING: Kernel Errors Present Buffer I/O error on device nbd0, ...: 27 Time(s) Buffer I/O error on device nbd16,...: 3 Time(s) end_request: I/O error, dev nbd0, secto...: 13 Time(s) end_request: I/O error, dev nbd1, secto...: 7 Time(s) end_request: I/O error, dev nbd10, sect...: 7 Time(s) I see someone else has reported this error message. E.g. see: http://...
2018 Oct 16
1
Re: Question about mounting QCOW2 files....
...large sparse file but would > like to keep the file on disk itself in compact format. So we are not > talking about a file system but a single file. I guess this means > creating qcow2 disk and attach as a local device? I'm still a little unclear, but most likely: qemu-nbd -c /dev/nbd0 file.qcow2 qemu-nbd -d /dev/nbd0 The first command will attach file.qcow2 to /dev/nbd0, making it appear as a normal host device. The second will detach it. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: htt...
2017 Jul 27
2
Re: performance between guestfish and qemu-nbd
...Read my programming and virtualization blog: http://rwmj.wordpress.com > Fedora Windows cross-compiler. Compile Windows programs, test, and > build Windows installers. Over 100 libraries supported. > http://fedoraproject.org/wiki/MinGW > guestfish: guestfish --rw -a demo.qcow2 -m /dev/nbd0 qemu-nbd: qemu-nbd -c /devnbd0 demo.qcow2 I just want to mount demo.qcow2 to a device
2019 Jun 27
2
mkfs fails on qemu-nbd device
Hi All, I am unable to figure out the issue here, when I try to create a filesystem (ext4) on a virtual disk using qemu-nbd. This happens intermittently. Following is the sequence of commands:- $> qemu-img create -f qcow2 test.qcow2 30G $> qemu-nbd --connect=/dev/nbd0 test.qcow2 $> *mkfs.ext4 /dev/nbd0* * mkfs.ext4: Device size reported to be zero. Invalid partition specified, or* *Thu Jun 13 14:44:24 2019 partition table wasn't reread after running fdisk, due to* *Thu Jun 13 14:44:24 2019 a modified partition being busy and in use. You may need to re...
2007 Nov 13
2
lvm over nbd?
...was wondering if there is a way i could share the partition using nbd and have the nbd-client have access the LVM as if it was local. SYSTEM A: /dev/sda3 is a LVM partition and is assigned to VG volgroup1. I want to share /dev/sda3 via nbd-server SYSTEM B: receives A''s /dev/sda3 as /dev/nbd0. I want to access it as VG volgroup1. I am hoping this will allow me to share LV partitions on volgroup1 which is used by XEN domUs. I think i read something about CLVM. Will this allow me to do what I want? how do i go about setting up a clvm? TIA, Tomoki ___________________________________...
2020 May 28
2
Re: Provide NBD via Browser over Websockets
...ler.net> wrote: > Hello all, > > It might be neat to attach ISOs to KVM guests via websockets.  Basically > the  browser would be the NBD "server" and an NBD client would run on the > hypervisor, then use `virsh change-media vm1 hdc --insert /dev/nbd0` could > use an ISO from my desk to boot from. > > Here's an HTML5 open file example: > https://stackoverflow.com/questions/3582671/how-to-open-a-local-disk-file-with-javascript > > and the NBD protocol looks simple enough to implement in javascript:...
2017 Jul 28
1
Re: performance between guestfish and qemu-nbd
...gt; > > They do quite different things, they're not comparable. > > > > > > Can you specifically give the commands you are trying? We might be > > > able to give more sensible advice. > > > > guestfish: > > guestfish --rw -a demo.qcow2 -m /dev/nbd0 > > > > qemu-nbd: > > qemu-nbd -c /dev/nbd0 demo.qcow2 > > These don't do the same thing. In fact the guestfish command doesn't > work at all. > > > I just want to mount demo.qcow2 to a device > > Still unclear. > > You want to export demo.qc...
2018 Sep 17
0
nbdkit -c /dev/nbdX option
While I was thinking about what I'd write for my proposed nbdkit talk at FOSDEM next year, this strikes me as clunky: rm -f /tmp/sock nbdkit -U /tmp/sock file foo nbd-client -u /tmp/sock /dev/nbd0 ... nbd-client -d /dev/nbd0 killall nbdkit In qemu-nbd, all that is just this: qemu-nbd -c /dev/nbd0 foo It seems like it would be nice to implement an ‘nbdkit -c /dev/nbdX’ option. My first idea was: nbdkit -c /dev/nbdX ==> nbdkit -U [sock] &...
2017 Apr 23
0
Proper way to remove a qemu-nbd-mounted volume usnig lvm
I either haven't searched for the right thing or the web doesn't contain the answer. I have used the following to mount an image and now I need to know the proper way to reverse the process. qemu-nbd -c /dev/nbd0 <qcow2 image using lvm> vgscan --cache (had to use --cache to get the qemu-nbd volume to be recognized, lvmetad is running) vgchange -ay lvdisplay mount <selected qemu-nbd related 'LV Path' found from lvdisplay above> <mount point> I have do...
2018 Jun 29
2
guestmount only
hello, I would only like to have guestmount in my toolkit to read-only vhd/vhdx images, so I try to compile libguestfs with a minimum of dependencies. I downloaded the 1.38-stable sources, installed the necessary dependencies and compiled them with the command : ./configure --disable-ocaml --disable-perl --disable-ruby --disable-haskell --disable-php --disable-erlang --disable-lua
2020 May 28
3
Re: Provide NBD via Browser over Websockets
...gt; > > > > > It might be neat to attach ISOs to KVM guests via websockets.  Basically > > > the  browser would be the NBD "server" and an NBD client would run on the > > > hypervisor, then use `virsh change-media vm1 hdc --insert /dev/nbd0` could > > > use an ISO from my desk to boot from. > > > > > > Here's an HTML5 open file example: > > > https://stackoverflow.com/questions/3582671/how-to-open-a-local-disk-file-with-javascript > > > > > > and the N...
2018 Oct 15
2
Re: Question about mounting QCOW2 files....
[Adding libguestfs mailing list] On Sun, Oct 14, 2018 at 11:53:17AM -0400, Raghuram Devarakonda wrote: > Hi, > > My name is Raghuram Devarakonda and I am a big fan of "nbdkit". I have > successfully used it to prototype (using Python plugin) a complex > project in our company and since then, I have also been trying to > understand and learn "guestfs-tools"
2018 Jul 18
3
Is there any plan to support SPDK disks?
Considering that the technic of SPDK + QEMU is making progress toward maturity. Personally I'd like to do the integration work. Not sure somebody would mind to give me some clue on that? Because I'm not familiar with libguestfs code structures. Thanks, Bob
2017 Jul 27
0
Re: performance between guestfish and qemu-nbd
...performance is better? > > > > They do quite different things, they're not comparable. > > > > Can you specifically give the commands you are trying? We might be > > able to give more sensible advice. > > guestfish: > guestfish --rw -a demo.qcow2 -m /dev/nbd0 > > qemu-nbd: > qemu-nbd -c /dev/nbd0 demo.qcow2 These don't do the same thing. In fact the guestfish command doesn't work at all. > I just want to mount demo.qcow2 to a device Still unclear. You want to export demo.qcow2 as NBD? Use qemu-nbd. You want to mount demo.qcow2...
2018 Oct 13
0
Re: Provide NBD via Browser over Websockets
...On 10/13/18 1:39 PM, Eric Wheeler wrote: > Hello all, > > It might be neat to attach ISOs to KVM guests via websockets. Basically > the browser would be the NBD "server" and an NBD client would run on the > hypervisor, then use `virsh change-media vm1 hdc --insert /dev/nbd0` could > use an ISO from my desk to boot from. Are you using qemu as the hypervisor? If you are using something else, like vmware, then using the kernel NBD module as the NBD client to expose the browser-as-server via /dev/nbd0 is reasonable since practically any hypervisor will attach to a...
2020 Mar 16
0
[nbdkit] Serving "temporary disks" over NBD
...k build directory. This is because the build machines have only SD-cards as local disk and SD is both slow and unreliable. The builders (NBD clients) are set up with an /etc/rc.d/rc.local file which runs these commands on boot: modprobe nbd nbd-client -b 512 nbd.server.example.com 10809 /dev/nbd0 mount /dev/nbd0 /var/lib/mock The /var/lib/mock directory is essentially temporary and doesn't need to persist across boots or even mounts. Ideally every time the client connects over NBD we'd get a fresh ext4 filesystem. Also note as there are multiple clients they must all see a fres...
2020 Jul 31
5
nbdkit build failure in Koji
Hi Eric, I wonder if you have any thoughts about this build failure in tests/test-nozero.sh? https://koji.fedoraproject.org/koji/taskinfo?taskID=48259627 log: https://kojipkgs.fedoraproject.org//work/tasks/9762/48259762/build.log The error is “nozero6.img was trimmed by mistake”. I added “set -x” to the script earlier today so we can see exactly what's wrong, and it is that: ++ stat
2020 May 28
0
Re: Provide NBD via Browser over Websockets
...gt; Hello all, > > > > It might be neat to attach ISOs to KVM guests via websockets.  Basically > > the  browser would be the NBD "server" and an NBD client would run on the > > hypervisor, then use `virsh change-media vm1 hdc --insert /dev/nbd0` could > > use an ISO from my desk to boot from. > > > > Here's an HTML5 open file example: > > https://stackoverflow.com/questions/3582671/how-to-open-a-local-disk-file-with-javascript > > > > and the NBD protocol looks simple enoug...