Troubleshooting Virtualization (KVM) mode - After executing KVM setup scripts, check if the ~/virt/templates directory is copied with the required templates by comparing the size with actual template sizes. This should be done before deployment of application. - For KVM mode execution, check the contents of ~/.ssh
$ ls ~/.ssh
id_dsa ... ... ...
If there is no id_dsa file, do the following
$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/shalini/.ssh/id_dsa):
Created directory '/home/shalini/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/shalini/.ssh/id_dsa.
Your public key has been saved in /home/shalini/.ssh/id_dsa.pub.
The key fingerprint is:
9a:8b:97:8d:de:66:d7:71:1a:1a:88:15:27:b9:67:1e shalini@shalini
The key's randomart image is:
+--[ DSA 1024]----+
| . |
| + . |
| = |
| o E |
| oS= . |
| .o. o o . |
| o+ + = |
| .+o+ o o |
| .ooo.. |
+-----------------+
Enter an empty passphrase when prompted for. Also, remove any *rsa files in ~/.ssh directory. - Make sure there is enough space under ~/virt directory to ensure copying of templates dont fail. - When templates are created, make sure ssh is installed in them. - In the kvm_setup.sh or kvm_lb_setup.sh, the user name used in create-template-user should be the same as the username of the machine template created. - In the kvm_setup.sh or kvm_lb_setup.sh, the user name used in create-machine-user command should be the user who has privileges to access libvirt and Virtual Manager APIs. - While creating machine templates, the xml files generated should be updated with the network interface appropriately. For eg., in ubuntu, "virbr0" bridge is used. Some default settings that could be used in glassfish.xml are
$vi glassfish.xml
<memory>1024000</memory>
<currentMemory>1024000</currentMemory>
...
...
...
<interface type='bridge'>
<mac address='52:54:00:74:f6:21'/>
<source bridge='virbr0'/>
<target dev='vnet0'/>
|