official: http://www.slackware.com/
mirror: https://hkg.mirror.rackspace.com/slackware/slackware64-14.2
tuntaposx
wget https://hkg.mirror.rackspace.com/slackware/slackware-iso/slackware64-14.2-iso/slackware64-14.2-install-dvd.iso
Mount
mkdir -p ~/mnt/iso
hdiutil attach -nomount slackware64-14.2-install-dvd.iso
diskutil list
mount_cd9660 /dev/disk2 ~/mnt/iso
cp -r ~/mnt/iso slackware64-14.2
Unmount
umount /dev/disk2
hdiutil detach /dev/disk2
./scripts/download_source.sh
wget https://git.slackbuilds.org/slackbuilds/snapshot/slackbuilds-14.2-20181020.1.tar.gz
qemu-img create -f qcow2 slackware64-14.2.cow2 64G
qemu-system-x86_64 -boot order=d -cdrom slackware64-14.2-install-dvd.iso -hda slackware64-14.2.cow2 -m 1024
setup
qemu-system-x86_64 -m 4096 -boot order=c -hda slackware64-14.2.cow2 -hdb fat:rw:tmp/mnt
qemu-system-x86_64 -name slackware64-14.2 -m 4096 -boot order=c -hda slackware64-14.2.cow2 -hdb fat:rw:tmp/mnt \
-M accel=hvf -vga std \
-netdev user,id=n1,ipv6=off,hostfwd=tcp::2222-:22 \
-device e1000,netdev=n1,mac=52:54:98:76:54:32
ssh -p 2222 root@localhost
(ssh [email protected])
sudo qemu-system-x86_64 -name slackware64-14.2 -m 4096 -boot order=c -hda slackware64-14.2.cow2 -hdb fat:rw:tmp/mnt \
-M accel=hvf -vga std \
-netdev tap,id=mynet0,ifname=tap0,script=no,downscript=no \
-device e1000,netdev=mynet0,mac=52:54:98:76:54:32
sudo ifconfig tap0 10.0.2.3 netmask 255.255.255.0 up
ssh [email protected]
(ssh [email protected])
sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist