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
f74a4169
Commit
f74a4169
authored
May 21, 2019
by
Stephan Großberndt
Browse files
[TASK] RAM_MB, DISK_SPACE_GB, CPUS and DEBIAN_RELEASE as variables
parent
ff09922a
Changes
1
Hide whitespace changes
Inline
Side-by-side
virt-install-debian
View file @
f74a4169
...
...
@@ -96,18 +96,23 @@ wait_for_shutdown()
#--network bridge=br0 \
#--network bridge=br-ext,mac=${NET_IPV4_MAC},model=virtio \
RAM_MB
=
16384
DISK_SPACE_GB
=
30
CPUS
=
6
DEBIAN_RELEASE
=
stretch
virt-install
\
--connect
qemu:///system
\
--name
${
SERVER_NAME
}
\
--ram
2048
\
--disk
pool
=
vgpool,size
=
20
,bus
=
ide
\
--vcpus
2
\
--ram
${
RAM_MB
}
\
--disk
pool
=
vgpool,size
=
${
DISK_SPACE_GB
}
,bus
=
ide
\
--vcpus
${
CPUS
}
\
--os-type
linux
\
--os-variant
generic
\
--network
bridge
=
br-int,model
=
virtio
\
--graphics
none
\
--console
pty,target_type
=
serial
\
--location
'
http://deb.debian.org/debian/dists/
jessie
/main/installer-amd64/
'
\
--location
"
http://deb.debian.org/debian/dists/
${
DEBIAN_RELEASE
}
/main/installer-amd64/
"
\
--initrd-inject
"/usr/local/virtinstaller/preseed.cfg"
\
--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"
...
...
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