Changes between Version 20 and Version 21 of install_kvm
- Timestamp:
- Mar 11, 2011, 5:21:18 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
install_kvm
v20 v21 5 5 = Creating a new KVM guest = 6 6 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 8 9 1. Run kvm-creator to create the new LV for the guest and the needed directory and files in /etc/sv/kvm/: 9 10 {{{ … … 12 13 1. Initially it's a good idea to run the demo. This will give you a breakdown of how the server will be created. 13 14 {{{ 14 kvm-creator demo GUESTNAME15 kvm-creator demo <guestname> 15 16 }}} 16 17 1. After determining the settings you want the machine to have, run the demo command and then the 'create' command. … … 35 36 }}} 36 37 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 41 40 1. Rebuild the monkeysphere-controlled SSH authorized_keys files: 42 41 {{{ … … 100 99 1. Tell runit to start the guest automatically 101 100 {{{ 102 update-service --add /etc/sv/kvm/ SERVER-NAME101 update-service --add /etc/sv/kvm/<guestname> 103 102 }}} 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 {{{ 108 rm /home/<guestname>/vms/<guestname>/cd.iso 109 }}} 106 110 1. Login with root and no password 107 111 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: