Skip to content

nbd: Add version 3.20 #1837

Merged
merged 1 commit into from
Jun 30, 2020
Merged

nbd: Add version 3.20 #1837

merged 1 commit into from
Jun 30, 2020

Conversation

donald
Copy link
Collaborator

@donald donald commented Jun 29, 2020

Add user mode tools for nbd (nbd-server, nbd-client)

Note, that there is also a nbd server provided by qemu (qemu-nbd) which
is able to serve qcow2 formated files.

Usage example:

if nbd-client -c /dev/nbd0; then
    sudo nbd-client -d /dev/nbd0
fi
if test -e server.pid; then
    kill $(cat server.pid)
    rm server.pid
fi
test -e /scratch/local2/test.qcow && rm /scratch/local2/test.qcow
qemu-img create -f qcow2 /scratch/local2/test.qcow 80T
qemu-nbd --persistent /scratch/local2/test.qcow &
echo $! > server.pid
sudo nbd-client localhost /dev/nbd0
sudo mkfs.ext4 /dev/nbd0
sudo mount /dev/nbd0 /mnt

Create bee file with

cp scripts/mTEMPLATE.be0 nbd.be0

and fix BEE_VERSION, info URL and SRCURL.

nbd.be0 Outdated Show resolved Hide resolved
Add user mode tools for nbd (nbd-server, nbd-client)

Note, that there is also a nbd server provided by qemu (qemu-nbd) which
is able to serve qcow2 formated files.

Usage example:

    if nbd-client -c /dev/nbd0; then
        sudo nbd-client -d /dev/nbd0
    fi
    if test -e server.pid; then
        kill $(cat server.pid)
        rm server.pid
    fi
    test -e /scratch/local2/test.qcow && rm /scratch/local2/test.qcow
    qemu-img create -f qcow2 /scratch/local2/test.qcow 80T
    qemu-nbd --persistent /scratch/local2/test.qcow &
    echo $! > server.pid
    sudo nbd-client localhost /dev/nbd0
    sudo mkfs.ext4 /dev/nbd0
    sudo mount /dev/nbd0 /mnt

Create bee file with

    cp scripts/mTEMPLATE.be0 nbd.be0

and fix BEE_VERSION, info URL and SRCURL.
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants