Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: feedback from user testing thanks to OutbackDingo

...

Edit conf/agent.properties and add

Code Block
zone=1 
#or actual zone id from management server database table datacenter
host=<ip of management server>
guid=<some guid> #use uuidgen to generate a guidSecondary.1
instance=SecondaryStorage
resource=org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource 
#resource=com.cloud.storage.resource.PremiumSecondaryStorageResource for VMWare
mount.path=<value of $SS_MOUNT>
secondary.storage.vm=false

If the user running these services is not able to write to /var/run/, create an environment.properties file in conf

Code Block
echo "paths.pid=." > conf/environment.properties

Run the secondary storage service:

Code Block

./secstorage.sh

5. Console Proxy Server:

Code Block
 cd /var/cloudstack/console
unzip systemvm.zip

Edit conf/agent.properties and add

Code Block
zone=1 #or
# or actual zone id from management server database table datacenter
host=<ip of management server>
guid=<some other guid> #use uuidgen to generate a guidConsoleProxy.1

If the user running these services is not able to write to /var/run/, create an environment.properties file in conf

Code Block
echo "paths.pid=." > conf/environment.properties

Run the console proxy service:

...

6.
The console proxy service has to be made available at a "public" ip. Tell the management server the value of this ip by adding

...

Restart the management server
6. Open the GUI, create a zone etc, and deploy a VM. you should be able to view the console and log in.zone and add your secondary storage nfs://$NFS_IP/$NFS_EXPORT
7. Disable secondary storage and console proxy vms in the zone:

Code Block

INSERT INTO `data_center_details` (`dc_id`, `name`, `value`) VALUES
	(<zone id>, 'enable.consoleproxy.vm', 'False');
INSERT INTO `data_center_details` (`dc_id`, `name`, `value`) VALUES
	(<zone id), 'enable.secstorage.vm', 'False');

7. Run the console proxy service:

Code Block

cd /var/cloudstack/console
./consoleproxy.sh

Run the secondary storage service:

Code Block

cd /var/cloudstack/secondary
./secstorage.sh