Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
server
virtinstaller
Commits
92118e5e
Commit
92118e5e
authored
Mar 27, 2016
by
Steffen Gebert
Browse files
VM seems not to switch off
parent
44cccd40
Changes
1
Hide whitespace changes
Inline
Side-by-side
virt-install-debian
View file @
92118e5e
...
...
@@ -94,9 +94,16 @@ virt-install \
--extra-args
"auto=true netcfg/get_hostname=
$HOST_NAME
netcfg/hostname=
$HOST_NAME
passwd/root-password=
$PASSWORD
passwd/root-password-again=
$PASSWORD
netcfg/get_ipaddress=
$NET_IPV4_ADDRESS
netcfg/get_netmask=
$NET_IPV4_NETMASK
netcfg/get_gateway=
$NET_IPV4_GATEWAY
console=ttyS0,115200n8 serial"
echo
"Finished with virt-install."
read
-p
"Did the installation finish and the VM shut down? "
-n
1
-r
if
[[
!
$REPLY
=
~ ^[Yy]
$
]]
then
exit
1
fi
echo
"Doing some aftermath..."
# shutdown
virsh
shutdown
$SERVER_NAME
virsh
destroy
$SERVER_NAME
wait_for_shutdown
$SERVER_NAME
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment