diff options
-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 |