Changes between Version 20 and Version 21 of install_kvm


Ignore:
Timestamp:
Mar 11, 2011, 5:21:18 PM (14 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • install_kvm

    v20 v21  
    55= Creating a new KVM guest =
    66
    7  1. Install the [https://support.mayfirst.org/wiki/install_debian_kvm_manager kvm-manager] scripts (this should already be done on existing hardware)
     7 1. In these direcitons, 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.
     8 1. Install the [https://support.mayfirst.org/wiki/install_debian_kvm_manager kvm-manager] scripts (this should already be done on existing hardware) on the host
    89 1. Run kvm-creator to create the new LV for the guest and the needed directory and files in /etc/sv/kvm/:
    910{{{
     
    1213 1. Initially it's a good idea to run the demo. This will give you a breakdown of how the server will be created.
    1314{{{
    14 kvm-creator demo GUESTNAME
     15kvm-creator demo <guestname>
    1516}}}
    1617 1. After determining the settings you want the machine to have, run the demo command and then the 'create' command.
     
    3536}}}
    3637 1. Add at least one user to the access list for the new KVM guest's serial console
    37   1. Monkeysphere way:
    38    1. Add a uid to the /home/<guestname>/.monkeysphere/authorized_user_ids file or copy /root/.monkeysphere/authorized_user_ids to /home/<guestname>/.monkeysphere
    39   1. SSH key way
    40    1. Add an SSH key to the /home/<guestname>/.ssh/authorized_keys file
     38  1. Monkeysphere way: Add a uid to the /home/<guestname>/.monkeysphere/authorized_user_ids file or copy /root/.monkeysphere/authorized_user_ids to /home/<guestname>/.monkeysphere
     39  1. SSH key way: Add an SSH key to the /home/<guestname>/.ssh/authorized_keys file
    4140  1. Rebuild the monkeysphere-controlled SSH authorized_keys files:
    4241{{{
     
    10099 1. Tell runit to start the guest automatically
    101100{{{
    102 update-service --add /etc/sv/kvm/SERVER-NAME
     101update-service --add /etc/sv/kvm/<guestname>
    103102}}}
    104  1. Log into the new guest via ssh: {{{ ssh SERVER-NAME@HOST-NAME }}}
    105  1. Install an OS: everything should be handled by preseed file
     103 1. Log into the new guest via ssh: {{{ ssh <guestname>@HOST-NAME }}}
     104 1. Start screen: {{{ screen -x}}}. You should see a grub menu waiting for you to hit enter on the installer.
     105 1. After hitting enter, watch the installer fly by.
     106 1. Before it completes, be sure to delete the symlink you created to the cd.iso installer (as root):
     107{{{
     108rm /home/<guestname>/vms/<guestname>/cd.iso
     109}}}
    106110 1. Login with root and no password
    107111 1. The preseed file will leave all leftover space on the disk in a logical volume called "delete". You can remove this logical volume (so the extra space is available to enlarge other logical volumes): with: