[sheepdog] [PATCH 06/11] Doc. "Sheepdog Basic" add chapter "create new disk"
Valerio Pachera
sirio81 at gmail.com
Sun Oct 20 10:40:59 CEST 2013
Signed-off-by: Valerio Pachera <sirio81 at gmail.com>
---
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
+
+**IMPORTANT:**
+Do NOT use the same vdi twice!
+This may simply happen if you run the same guest on two different hosts.
+The vdi will be corrupted.
+Vice versa, if you run the same guest (or another using the same vdi) on the
+same host, you'll get an error about disk already in use (no corruption).
+
+
+New Vdi
+*******
+
+If you wish to install a new operation system you need an empty vdi and an iso
+file.
+
+::
+
+ # collie vdi create windows7 30G
+
+ kvm -drive file=sheepdog:windows7 -cdrom /tmp/windows7.iso -m 2048 -smp 2 -vnc :2 -boot order=d -daemonize
+
+Note: you may import the iso as well
+
+::
+
+ # qemu-img convert /tmp/windows7.iso sheepdog:windows7.iso
+
+and then
+
+::
+
+ kvm -drive file=sheepdog:windows7 -cdrom file=sheepdog:windows7.iso -m 2048 -smp 2 -vnc :2 -boot order=d -daemonize
--
1.7.10.4
More information about the sheepdog
mailing list