Changes between Version 69 and Version 70 of install_kvm
- Timestamp:
- Apr 21, 2017, 5:01:40 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
install_kvm
v69 v70 4 4 = Creating a new KVM guest = 5 5 6 In these direc itons, the host (or <hostname>) refers to the name of the kvm host computer (e.g. negri, or bolivar, etc.). The guest (or <guestname>) refers to the name of the virtualized server you are creating. The examples use negri as the host and hay as the guest.6 In these directions, the host (or <hostname>) refers to the name of the kvm host computer (e.g. negri, or bolivar, etc.). The guest (or <guestname>) refers to the name of the virtualized server you are creating. The examples use negri as the host and hay as the guest. 7 7 8 8 == Initial steps == … … 14 14 * '''In your local puppet''' Create Manifest file 15 15 * Copy an existing puppet node file, preferably one from the same host, naming it after your activist (pick either the first or last name of the activist, up to you) and replace all instances of the old guest name with your new guest name and change the namesake URL and description text and anything else (be sure that the onsite/rdiff-backup server is in the same colo center as the server you are creating) and replace the IP address in the nagios stanza with the correct IP address 16 * Edit the puppet configuration file for the host server. Copy an existing m_kvm::guest stanza, replacing values as needed. The stanza will look something like this:16 * Edit the puppet configuration file for the host server. Copy an existing m_kvm::guest stanza, replacing values as needed. Normally you will want to set the nameserver to the ip of the physical host. The stanza will look something like this: 17 17 {{{ 18 18 m_kvm::guest { … … 32 32 33 33 == While root on the host machine == 34 34 * Check the date of file /usr/local/share/ISOs/default.iso , if the date is older than the latest debian stable installer release then: 35 * delete /usr/local/share/ISOs/default.iso 36 * delete /usr/local/share/ISOs/<guestname>.iso 37 * run freepuppet-run and puppet should invoke di-maker to create both files again. For more details about how these images are created see the puppet config files {{{modules/mayfirst/manifests/m_kvm.pp}}} and {{{/modules/mayfirst/templates/kvm/preseed.cfg.erb}}} 35 38 * Create a symlink to the ISO in the newly created user's home directory... 36 39 {{{ … … 81 84 E.g. 82 85 {{{ 83 /dev/mapper/vg_goldman0-home /home ext 3defaults,relatime,nosuid,nodev 0 286 /dev/mapper/vg_goldman0-home /home ext4 defaults,relatime,nosuid,nodev 0 2 84 87 }}} 85 88