Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
$ qemu-system-x86_64 -m 8G -smp cores=2,threads=2 -hda centos8.img -device e1000,netdev=user.0 -netdev user,id=user.0,hostfwd=tcp::80-:80,hostfwd=tcp::20022-:22 -display none

If you run your virtual machine above, you will be able to connect to your server via ssh by ssh 127.0.0.1 -p 20022, and you can connect to your web server in VM by lynx http://127.0.0.1:8080