diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-11 13:21:32 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-11 13:21:32 -0300 |
commit | 607a5b91bc887f90655b7f08e76804ea41b4befd (patch) | |
tree | 269f051bd9cf479a8ff2f19596f55b1411ab65a7 | |
parent | 1de3bbfce9c50961e7739d54c6b9a0b95fe700f2 (diff) | |
download | kvmx-607a5b91bc887f90655b7f08e76804ea41b4befd.tar.gz kvmx-607a5b91bc887f90655b7f08e76804ea41b4befd.tar.bz2 |
Install: use kvmx_up
-rwxr-xr-x | kvmx | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -463,6 +463,12 @@ function kvmx_up { fi fi + # Check if on install mode + if [ "$install" == "1" ]; then + kvmx_status + return + fi + if [ "$ssh_support" == "y" ]; then let ssh_attempts="0" echo -n "Waiting for machine to boot..." @@ -1643,7 +1649,13 @@ function kvmx_install { qemu-img create -f $format $image $size fi - kvm -m $memory -net nic,model=virtio -net user -drive file=$image -cdrom $media + # Basic install command + #kvm -m $memory -net nic,model=virtio -net user -drive file=$image -cdrom $media + + # Install using kvmx_up + install=1 + cdrom=$media + kvmx_up } # Serial console |