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

Added possibility to use any compatible form of network block filesystem. Updated readme.

dev
Franco Masotti 5 years ago
parent
commit
ee323ab421
  1. 22
      README.md
  2. 9
      qvm

22
README.md

@ -12,8 +12,8 @@ It can handle:
two ports is SSH (so admin gets simpler).
- Connection via SSH.
- Shared directory between host and guest.
- Last, but not least, running the virtual machine with all
these options.
- Last, but not least, running the virtual machine with a
combination of the previous options.
## Setup information and usage
@ -88,6 +88,24 @@ At this point you should see your virtual machine running in a TigerVNC window.
Note: the VNC traffic goes through SSH TCP forwarding, so it is encrypted.
## Interesting applications
If you happen to use a form of network filesystem, such as
[GlusterFS](http://docs.gluster.org/en/latest/),
you can keep the machine hard disk off the host and put it on another computer.
There might be a some form of lag depending on the hardware, protocol and
network connections.
An example with GlusterFS might be:
vhd_name="gluster+tcp://server-address/gluster-volume/"$img_name"."$vhd_type""
This will work provided that you install the QEMU GlusterFS block module
package (if it's not already present in the QEMU package itself).
You should consult the QEMU's manual to learn about all possible compatible
network filesystems.
## Help
Usage: qvm [OPTION]

9
qvm

@ -141,8 +141,7 @@ run()
export QEMU_AUDIO_DRV=alsa
if [ -f "$vhd" ]; then
qemu-system-x86_64 \
qemu-system-x86_64 \
-m "$vm_memory" \
-enable-kvm \
$enable_vnc \
@ -154,11 +153,7 @@ hostfwd=tcp::"$ssh_host_port"-:"$ssh_guest_port" \
security_model=none,mount_tag="$mount_tag" \
-soundhw ac97 \
-display "$display" \
"$vhd" &
else
printf "VHD file \""$vhd"\" is missing.\n"
exit 1
fi
-drive file="$vhd" &
}
remote()