frnmst-archives
/
qvm
Archived
1
0
Fork 0
Browse Source

Fixed a couple of options. Added an example in the readme.

dev 1.0.3
Franco Masotti 2 years ago
parent
commit
ff2a05c7be
  1. 9
      README.md
  2. 3
      qvm

9
README.md

@ -207,6 +207,15 @@ and on the client side:
$ ./qvm --attach --remote --vnc
At this point you should see your virtual machine running in a TigerVNC window.
Once the installation is complete you can poweroff the machine and then run:
$ ./qvm --run --vnc
on the server, and
$ ./qvm --attach --remote --vn
on the client.
## Automatic remote startup

3
qvm

@ -97,6 +97,7 @@ run()
# No spaces between the parameters of each option.
qemu-system-x86_64 \
-m "${MEMORY}" \
-cpu host \
-enable-kvm \
${enable_vnc} \
-device e1000,netdev=user.0 \
@ -106,7 +107,7 @@ hostfwd=tcp::"${HOST_PORT_2}"-:"${GUEST_PORT_2}",\
hostfwd=tcp::"${SSH_HOST_PORT}"-:"${SSH_GUEST_PORT}" \
-virtfs local,path="${SHARED_DATA_PATH}",security_model=passthrough,mount_tag="${MOUNT_TAG}" \
-smp ${NUMBER_OF_CORES} \
-soundhw ac97 \
-device AC97 \
-display "${display}" \
-drive file="${vhd}" &
}