Difference between revisions of "Agile testbed"

From PDP/Grid Wiki
Jump to navigationJump to search
Line 127: Line 127:
 
Followed by virt-install as before.
 
Followed by virt-install as before.
  
=== importing a VM image from another source ===
+
=== importing a VM disk image from another source ===
 +
 
 +
If the machine did not exist in this testbed before, follow the steps to [[#prepare the environment]].
 +
 
 +
Depending on the type of disk image, it may need to be converted before it can be used. Xen disk images
 +
can be used straightaway as raw images, but the bus type may need to be set to 'ide'.
 +
 
 +
* Place the disk image on a storage pool, e.g. put.testbed.
 +
* refresh the pool with virsh pool-refresh put.testbed
 +
 
 +
Run virt-install (or the GUI wizard).
 +
 
 +
virt-install --import --disk vol=put.testbed/ref-debian6-64.testbed.img,bus=ide \
 +
    --name ref-debian6-64.testbed --network bridge=br0,mac=00:16:3E:C6:02:0F \
 +
    --os-type linux --os-variant debiansqueeze --ram 1000
  
 
=== Migrating a VM to another host ===
 
=== Migrating a VM to another host ===

Revision as of 21:33, 22 February 2013