At Sun, 20 Oct 2013 10:40:59 +0200, Valerio Pachera wrote: > > Signed-off-by: Valerio Pachera <[email protected]> > --- > doc/create_new_disk.rst | 60 > +++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 60 insertions(+) > create mode 100644 doc/create_new_disk.rst > > diff --git a/doc/create_new_disk.rst b/doc/create_new_disk.rst > new file mode 100644 > index 0000000..1be511e > --- /dev/null > +++ b/doc/create_new_disk.rst > @@ -0,0 +1,60 @@ > +Create New Disk > +=============== > + > + > +Import Existing Disks > +********************* > + > +Now that we have our cluster working, we probably wish to see something > running > +on it. > +Instead of creating a new vm from scratch, we import an existing disk: > + > +:: > + > + # qemu-img convert -f qcow2 wheezy.qcow2 sheepdog:wheezy > + > +Now we have a vdi disk. > + > +:: > + > + # collie vdi list > + Name Id Size Used Shared Creation time VDI id Copies > Tag > + wheezy 1 10 GB 1.7 GB 0.0 MB 2013-02-11 12:31 a34c67 3 > + > +We are ready to run the vm on any of the node. > + > +:: > + > + kvm -drive file=sheepdog:wheezy -m 512 -smp 2 -vnc :1 -daemonize
I think a sample command should be as simple as possible. I'd suggest: $ qemu -drive file=sheepdog:wheezy > +:: > + > + # collie vdi create windows7 30G > + > + kvm -drive file=sheepdog:windows7 -cdrom /tmp/windows7.iso -m 2048 -smp 2 > -vnc :2 -boot order=d -daemonize How about the following command? $ qemu -drive file=sheepdog:windows7 -cdrom /tmp/windows7.iso > + > +Note: you may import the iso as well > + > +:: > + > + # qemu-img convert /tmp/windows7.iso sheepdog:windows7.iso I think we don't need a root privilege. '#' should be replaced with '$'. > + > +and then > + > +:: > + > + kvm -drive file=sheepdog:windows7 -cdrom file=sheepdog:windows7.iso -m > 2048 -smp 2 -vnc :2 -boot order=d -daemonize $ qemu -drive file=sheepdog:windows7 -cdrom file=sheepdog:windows7.iso looks simpler and enough. Thanks, Kazutaka -- sheepdog mailing list [email protected] http://lists.wpkg.org/mailman/listinfo/sheepdog
