Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
boards:n100 [2024/01/17 14:43] – [Miscellaneous] darronboards:n100 [2024/08/10 14:53] (current) – [Hardware] darron
Line 7: Line 7:
 N100 Mini PCs are very cheap and very capable devices. N100 Mini PCs are very cheap and very capable devices.
  
-Here is the procedure used to dual boot debian 12 on a Mini and prepare +Here is the procedure used to dual boot debian 12 on a Mini PC and prepare 
-it to run VMs under KVM.+it to run VMs under [[:tools:kvm|KVM]].
  
 ===Hardware=== ===Hardware===
Line 16: Line 16:
 [[https://www.amazon.co.uk/Windows-3750H-TRIGKEY-S3-Graphics/dp/B09MFKZFYG/|TRIGKEY N100 CPU 16GB RAM 512GB SSD WIFI 6 BT 5.2 WIN 11 PRO]] [[https://www.amazon.co.uk/Windows-3750H-TRIGKEY-S3-Graphics/dp/B09MFKZFYG/|TRIGKEY N100 CPU 16GB RAM 512GB SSD WIFI 6 BT 5.2 WIN 11 PRO]]
  
-After discount this device should cost £169.+After discount this device should cost £169 (Jan 2024) or £154 (Aug 2024).
  
 External SSD is an ADATA 240 GB for VMs. Any external USB3 drive will do. External SSD is an ADATA 240 GB for VMs. Any external USB3 drive will do.
Line 101: Line 101:
  
 <code> <code>
-apt install hdparm apt-file net-tools cpu-checker lshw wireless-tools rfkill+apt install hdparm apt-file net-tools cpu-checker lshw wireless-tools rfkill bridge-utils cgroupfs-mount conntrack iptables
 </code> </code>
  
Line 185: Line 185:
 systemctl mask wpa_supplicant.service systemctl mask wpa_supplicant.service
 systemctl mask rtkit-daemon systemctl mask rtkit-daemon
 +</code>
 +
 +<code>
 +update-rc.d pulseaudio-enable-autospawn disable
 +update-rc.d sddm disable
 +update-rc.d saned disable
 +</code>
 +
 +<code>
 +apt remove --purge gvfs-backends gvfs
 </code> </code>
  
 As user As user
 +
 +<code>
 +systemctl --user stop pulseaudio.socket
 +systemctl --user stop pulseaudio.service
 +</code>
  
 <code> <code>
Line 210: Line 225:
 This file system will be used for VMs. This file system will be used for VMs.
  
 +===Network===
  
 +In this example the host is 192.168.0.130 and VMs or containers will be bridged to the same network.
  
 +Save /etc/network/interfaces
  
 +<code>
 +cp interfaces interfaces.dist
 +</code>
  
 +Replace /etc/network/interfaces
 +
 +<code>
 +auto lo
 +iface lo inet loopback
 +
 +auto enp1s0
 +iface enp1s0 inet manual
 +
 +auto br0
 +iface br0 inet static
 + bridge_ports enp1s0
 + address 192.168.0.130
 + netmask 255.255.255.0
 + gateway 192.168.0.1
 +</code>
 +
 +Reboot to take effect.
 +
 +<code>
 +ifconfig -a
 +br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
 +        inet 192.168.0.130  netmask 255.255.255.0  broadcast 192.168.0.255
 +        inet6 fe80::4c3a:bff:feab:4fb0  prefixlen 64  scopeid 0x20<link>
 +        ether 4e:3a:0b:ab:4f:b0  txqueuelen 1000  (Ethernet)
 +        RX packets 114  bytes 11804 (11.5 KiB)
 +        RX errors 0  dropped 0  overruns 0  frame 0
 +        TX packets 93  bytes 14326 (13.9 KiB)
 +        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 +
 +enp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
 +        ether 7c:83:34:be:e3:5e  txqueuelen 1000  (Ethernet)
 +        RX packets 114  bytes 13400 (13.0 KiB)
 +        RX errors 0  dropped 0  overruns 0  frame 0
 +        TX packets 93  bytes 14326 (13.9 KiB)
 +        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 +
 +lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
 +        inet 127.0.0.1  netmask 255.0.0.0
 +        inet6 ::1  prefixlen 128  scopeid 0x10<host>
 +        loop  txqueuelen 1000  (Local Loopback)
 +        RX packets 0  bytes 0 (0.0 B)
 +        RX errors 0  dropped 0  overruns 0  frame 0
 +        TX packets 0  bytes 0 (0.0 B)
 +        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 +
 +</code>
 +
 +Permissions
 +
 +<code>
 +mkdir -p /etc/qemu
 +echo "allow all" > /etc/qemu/bridge.conf
 +chmod u+s /usr/lib/qemu/qemu-bridge-helper
 +</code>
 +
 +Example lease on bridge
 +
 +<code>
 +lease 192.168.0.248 {
 +  starts 4 2024/01/18 18:11:39;
 +  ends 5 2024/01/19 18:11:39;
 +  cltt 4 2024/01/18 18:11:39;
 +  binding state active;
 +  next binding state free;
 +  rewind binding state free;
 +  hardware ethernet 52:54:00:e6:ab:09;
 +  uid "\001RT\000\346\253\011";
 +  set vendor-class-identifier = "d-i";
 +}
 +</code>