...
|
...
|
@@ -389,7 +389,7 @@ if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then
|
389
|
389
|
# Check for kvm (hardware based virtualization). If unable to load kvm,
|
390
|
390
|
# set the libvirt type to qemu. Note: many systems come with hardware
|
391
|
391
|
# virtualization disabled in BIOS.
|
392
|
|
- if [[ "$LIBVIRT_TYPE" -eq "kvm" ]]; then
|
|
392
|
+ if [[ "$LIBVIRT_TYPE" == "kvm" ]]; then
|
393
|
393
|
sudo modprobe kvm || true
|
394
|
394
|
if [ ! -e /dev/kvm ]; then
|
395
|
395
|
echo "WARNING: Switching to QEMU"
|
...
|
...
|
@@ -400,7 +400,7 @@ if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then
|
400
|
400
|
# Install and configure **LXC** if specified. LXC is another approach to
|
401
|
401
|
# splitting a system into many smaller parts. LXC uses cgroups and chroot
|
402
|
402
|
# to simulate multiple systems.
|
403
|
|
- if [[ "$LIBVIRT_TYPE" -eq "lxc" ]]; then
|
|
403
|
+ if [[ "$LIBVIRT_TYPE" == "lxc" ]]; then
|
404
|
404
|
sudo apt-get install lxc -y
|
405
|
405
|
# lxc requires cgroups to be configured on /cgroup
|
406
|
406
|
sudo mkdir -p /cgroup
|