Difference between revisions of "Agile testbed"

From PDP/Grid Wiki
Jump to navigationJump to search
Line 111: Line 111:
  
 
The latter example just specifies the storage pool to create an image on the fly, whereas the first pre-generates it. Both should work.
 
The latter example just specifies the storage pool to create an image on the fly, whereas the first pre-generates it. Both should work.
 +
The installation runs unattended with ''noautoconsole'', otherwise a VNC viewer is launched.
 +
 +
* '''Record''' the new machine in [[Agile testbed/VMs]].
 +
* '''Write''' a changelog entry to [mailto:ctb-changelog@nikhef.nl the ctb-changelog] mailing list. Here is a '''[[Agile testbed/Templates|template]]'''
  
 
A few notes:
 
A few notes:
Line 117: Line 121:
 
** With Debian preseeding, this may be automated by either setting <tt>d-i netcfg/dhcp_options select Retry network autoconfiguration</tt> or <tt>d-i netcfg/dchp_timeout string 60</tt>.
 
** With Debian preseeding, this may be automated by either setting <tt>d-i netcfg/dhcp_options select Retry network autoconfiguration</tt> or <tt>d-i netcfg/dchp_timeout string 60</tt>.
 
* Sometimes, a storage device is re-used (especially when recreating a domain after removing it '''and''' the associated storage). The re-use may cause the partitioner to see an existing LVM definition and fail, complaining that the partition already exists; you can re-use an existing LVM volume by using the argument: <tt>--disk vol=vmachines/blah</tt>.
 
* Sometimes, a storage device is re-used (especially when recreating a domain after removing it '''and''' the associated storage). The re-use may cause the partitioner to see an existing LVM definition and fail, complaining that the partition already exists; you can re-use an existing LVM volume by using the argument: <tt>--disk vol=vmachines/blah</tt>.
 +
 +
 +
=== reinstalling a virtual machine ===
 +
 +
In summary:
 +
# turn off the running machine
 +
# make libvirt forget it ever existed
 +
# remove the disk image
 +
# start from '''Choose a VM host''' in the procedure [[#creating a new virtual machine|creating a new virtual machine]].
 +
 +
On the command line:
 +
virsh destroy argus-el5-32.testbed
 +
virsh undefine argus-el5-32.testbed
 +
sleep 1 # give libvirt some time to or the next call may fail
 +
virsh vol-delete /dev/vmachines/argus-el5-32.testbed.img
  
 
=== importing a VM image from another source ===
 
=== importing a VM image from another source ===

Revision as of 19:24, 22 February 2013