qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH][RFC] qemu-nbd:multiple files server


From: Laurent Vivier
Subject: [Qemu-devel] [PATCH][RFC] qemu-nbd:multiple files server
Date: Mon, 08 Sep 2008 11:47:31 +0200

This patch allows the NBD client to select the file to use.

It modifies the NBD protocol to allow the client to provide a filename
if the NBD server reports a disk size of 0.

Example:

# add in /etc/services

nbd     1024/tcp

# add in /etc/inetd.conf

nbd             stream  tcp     nowait root /usr/local/bin/qemu-nbd 
/usr/local/bin/qemu-nbd --nocache --read-only --port 0 --directory /ISO

In /ISO, there are:

debian-31r0a-amd64-netinst.iso   openSUSE-10.3-GM-x86_64-mini.iso
debian-40r0-i386-netinst.iso     ubuntu-6.06-desktop-amd64.iso
debian-40r0-i386-xfce-CD-1.iso   ubuntu-7.10-desktop-amd64.iso
debian-40r1-amd64-netinst.iso    ubuntu-8.04-desktop-i386.iso
debian-40r1-powerpc-netinst.iso  winxp_64.iso

Then I can start qemu with:

x86_64-softmmu/qemu-system-x86_64 -net nic -net tap -hda new_disk.qcow2 -cdrom 
nbd:my_nbd_server:1024:ubuntu-6.06-desktop-amd64.iso -boot d

or

x86_64-softmmu/qemu-system-x86_64 -net nic -net tap -hda new_disk.qcow2 -cdrom 
nbd:my_nbd_server:1024:winxp_64.iso -boot d

My goal is to be able to provide an install CD server, without
configuring BOOTD/DHCP/TFTP server.

Signed-off-by: Laurent Vivier <address@hidden>
-- 
----------------- address@hidden  ------------------
  "La perfection est atteinte non quand il ne reste rien à
ajouter mais quand il ne reste rien à enlever." Saint Exupéry

Attachment: nbd-directory.patch
Description: Text Data


reply via email to

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