Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
boards:n100 [2024/01/17 14:37] – [N100 Mini PC] darron | boards: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 P 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 [[: |
===Hardware=== | ===Hardware=== | ||
Line 16: | Line 16: | ||
[[https:// | [[https:// | ||
- | 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 96: | Line 96: | ||
su root | su root | ||
export PATH=/ | export PATH=/ | ||
+ | </ | ||
+ | |||
+ | ==Tools== | ||
+ | |||
+ | < | ||
+ | apt install hdparm apt-file net-tools cpu-checker lshw wireless-tools rfkill bridge-utils cgroupfs-mount conntrack iptables | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | apt-file update | ||
</ | </ | ||
Line 175: | Line 185: | ||
systemctl mask wpa_supplicant.service | systemctl mask wpa_supplicant.service | ||
systemctl mask rtkit-daemon | systemctl mask rtkit-daemon | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | update-rc.d pulseaudio-enable-autospawn disable | ||
+ | update-rc.d sddm disable | ||
+ | update-rc.d saned disable | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | apt remove --purge gvfs-backends gvfs | ||
</ | </ | ||
As user | As user | ||
+ | |||
+ | < | ||
+ | systemctl --user stop pulseaudio.socket | ||
+ | systemctl --user stop pulseaudio.service | ||
+ | </ | ||
< | < | ||
Line 200: | Line 225: | ||
This file system will be used for VMs. | This file system will be used for VMs. | ||
- | ===Tools=== | + | ===Network=== |
- | < | + | 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/ |
< | < | ||
- | apt-file update | + | cp interfaces interfaces.dist |
</ | </ | ||
- | ===KVM=== | + | Replace / |
- | [[https:// | + | < |
+ | 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 | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Reboot to take effect. | ||
< | < | ||
- | apt install | + | ifconfig |
- | </code> | + | br0: flags=4163<UP, |
+ | inet 192.168.0.130 | ||
+ | inet6 fe80:: | ||
+ | ether 4e: | ||
+ | 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< | ||
+ | ether 7c: | ||
+ | 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< |
+ | inet 127.0.0.1 | ||
+ | inet6 ::1 prefixlen 128 scopeid 0x10< | ||
+ | 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. | + | </ |
+ | |||
+ | Permissions | ||
< | < | ||
- | adduser `login' | + | mkdir -p /etc/qemu |
- | adduser `login' | + | echo "allow all" > / |
+ | chmod u+s / | ||
</ | </ | ||
- | ==Test== | + | |
+ | Example lease on bridge | ||
< | < | ||
- | setenv DISPLAY excellent:0.0 | + | lease 192.168.0.248 { |
- | virt-manager | + | |
+ | 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: | ||
+ | uid " | ||
+ | set vendor-class-identifier = " | ||
+ | } | ||
</ | </ | ||
- |