Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
boards:n100 [2024/01/17 13:24]
darron
boards:n100 [2024/01/18 20:35]
darron [Miscellaneous]
Line 1: Line 1:
 ====N100 Mini PC==== ====N100 Mini PC====
 +
 +<wrap right>
 +{{boards:n100:box.jpg?200}}
 +</wrap>
  
 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 P and setup +Here is the procedure used to dual boot debian 12 on a Mini P and prepare 
-KVM.+it to run VMs under [[:tools:kvm|KVM]].
  
 ===Hardware=== ===Hardware===
  
-{{boards:n100:box.jpg?200}}+
  
 [[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]]
Line 92: Line 96:
 su root su root
 export PATH=/bin:/sbin export PATH=/bin:/sbin
 +</code>
 +
 +==Tools==
 +
 +<code>
 +apt install hdparm apt-file net-tools cpu-checker lshw wireless-tools rfkill bridge-utils cgroupfs-mount conntrack iptables
 +</code>
 +
 +<code>
 +apt-file update
 </code> </code>
  
Line 171: 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 196: Line 225:
 This file system will be used for VMs. This file system will be used for VMs.
  
-===Tools===+===Network===
  
-<code> +In this example the host is 192.168.0.130 and VMs or containers will be bridged to the same network. 
-apt install hdparm apt-file net-tools cpu-checker lshw wireless-tools rfkill + 
-</code>+Save /etc/network/interfaces
  
 <code> <code>
-apt-file update+cp interfaces interfaces.dist
 </code> </code>
  
-===KVM===+Replace /etc/network/interfaces
  
-[[https://wiki.debian.org/KVM|Debian KVM]]+<code> 
 +auto lo 
 +iface lo inet loopback
  
-== Setup==+auto enp1s0 
 +iface enp1s0 inet manual
  
-Some of these tools will require an X11 server which can be VxSrv on Windows, for example.+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> <code>
-apt install --no-install-recommends qemu-system libvirt-clients libvirt-daemon-system virt-viewer virtinst virt-manager +ifconfig -a 
-</code>+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
  
-==User==+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
  
-Add login to group libvirt.+</code> 
 + 
 +Permissions
  
 <code> <code>
-adduser `login' libvirt +mkdir -p /etc/qemu 
-adduser `login' kvm+echo "allow all" > /etc/qemu/bridge.conf 
 +chmod u+s /usr/lib/qemu/qemu-bridge-helper
 </code> </code>
-==Test==+ 
 +Example lease on bridge
  
 <code> <code>
-setenv DISPLAY excellent:0.0 +lease 192.168.0.248 { 
-virt-manager+  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> </code>
-