作者gR7P4zXH (tpn7gpdx)
看板PCReDive
標題[聊天] 使用QEMU快速建立帳號
時間Sat Apr 25 00:22:05 2020
最近快速辦小號的方法,感謝小精靈技術指導
取名
https://imgur.com/2xzOhiL.jpg
刷首抽
https://imgur.com/Q5aXQ8G.jpg
50連抽
https://imgur.com/277X78U.jpg
https://youtu.be/gKnF8BlYEc8
90連抽,有一台最後崩掉
https://youtu.be/dmK7eI4LdPw
騙瑪那
https://imgur.com/sOs24Hs.jpg
優點是幾乎不斷線,唯一的瓶頸是CPU太慢
配備
-----------------------
Intel i7 6700
64G RAM
250W PSU
1TB HDD
步驟
----------------------
1. 首先利用上次的教學在linux上開啟遊戲
2. 清除遊戲資料,重新創好一個帳號後退出
3. guestmount映像檔後刪除某個資料夾
(該資料夾位置可透過diff創立帳號前後的image得知)
4. 以此image做為base image,使用下列指令創立多個映像檔
qemu-img create -f qcow2 -F qcow2 -b base-img.qcow2 new-img.qcow2
*相關原理可參閱
http://events17.linuxfoundation.org/sites/events/files/
slides/2015-qcow2-expanded.pdf
5. 參考下列指令啟動VM
快速創立多台VM
----------------------
#!/bin/bash
X=(-1 0 0 0 320 320 320 640 640 640)
Y=(-1 0 320 640 0 320 640 0 320 640)
for i in `seq 1 1 9`;do
qemu-system-x86_64 -enable-kvm \
-m 4096 -smp 3,sockets=1,cores=3,threads=1 -cpu host \
-drive file=$i.qcow2,format=qcow2,if=none,id=drive-virtio-disk0 \
-device
virtio-blk-pci,scsi=off,bus=pci.0,addr=0x8,drive=drive-virtio-disk0,id=virtio-di
\
-soundhw ac97 -machine vmport=off -usb -device usb-tablet,bus=usb-bus.0 \
-netdev user,id=mynet,hostfwd=tcp::$((5555+$i))-:5555 -device
virtio-net-pci,netdev=mynet \
-device virtio-vga,virgl=on -display gtk,gl=on \
-name 'ffff$i'
ID=`xdotool search --onlyvisible --name ffff$i`
xdotool windowsize $ID 320 240
xdotool windowmove $ID ${X[$i]} ${Y[$i]}
done
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.112.0.1 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/PCReDive/M.1587745327.A.B3D.html
推 smart0eddie: OAO04/25 00:23
OvO
推 AMDTin: 沒有程式底的人根本看不懂怎麼弄,直接自己多開都比較快XD04/25 00:26
推 edge50ae: 嗯嗯 我也是這樣想04/25 00:36
推 tliu257: 所以為什麼要那麼累04/25 00:39
沒有朋友
推 NEKOWORKi: 推推 雖然看不懂04/25 01:03
推 Kurumi2000: 謝謝教學我已經創30個帳號了04/25 01:06
推 luckypa777: 真步服:653 533 46304/25 01:07
→ luckypa777: 464 926 97604/25 01:07
→ luckypa777: 408 529 99204/25 01:08
→ luckypa777: 明天有空按確認 要的自己加04/25 01:09
推 frosagen2018: 嗯嗯,跟我想得一樣04/25 01:30
※ 編輯: gR7P4zXH (140.112.0.1 臺灣), 04/25/2020 03:12:19
※ 編輯: gR7P4zXH (114.137.23.192 臺灣), 04/25/2020 03:12:54
推 Davinais: 竟然用 qemu www 04/25 03:18
推 Snymhgy: 先推假裝自己看得懂 04/25 03:48
※ 編輯: gR7P4zXH (111.248.30.155 臺灣), 04/25/2020 04:42:17
推 leo761212: 感謝分享 04/25 07:38
推 KMSNY: 換AMD會不會比較順(?) 04/25 08:23
大佬請
推 Incredible99: 嗯嗯嗯嗯 跟我架設的差不多 給推 04/25 08:49
推 guaz: @luckypa777 已申請好友,麻煩你了~ 04/25 10:10
推 shin30: 嗯嗯 先推裝作看得懂 04/25 10:47
推 Sha1377: 趕快推不然人家以為我看不懂 04/25 14:05
推 Acetoxy: 恩恩 剛我想的差不多 04/25 14:38
※ 編輯: gR7P4zXH (42.73.232.70 臺灣), 04/25/2020 14:45:56
推 b940315: 太硬核了 04/25 15:35
推 b940315: 這跟模擬器多開一樣嗎? 04/25 15:37
QEMU is a free and open-source emulator that performs hardware
virtualization.
※ 編輯: gR7P4zXH (36.228.53.160 臺灣), 04/25/2020 15:59:36
推 NEKOWORKi: 感謝好友 04/25 16:58
推 jeeyi345: 虛擬機… 04/26 00:49
推 bitcch: 萬能的QEMU 04/26 03:13
推 xkiller1900: 雖然是遊戲,但可不是鬧著玩的 04/26 03:54