This repository has been archived on 2021-09-04. You can view files and clone it, but cannot push or open issues or pull requests.
qvm/README.md

48 lines
1.2 KiB
Markdown
Raw Normal View History

2016-10-08 17:56:17 +02:00
# qvm
2016-10-08 17:56:17 +02:00
Trivial management of 64 bit virtual machines with qemu.
2016-10-08 18:30:05 +02:00
2016-10-10 18:31:13 +02:00
## What this script will do
2016-10-08 18:30:05 +02:00
It can handle:
2016-10-08 18:30:05 +02:00
- Virtual hard disk creation, backup and deletion.
- Basic network management: two ports are exposed to the host
machine (but you can add as many as you want). One of these
two ports is SSH (so admin gets simpler).
- Shared directory between host and guest.
- Last, but not least, running the virtual machine with all
these options.
2016-10-10 18:31:13 +02:00
## Setup information and usage
2016-10-08 18:30:05 +02:00
- You need a 64 bit machine.
- Modify `configvmrc` based on your needs.
Variables are self-explanatory and I have kept mine
as an example.
2016-11-06 22:14:36 +01:00
# pacman -S qemu
$ . ./configvmrc
$ mkdir -p "$shared_data_path"
$ ./qvm -i
$ ./qvm -b
2016-10-10 17:34:01 +02:00
- Now you can run the virtual machine:
2016-11-06 22:14:36 +01:00
$ ./qvm -r
2016-10-08 18:30:05 +02:00
- On your guest machine add the following in `/etc/fstab`:
2016-11-06 22:14:36 +01:00
host_share /home/vm/shared 9p trans=virtio,version=9p2000.L 0 0
2016-10-08 18:30:05 +02:00
This will enable the shared directory automatically (no mount commands of any
sort).
2016-10-10 17:34:01 +02:00
- You can connect to your virtual machine via SSH, using the default values:
2016-11-06 22:14:36 +01:00
ssh -p 2222 <guest_user_name>@127.0.0.1
2016-10-10 18:31:13 +02:00
## License
2016-10-08 18:30:05 +02:00
CC0.