Install Archlinux arm64 VM on Asahi with Virt-manager

libvirtd is used to manage VMs libvirt and dnsmasq are installed on the host virt-manager is running from Apple MBP M2 laptop ON LAPTOP 1brew install virt-manager add connection File > Add connection > tick “Connect to remote host over SSH” fill “Username” and “Hostname” tick “Autoconnect” ON HOST install for uefi support 1## from https://archlinux.org/packages/extra/any/edk2-aarch64/ 2wget https://mirror.sunred.org/archlinux/extra/os/x86_64/edk2-aarch64-202308-3-any.pkg.tar.zst 3pacman -U edk2-aarch64-202308-3-any.pkg.tar.zst ARCHLINUX ARM64 ISO download archboot arm64 iso INSTALLATION install with grub uefi ...

2023-11-15 · G2G

Increase VM ZVOL for TrueNAS

… to resize Debian VM Logical Volume Resize Linux VM’s LLVM Virtual Disk on a ZVOL for TrueNAS Increase Zvol via UI increase ZFS disk size in TrueNAS UI Storage tab > edit your zvol > modify “Size for this zvol” field value > Save Resize disk resize Debian VM disk 1reboot 2# fdisk mode 3apt install gdisk -y 4cfdisk /dev/sda # extends /dev/sda5 partition > write > quit 5# parted mode 6parted /dev/sda # print > resizepart 2 100% (extended) > resizepart 5 100% (logical) > quit 7# for both 8pvresize /dev/sda5 9pvs 10lvs 11lvextend --resizefs serv0-vg/root /dev/sda5 source

2022-10-06 · G2G

Fix libvirt network create error with vagrant

when vagrant up `create': Call to virD omainCreateWithFlags failed: Network not found: no network with matching name 'vagrant-libvirt' (Libvirt::Error) fix it 1cat<<EOF> /var/tmp/vagrant-libvirt.xml 2<!-- 3WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE 4OVERWRITTEN AND LOST. Changes to this xml configuration should be made using: 5 virsh net-edit default 6or other application using the libvirt API. 7--> 8 9<network> 10 <name>vagrant-libvirt</name> 11 <uuid>17f365b0-4da6-4f19-91b6-c4dde30d6ac0</uuid> 12 <forward mode='nat'/> 13 <bridge name='virbr1' stp='on' delay='0'/> 14 <mac address='52:54:00:0f:4f:10'/> 15 <domain name='kvm' localOnly='yes'/> 16 <ip address='192.168.122.1' netmask='255.255.255.0'> 17 <dhcp> 18 <range start='192.168.122.2' end='192.168.122.254'/> 19 </dhcp> 20 </ip> 21</network> 22EOF 23virsh net-define /var/tmp/vagrant-libvirt.xml 24virsh net-start vagrant-libvirt 25virsh net-autostart vagrant-libvirt 26virsh net-list 27brctl show create libvirt network

2022-09-11 · G2G

Dockerize persistent Firefox with Java 7 support

… for old Raritan PDU/KVM devices Web access Build your Docker image from Dockerfile create your Dockerfile Dockerfile 1FROM i386/debian:jessie 2RUN apt-get update && apt-get install -y firefox-esr icedtea-plugin icedtea-netx openjdk-7-jre openjdk-7-jre-headless tzdata-java 3RUN useradd -ms /bin/bash firefox 4ENV MOZ_FORCE_DISABLE_E10S=1 5USER firefox 6WORKDIR /home/firefox 7CMD tail -f /dev/null tail -f /dev/null force your Docker container to be persistent even if you’ve closed your Firefox session build it 1docker build -t firefox . # make it great again 2docker images --filter reference=firefox # check your docker image information Run your Docker container pop Firefox 1docker run -it --rm -e DISPLAY=${DISPLAY} -v /tmp/.X11-unix:/tmp/.X11-unix -v $HOME/Downloads:/home/firefox/Downloads firefox firefox # run it with sharing Downloads directory add it to your .bashrc to simplify Firefox docker access .bashrc 1function ffjava7(){ 2 CONTAINER_NAME=firefox 3 xhost +; 4 docker container inspect ${CONTAINER_NAME} > /dev/null 2>&1 ; [ $? -eq 0 ] \ 5 && docker start firefox \ 6 || docker run -d --name ${CONTAINER_NAME} -e DISPLAY=${DISPLAY} -v /tmp/.X11-unix:/tmp/.X11-unix -v $HOME/Downloads:/home/firefox/Downloads firefox firefox 7} Sources how to build your Docker container https://blog.yadutaf.fr/2017/09/10/running-a-graphical-app-in-a-docker-container-on-a-remote-server/ https://www.sicpers.info/2020/10/running-linux-gui-apps-under-macos-using-docker/ [Mac OSX] https://github.com/jlesage/docker-firefox https://github.com/findepi/docker.firefox-silverlight-pipelight [Silverlight support] fix Firefox tab persistently crashes on some sites https://support.mozilla.org/bm/questions/1266719

2020-10-15 · G2G

Detect virtualization technology used by the OS

detect virtualization technology 1dmidecode -s system-product-name || systemd-detect-virt source

2019-11-17 · G2G