Skip to content

Commit 9753cc3

Browse files
committed
Merge branch '4.11'
CLOUDSTACK-10341: VR minor fixes to systemvmtemplate (#2468) CLOUDSTACK-10340: Add setter to hypervisorType in VMInstanceVO (#2504) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 parents 1c99fd7 + c8dcc64 commit 9753cc3

4 files changed

Lines changed: 13 additions & 2 deletions

File tree

engine/schema/src/main/java/com/cloud/vm/VMInstanceVO.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@ public HypervisorType getHypervisorType() {
267267
return hypervisorType;
268268
}
269269

270+
public void setHypervisorType(HypervisorType hypervisorType) {
271+
this.hypervisorType = hypervisorType;
272+
}
273+
270274
@Override
271275
public Date getCreated() {
272276
return created;

systemvm/debian/etc/rsyslog.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ news.notice -/var/log/news/news.notice
9292
#
9393
# Emergencies are sent to everybody logged in.
9494
#
95-
*.emerg *
95+
*.emerg :omusrmsg:*
9696

9797
#
9898
# I like to have messages displayed on the console, but only on a virtual

systemvm/debian/etc/systemd/system/cloud-postinit.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Unit]
22
Description=CloudStack post-patching init script
33
After=cloud-early-config.service network.target local-fs.target
4-
Before=ssh.service
4+
Before=ssh.service apache2.service
55
Requires=network.service
66

77
[Install]

tools/appliance/systemvmtemplate/scripts/finalize.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ function configure_misc() {
2424
echo "cloud:`openssl rand -base64 32`" | chpasswd
2525
}
2626

27+
function configure_rundisk_size() {
28+
# Debian's default is 10% of total RAM. This is too low when total is 256M.
29+
# See https://manpages.debian.org/stretch/initscripts/tmpfs.5.en.html
30+
echo "tmpfs /run tmpfs nodev,nosuid,size=20%,mode=755 0 0" >> /etc/fstab
31+
}
32+
2733
function configure_sudoers() {
2834
cat >/etc/sudoers <<END
2935
Defaults env_reset
@@ -63,6 +69,7 @@ function zero_disk() {
6369

6470
function finalize() {
6571
configure_misc
72+
configure_rundisk_size
6673
configure_sudoers
6774
cleanup_final
6875
sync

0 commit comments

Comments
 (0)