Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
ubuntu-14.04
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MUNI-KYPO-IMAGES
ubuntu-14.04
Commits
7ca078e4
Commit
7ca078e4
authored
3 years ago
by
Zdeněk Vydra
Committed by
Jan Vykopal
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
QEMU Resolve "The second network interface is not configured by cloud-init"
parent
7fa1a57c
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
QEMU Resolve "The second network interface is not configured by cloud-init"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+8
-3
8 additions, 3 deletions
CHANGELOG.md
playbook.yml
+0
-4
0 additions, 4 deletions
playbook.yml
scripts/fixes.sh
+24
-7
24 additions, 7 deletions
scripts/fixes.sh
with
32 additions
and
14 deletions
CHANGELOG.md
+
8
−
3
View file @
7ca078e4
# Changelog
## [qemu-0.1.0], [vbox-0.1.0] - 2020-11-8
## [qemu-0.1.0] - 2021-05-05
### Fixed
-
Disabled
`root`
login
-
[
Issue #1
](
https://gitlab.ics.muni.cz/muni-kypo-images/ubuntu-14.04/-/issues/1
)
of network interfaces not being configured
## [qemu-0.1.0] - 2021-01-07
### Added
-
First version
[
qemu-0.1.0
]:
https://gitlab.ics.muni.cz/muni-kypo-images/
kali-2019.
4/-/tree/qemu-0.1.0
[
vbox
-0.
1
.0
]:
https://gitlab.ics.muni.cz/muni-kypo-images/
kali-2019.
4/-/tree/
vbox
-0.
1
.0
[
qemu-0.1.0
]:
https://gitlab.ics.muni.cz/muni-kypo-images/
ubuntu-14.0
4/-/tree/qemu-0.1.0
[
qemu
-0.
2
.0
]:
https://gitlab.ics.muni.cz/muni-kypo-images/
ubuntu-14.0
4/-/tree/
qemu
-0.
2
.0
This diff is collapsed.
Click to expand it.
playbook.yml
+
0
−
4
View file @
7ca078e4
...
...
@@ -16,7 +16,3 @@
debug
:
msg
:
"
Hello
World"
# - name: Check that chrony is running
# assert:
# that:
# - ansible_facts.services.chrony.state == "running"
This diff is collapsed.
Click to expand it.
scripts/fixes.sh
+
24
−
7
View file @
7ca078e4
...
...
@@ -4,14 +4,31 @@
sudo sed
-i
"s/^GRUB_TIMEOUT=[0-9]*/GRUB_TIMEOUT=0/"
/etc/default/grub
sudo
update-grub
# disable
ssh
root login using password
s
ed
-i
's/#\?PermitRootLogin.*/PermitRootLogin without-password/g'
/etc/ssh/sshd_config
# disable root login using password
s
udo
passwd
-l
root
# install resolvconf
apt-get
-y
install
resolvconf
# install and configure chrony
#apt-get -y install chrony
#sed -i 's/pool .*/pool 0.pool.ntp.org iburst/' /etc/chrony/chrony.conf
#systemctl enable chrony
#systemctl start chrony
# fix #1
cat
>
/root/multinic.sh
<<
'
EOF
'
#!/bin/bash
hname=
$(
hostname
)
cat /etc/hosts | grep
$hname
>> /dev/null
if [
$?
-ne 0 ];then
sudo bash -c "echo '127.0.0.1
$hname
' >> /etc/hosts"
fi
netfile=
$(
cat
/etc/network/interfaces
)
for interface in
$(
ls
-1
/sys/class/net
)
;do
echo
$netfile
| grep
$interface
>> /dev/null
if [
$?
-ne 0 ];then
sudo bash -c "echo 'auto
$interface
' >> /etc/network/interfaces"
sudo bash -c "echo 'iface
$interface
inet dhcp' >> /etc/network/interfaces"
sudo ifup
$interface
fi
done
EOF
echo
'@reboot /root/multinic.sh'
>>
/var/spool/cron/crontabs/root
chmod
+x /root/multinic.sh
chown
root:crontab /var/spool/cron/crontabs/root
chmod
600 /var/spool/cron/crontabs/root
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment