add information how to import an libvirt VM
[mirror/dsa-wiki.git] / input / howto / install-ganeti.creole
index 15659f9..4ed242a 100644 (file)
@@ -330,3 +330,17 @@ Please note that the hook scripts are run only at instance instantiation.  When
 adding interfaces to an instance, the guest opearting system must be updated
 manually.
 
+
+* If you are importing an instance from libvirt with LVM setup, you can adopt LVs:
+
+{{{
+
+    gnt-instance add -t plain --os-type debootstrap+dsa-wheezy \
+      --disk 0:adopt=lully-boot \
+      --disk 1:adopt=lully-root \
+      --disk 2:adopt=lully-swap \
+      --disk 3:adopt=lully-log  \
+      --hypervisor-parameters kvm:initrd_path=,kernel_path= \
+      --net 0:ip=82.195.75.99 -n clementi.debian.org  lully.debian.org
+
+}}}