Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
neil committed Dec 4, 2023
1 parent 2bc7539 commit 04c27bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 25 deletions.
34 changes: 10 additions & 24 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,20 @@ if ! $vmsh clearVM $osname; then
echo "vm does not exists"
fi

if [ ! -e "$osname.qcow2.xz" ]; then
echo "Downloading qcow2 from: $VM_VHD_LINK"
wget -q -O $osname.qcow2.xz "$VM_VHD_LINK"
$vmsh createVM $VM_ISO_LINK $osname $ostype $sshport

fi

if [ ! -e "$osname.qcow2" ]; then
xz -d -T 0 --verbose "$osname.qcow2.xz"
fi
sleep 2


$vmsh createVMFromVHD $osname $ostype $sshport
$vmsh processOpts $osname "$opts"




while $vmsh isRunning $osname; do
sleep 5
done


$vmsh startVM $osname
Expand All @@ -100,23 +98,11 @@ sleep 2


waitForText "$VM_LOGIN_TAG"
sleep 2

sleep 3

$vmsh enter $osname
sleep 1

$vmsh enter $osname
sleep 1

$vmsh enter $osname
sleep 1

$vmsh enter $osname
sleep 1

inputKeys "string root ; enter ; enter"
inputKeys "string root; enter"

sleep 2


if [ ! -e ~/.ssh/id_rsa ] ; then
Expand All @@ -135,7 +121,7 @@ echo "" >>enablessh.local


echo >>enablessh.local
echo >>enablessh.local
echo "chmod 600 ~/.ssh/authorized_keys">>enablessh.local
echo "exit">>enablessh.local
echo >>enablessh.local

Expand Down
2 changes: 1 addition & 1 deletion conf/omnios-r151048.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


VM_VHD_LINK="https://downloads.omnios.org/media/stable/omnios-r151048.cloud.vmdk"
VM_ISO_LINK="https://downloads.omnios.org/media/stable/omnios-r151048.iso"
VM_OS_NAME="omnios"
VM_OS_TYPE="omnios"
VM_SSH_PORT=2222
Expand Down

0 comments on commit 04c27bc

Please sign in to comment.