Mercurial > hg > Members > anatofuz > ie-virsh
changeset 48:f65b97c93170
first create qcow2
author | AnaTofuZ <anatofuz@gmail.com> |
---|---|
date | Sun, 22 Nov 2020 18:34:03 +0900 |
parents | 9a7ceb63efbc |
children | 871a98179dfe |
files | src/command.rs |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/command.rs Sun Nov 22 18:30:16 2020 +0900 +++ b/src/command.rs Sun Nov 22 18:34:03 2020 +0900 @@ -4,7 +4,7 @@ use std::io; -const RENTAL_DIR: &str = "/ie-ryukyu/kvm/images/rental/"; +const RENTAL_DIR: &str = "/ie-ryukyu/kvm/images/rental"; pub fn list(user_name: &str) { let (ldump_msg, vm_list_strs) = virsh::get_vm_list(user_name); @@ -54,8 +54,8 @@ return; } }; + virsh::generate_qemu_from_template(RENTAL_DIR, &vm_name, &backing_path); virsh::command_require_vm_name(&xml_path, "define"); - virsh::generate_qemu_from_template(RENTAL_DIR, &vm_name, &backing_path); } pub fn start(user_name: &str, vm_name: &str) {