15 Commits

Author SHA1 Message Date
anthony
0f340c199f align system VM partitions with 4k 2011-06-14 11:47:07 -07:00
Sheng Yang
29c54c42e0 Fix hostname in the generated vm template
The ssh_host_*_key.pub in /etc/sshd contained generator's own hostname. This
patch fixes it.
2011-06-14 11:29:12 -07:00
Sheng Yang
b1ced0e478 Fix buildsystem.sh script
And the script can only be used with the machine installed grub-legacy(e.g. grub
0.97) rather than grub2(grub-pc).
2011-06-13 19:37:21 -07:00
Sheng Yang
62ac899091 bug 9154: Initial check in for enabling redundant virtual router
This patch enable redundant virtual routers.

1. To enable this feature, db need to be updated using follow SQL by now(we
would get a UI way later):

UPDATE network_offerings SET redundant_router=1 WHERE guest_type="Virtual" AND
system_only=0;

2. System would try to start up two routers at different hosts. But if there is
only one host in the zone, system would start up two routers on it.

3. The failover part is using keepalived, and connection tracking part is using
conntrackd. There would be one master router and one backup router. The status
of router(master or backup) can be query from the database table domain_router
now. Management server would update the status every 30s by default.

4. The routers for the same zone would use same external NIC(same ip and mac).
The script used for fail-over would ensure only one external NIC present in the
network at any time.

5. Currently management server don't got the ability to stop one of router is
both of them reported as master. The feature is in the todo list.

After two routers start up, disconnect anyone of them, the guest network
shouldn't be affected, and established connection(http, ssh, etc.) should still
works. The fail-over on gateway part should be 3~4 seconds.

Currently the patch works with KVM. Would deal with vmware and XenServer soon.
2011-06-07 14:47:45 -07:00
Sheng Yang
ae1753c997 Revert "Add error check for buildsystemvm.sh"
This reverts commit a2c7e6f5bf5985d47f9ef25d1569931f28ff4258.
2011-05-17 14:16:25 -07:00
Sheng Yang
7bdaa210a1 Add error check for buildsystemvm.sh
set -e can stop the script if something went wrong. set -u can stop on
uninitialized variable reference.
2011-05-16 13:57:05 -07:00
Frank
92155522f2 Add license header to files 2011-04-14 11:23:14 -07:00
Chiradeep Vittal
d7aa4ef4e2 Add some useful packages to systemvm 2011-02-02 12:56:46 -08:00
Chiradeep Vittal
9f9b838c41 Enable daily log of system stats on systemvms
Fully automate building of systemvm -- no more required to type y to accept sun jre license
install of xenstore utils was broken, fix
2011-01-13 12:36:38 -08:00
Chiradeep Vittal
adfc5c06a6 Use global for release 2011-01-07 15:55:17 -08:00
Chiradeep Vittal
6ca2f67f8c add vpn scripts into signature determination, make release a variable 2010-11-05 14:28:36 -07:00
Chiradeep Vittal
5732e42fd1 fix typo, add tdb tool to read ppp database 2010-11-03 14:06:23 -07:00
Chiradeep Vittal
1e0eb04442 Add VPN apis, some systemvm changes for vpn 2010-11-01 10:27:49 -07:00
Chiradeep Vittal
580412fd2a add vpn, monit vmware tools, xenserver tools, refactor 2010-10-21 11:41:18 -07:00
edison
e67e7d0e7b remove patches/systemv, and mv tools/systemvm into patches 2010-10-05 20:41:39 -07:00