Newer
Older
* make it easy to boot KVM VM on localhost.
User don't have to specify storage and config network themselves.
project code name: quickvm
cli: qvm
* Usage
print command to install dependencies, ask user to upgrade kernel maybe.
qvm install-deps
boot a VM with NAT network.
qvm --core 4 --ram 2g --disk 20g
boot a VM using existing tap device.
qvm [--network tap0] ...
choosing base OS image
qvm [--image ubuntu-12.04-x64] ...
// will download this from DFS or re-use local cache, then clone a new disk
image based on it.
qvm [--image /path/to/xxx] ...
// clone root disk from given image.
specify VM name
qvm [--name foo] ...
Note: qvm requires root permission to create new dir/files and define new
domain.
* Configuration
image_service.type = DFS
image_service.url = http://xxx:xxx/
#image_service.type = ceph
#image_service.url = http://xxx:xxx/
image.default = u1204x64
* qvm data directories
- qvm data directories stores disk image and domain xml file.
/data/qvm/images/
/data/qvm/images/cirros-0.3.4-x86_64-disk.img
/data/qvm/instances/
/data/qvm/instances/vm1/disk
/data/qvm/instances/vm1/domain.xml
Auto create these dir in "qvm init" step if they do not exist.