so if you are like me and want to put a docker on your local subnet then all you need to do is:
docker network create -d macvlan --subnet=<subnet> --gateway=<gateway> -o parent=<ethernet name> <docker network name>
docker network create -d macvlan --subnet=192.168.0.0/24 --gateway=192.168.0.1 -o parent=ens18 Local_Network
more info can be found here
so today i found out that you can use screen to connect to a serial port which is awesome.
screen /dev/device baud-rate
more info here
so in april i setup librenms, unfortunatly there was a problem with the proxmox snmp script but recently they fixed it. however i was still having problems running the snmp script as it needed to be run as root.
so after some googling i managed to find out that i need to edit the sudoers file on the proxmox server and add the following line.
snmp ALL=(ALL) NOPASSWD:ALL
this gives snmp root access to be able to run the script.
so i wanted to add some more processing power to a vm i am running without restarting it but didnt know how.
a quick google search shows that vmware has created a script to do this for you, but i wanted to know how to do it my self.
so a quick check of the script and it does the following.
lists the idle cpu’s by running the following commmand
ls /sys/devices/system/cpu/ | grep cpu | grep -v idle
in my case this showed cpu2, cpu3
then activating those cpu’s by running
echo 1 > /sys/devices/system/cpu/cpu2
echo 1 > /sys/devices/system/cpu/cpu3
a quick run of htop shows all 4 processes now working correctly without restarting.
don’t you just love linux 🙂