Hot plugging RAM into a Debian VM (for shits and giggles). It actually works.
for a in `ls /sys/devices/system/memory/memory*/state`;
do
echo "online" > $a;
done 2>/dev/null;
grep offline /sys/devices/system/memory/memory*/state
Written by timd on Jan. 5, 2014 .
Hot plugging RAM into a Debian VM (for shits and giggles). It actually works.
for a in `ls /sys/devices/system/memory/memory*/state`;
do
echo "online" > $a;
done 2>/dev/null;
grep offline /sys/devices/system/memory/memory*/state
Tags : blog