Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
server
virtinstaller
Commits
930b36af
Commit
930b36af
authored
Mar 09, 2016
by
Server Team
Browse files
Merge branch 'feature/bridged'
parents
de43dce0
170c311b
Changes
2
Hide whitespace changes
Inline
Side-by-side
preseed.cfg
View file @
930b36af
...
...
@@ -38,7 +38,7 @@ d-i keyboard-configuration/xkb-keymap select de
# If you prefer to configure the network manually, uncomment this line and
# the static network configuration below.
#
d-i netcfg/disable_autoconfig boolean true
d-i netcfg/disable_autoconfig boolean true
# If you want the preconfiguration file to work on systems both with and
# without a dhcp server, uncomment these lines and the static network
...
...
@@ -52,7 +52,7 @@ d-i keyboard-configuration/xkb-keymap select de
#d-i netcfg/get_ipaddress string 46.4.110.202
#d-i netcfg/get_netmask string 255.255.255.248
#d-i netcfg/get_gateway string 46.4.110.201
#
d-i netcfg/get_nameservers string 8.8.8.8
d-i netcfg/get_nameservers string 8.8.8.8
#d-i netcfg/confirm_static boolean true
#
# IPv6 example
...
...
@@ -65,13 +65,13 @@ d-i keyboard-configuration/xkb-keymap select de
# Any hostname and domain names assigned from dhcp take precedence over
# values set here. However, setting the values still prevents the questions
# from being shown, even if values come from dhcp.
d-i netcfg/get_hostname string template
#
d-i netcfg/get_hostname string template
d-i netcfg/get_domain string typo3.org
# If you want to force a hostname, regardless of what either the DHCP
# server returns or what the reverse DNS entry for the IP is, uncomment
# and adjust the following line.
d-i netcfg/hostname string template
#
d-i netcfg/hostname string template
# Disable that annoying WEP key dialog.
d-i netcfg/wireless_wep string
...
...
@@ -113,8 +113,8 @@ d-i mirror/http/proxy string
d-i passwd/make-user boolean false
# Root password, either in clear text
d-i passwd/root-password password vduenvlgquie
d-i passwd/root-password-again password vduenvlgquie
#
d-i passwd/root-password password vduenvlgquie
#
d-i passwd/root-password-again password vduenvlgquie
# or encrypted using a crypt(3) hash.
#d-i passwd/root-password-crypted password [crypt(3) hash]
...
...
@@ -351,7 +351,7 @@ d-i grub-installer/with_other_os boolean true
# Due notably to potential USB sticks, the location of the MBR can not be
# determined safely in general, so this needs to be specified:
#
d-i grub-installer/bootdev string /dev/sda
d-i grub-installer/bootdev string /dev/sda
# To install to the first device (assuming it is not a USB stick):
#d-i grub-installer/bootdev string default
...
...
virt-install-debian
View file @
930b36af
#!/bin/bash
SERVER_NAME
=
"dummy"
SERVER_NAME
=
"srv168"
PASSWORD
=
$(
echo
xxxx
)
NET_IPV4_MAC
=
"00:50:56:00:59:07"
NET_IPV4_ADDRESS
=
"46.4.110.203"
NET_IPV4_GATEWAY
=
"46.4.110.201"
NET_IPV4_BROADCAST
=
"46.4.110.207"
NET_IPV4_NETMASK
=
"255.255.255.248"
HOST_NAME
=
$SERVER_NAME
######################################
# no customisation below this point
#######################################
# note on preseeding
# file must be injected in the root/intrd filesysetm
...
...
@@ -21,9 +32,9 @@ virt-install \
--vcpus
2
\
--os-type
linux
\
--os-variant
generic
\
--network
network
=
default
\
--network
bridge
=
br0,mac
=
$NET_IPV4_MAC
\
--graphics
none
\
--console
pty,target_type
=
serial
\
--location
'http://ftp.de.debian.org/debian/dists/jessie/main/installer-amd64/'
\
--initrd-inject
'/usr/local/bin/preseed.cfg'
\
--extra-args
'
auto=true console=ttyS0,115200n8 serial
'
--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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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