<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>8.4. Changing the Default System Offering for System VMs</title><link rel="stylesheet" type="text/css" href="Common_Content/css/default.css" /><link rel="stylesheet" media="print" href="Common_Content/css/print.css" type="text/css" /><meta name="generator" content="publican 2.8" /><meta name="package" content="Apache_CloudStack-Admin_Guide-4.2.0-en-US-1-" /><script type="text/javascript" src="../../../../../toc.js"></script><script type="text/javascript">
              addID('Apache_CloudStack');
              
	      addID('Apache_CloudStack.4.2.0');
              
              addID('Apache_CloudStack.4.2.0.books');
	      addID('Apache_CloudStack.4.2.0.Admin_Guide');
              </script><link rel="home" href="index.html" title="CloudStack Administrator's Guide" /><link rel="up" href="offerings.html" title="Chapter 8. Service Offerings" /><link rel="prev" href="network-rate.html" title="8.3. Network Throttling" /><link rel="next" href="set-up-network-for-users.html" title="Chapter 9. Setting Up Networking for Users" /></head><body class="toc_embeded "><div id="tocdiv" class="toc"><iframe id="tocframe" class="toc" src="../../../../toc.html">This is an iframe, to view it upgrade your browser or enable iframe display.</iframe></div><p id="title"><a class="left" href="http://cloudstack.apache.org"><img src="Common_Content/images/image_left.png" alt="Product Site" /></a><a class="right" href="http://cloudstack.apache.org/docs"><img src="Common_Content/images/image_right.png" alt="Documentation Site" /></a></p><ul class="docnav"><li class="previous"><a accesskey="p" href="network-rate.html"><strong>Prev</strong></a></li><li class="next"><a accesskey="n" href="set-up-network-for-users.html"><strong>Next</strong></a></li></ul><div xml:lang="en-US" class="section" id="sys-offering-sysvm" lang="en-US"><div class="titlepage"><div><div><h2 class="title">8.4. Changing the Default System Offering for System VMs</h2></div></div></div><div class="para">
		You can manually change the system offering for a particular System VM. Additionally, as a CloudStack administrator, you can also change the default system offering used for System VMs.
	</div><div class="orderedlist"><ol><li class="listitem"><div class="para">
				Create a new system offering.
			</div><div class="para">
				For more information, see  <span class="phrase">Creating a New System Service Offering</span>.
			</div></li><li class="listitem"><div class="para">
				Back up the database:
			</div><pre class="programlisting">mysqldump -u root -p cloud | bzip2 &gt; cloud_backup.sql.bz2</pre></li><li class="listitem"><div class="para">
				Open an MySQL prompt:
			</div><pre class="programlisting">mysql -u cloud -p cloud</pre></li><li class="listitem"><div class="para">
				Run the following queries on the cloud database.
			</div><div class="orderedlist"><ol class="loweralpha"><li class="listitem"><div class="para">
						In the disk_offering table, identify the original default offering and the new offering you want to use by default.
					</div><div class="para">
						Take a note of the ID of the new offering.
					</div><pre class="programlisting">select id,name,unique_name,type from disk_offering;</pre></li><li class="listitem"><div class="para">
						For the original default offering, set the value of unique_name to NULL.
					</div><pre class="programlisting"># update disk_offering set unique_name = NULL where id = 10;</pre><div class="para">
						Ensure that you use the correct value for the ID.
					</div></li><li class="listitem"><div class="para">
						For the new offering that you want to use by default, set the value of unique_name as follows:
					</div><div class="para">
						For the default Console Proxy VM (CPVM) offering,set unique_name to 'Cloud.com-ConsoleProxy'. For the default Secondary Storage VM (SSVM) offering, set unique_name to 'Cloud.com-SecondaryStorage'. For example:
					</div><pre class="programlisting">update disk_offering set unique_name = 'Cloud.com-ConsoleProxy' where id = 16;</pre></li></ol></div></li><li class="listitem"><div class="para">
				Restart CloudStack Management Server. Restarting is required because the default offerings are loaded into the memory at startup.
			</div><pre class="programlisting">service cloudstack-management restart</pre></li><li class="listitem"><div class="para">
				Destroy the existing CPVM or SSVM offerings and wait for them to be recreated. The new CPVM or SSVM are configured with the new offering.
			</div></li></ol></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="network-rate.html"><strong>Prev</strong>8.3. Network Throttling</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="set-up-network-for-users.html"><strong>Next</strong>Chapter 9. Setting Up Networking for Users</a></li></ul></body></html>
