Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Useful Tips and

...

Tricks

This is a work in progress and most data is in bits-and pieces. Some of it is sketchy. Please help improve the article further. It's a wiki and self-organizing so everyone is encouraged to contribute and improve the knowledge base.

1.To list all the queries hitting the CloudStack database

...

Wiki Markup
Check if vMotion is enabled \[[http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1036145|http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1036145]\]

To enable vMotion1vMotion

1) Login to vCenter Server using the vSphere Client.
2) Click the ESX host.
3) Click the Configuration tab.
4) Under the Hardwaresection, click Networking.
5) Click Propertiesfor the virtual switchwhere a VMkernel port has been configured.
6) In the dialog box that opens,select vmkernelin the Ports taband click Edit.
7)To enable vMotion,select Enablednext to vMotionand click OK.

...

mysql>select *from cloud.versionorder by iddesc limit 1;

...

id

version

updated            

step    

...

  2

3.0.1  

2012-04-03 06:42:06

Complete

...

1 row in set (0.00 sec)

4. How to get the complete details of a vm instance?

...

Add the following lines to /etc/cloud/management/log4j-cloud.xml

<category xml<category name="namespace.of.your.class">
<priority value="TRACE"/>
</category>

where namespace.of.your.class is the something like com.cloud.utils for example

...

• Edit the configuration filefor SSH with the command:nano /etc/ssh/sshd_config• Find the line that starts with PermitRootLogin and change the no to yes. You can findthis line about2 pages down from the top. Save the file by first pressing Ctrl-O and then Enter.. Exit with Ctrl-X.• Restart the sshd service with the command: service sshd restart
 Or
  • Access Vcenter => Hosts & Clusters -> ESXi Server -> Configuration -> Select'Security Profile' Under software . • Select SSH and start the process

7. Possible causes for Host to get into Alert State are :

1) Ping times out2out
2) Network connectivity is lost3lost
3) Primary storage didn't mount correctly4correctly
4) Heart beat has failed

8.  Failed to deploy Virtual Router : Reasons

1) No capacity in hypervisor - CPU/Memory2Memory
2) No ip address(public) availability3availability
3) No storage space available4available
4) System vm template has not been properly downloaded to primary storagewhile deploying first vm in account

...

1) Move all cent os repos to /oldrepos folder from yum.repos.d2d
2) yum erase qemu*
3) rm -rf /var/cache/yum/x86_64/6/cloud-temp/
4) yum clean all5) yum erase libvirt-client6) yum install libvirt

...

1) mkdir /root/nfssailaja2) mount -t nfs10.102.123.240:/nfs-iso-lib/ /root/nfssailaja/3) mount -o loop /root/nfssailaja/rhel-server-6.2-x86_64-dvd.iso /media/4) Create /etc/yum.repos.d/rhel6.repo with below contents
 rhelname=rhel6baseurl=file:///mediaenabled=1gpgcheck=0

Image Removed

13.  Define the conserve mode which comes with network offering ?

...

15 .KVM host cleanup steps?

1. Unmount all Primary storages2storages
2. Uninstall Agent3Agent
3. Remove cloud-temp :cd /var/cache/yum/x86_64/6Server======================================cloud-temp rhelisoroot@band-cloud32 6Server# rm -rf cloud-temp/root@band-cloud32 6Server#
4.  rm cloud-temp
5.  pwd/var/cache/yum/x86_64/6Serveryum 6Server
6. yum erase qemu-kvmvirsh command : list --all =>this will list all the instances created with tht hypervisordestroy <domain id>remove all linked folder with /mnt

...

1. Destroy all VM's : xe vm-uninstall --multiple --force2force
2. Remove all VLAN's : cd /opt/xensource/bin ; sh cloud-clean-vlan.sh2sh
3. xe vif-unplug uuid=9e70d7f3-6b6e-9dac-36ba-9b421c8ec2dc3. xe vif-destroy uuid=9e70d7f3-6b6e-9dac-36ba-9b421c8ec2dc49b421c8ec2dc
4. xe network-destroy uuid=c03efe07-b963-5b7d-bb5f-a0294f4682fa

17.  How to write into the attached volumes of cloudstack intances ?

1. fdisk /dev/sd*
2. press"n" ->"p" ->"w" to write changes3changes
3. mkfs.ext3 /dev/sd*141
4. mount /dev/sd*1 <targetDir>


...

Refer the documented information @ http://support.citrix.com/article/CTX132008

Image Removed

19. How to deploy CS UserVMs with User-data?

...

20.  How to add Rhel5 repo?

1. mkdir /root/nfssailaja2nfssailaja
2. mount -t nfs10.102.123.240:/nfs-iso-lib/ /root/nfssailaja/
3. mount -o loop /root/nfssailaja/rhel-server-5-x86_64-dvd.iso /media/
4. vi /etc/yum.repos.d/rhel6.repo and add below contents :
 rhelname=rhel5baseurl=file:///media/Serverenabled=1gpgcheck=0

Image Removed

 Note: repomd.xml file is located under Server folder.

...

1. Edit the vm ip in /var/run/cloud/<vm-name>.log file in host and  restart the vm. This should update the security group rules in host.

2. Change VM ipaddress in db(nics table)3. Stop the vm4. Reboot the router5. Start the vm.