-
Notifications
You must be signed in to change notification settings - Fork 32
ArchLinux
Fangrui Song edited this page Feb 25, 2023
·
6 revisions
pacman -S iwd # wireless
pacman -S xorg-server xorg-font-utils xorg-fonts-type1systemctl enable systemd-networkd systemd-resolved
systemctl start systemd-networkd systemd-resolved
ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.confhttps://wiki.qemu.org/Documentation/9psetup
qemu-system-x86_64 -enable-kvm -m 4096 -smp 2 -bios /usr/share/ovmf/OVMF.fd -drive file=~/Images/archlinux-x86_64.qcow2,if=virtio -net nic,model=virtio -net nic,model=virtio -nic user,hostfwd=tcp::2222-:22 -fsdev local,id=Dev,path=$HOME/Dev,security_model=none -device virtio-9p-pci,fsdev=Dev,mount_tag=Dev
# guest
sudo mount -t 9p Dev /home/ray/Dev -o trans=virtio,msize=$[5*1024*1024]sambda (lower performance)
qemu-system-x86_64 -enable-kvm -m 4096 -smp 2 -bios /usr/share/ovmf/OVMF.fd -drive file=~/Images/archlinux-x86_64.qcow2,if=virtio -net nic,model=virtio -nic user,id=nic0,hostfwd=tcp::2222-:22,smb=$HOME/Dev
# guest
sudo pacman -S samba
sudo mount -t cifs //10.0.2.4/qemu ~/Dev