Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
880ae2db
Commit
880ae2db
authored
Jan 31, 2023
by
Antoine Kaufmann
Committed by
Antoine Kaufmann
Feb 13, 2023
Browse files
images/base: upgrade to ubuntu 22.04
parent
1f6c32e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
13 deletions
+27
-13
images/base.pkr.hcl
images/base.pkr.hcl
+2
-2
images/scripts/install-base.sh
images/scripts/install-base.sh
+25
-11
No files found.
images/base.pkr.hcl
View file @
880ae2db
...
@@ -31,8 +31,8 @@ source "qemu" "autogenerated_1" {
...
@@ -31,8 +31,8 @@ source "qemu" "autogenerated_1" {
disk_compression = "${var.compressed}"
disk_compression = "${var.compressed}"
headless = true
headless = true
http_directory = "scripts"
http_directory = "scripts"
iso_checksum = "file:https://cloud-images.ubuntu.com/minimal/releases/
bionic
/release/SHA256SUMS"
iso_checksum = "file:https://cloud-images.ubuntu.com/minimal/releases/
jammy
/release/SHA256SUMS"
iso_url = "https://cloud-images.ubuntu.com/minimal/releases/
bionic
/release/ubuntu-
18
.04-minimal-cloudimg-amd64.img"
iso_url = "https://cloud-images.ubuntu.com/minimal/releases/
jammy
/release/ubuntu-
22
.04-minimal-cloudimg-amd64.img"
memory = "${var.memory}"
memory = "${var.memory}"
net_device = "virtio-net"
net_device = "virtio-net"
output_directory = "output-${var.outname}"
output_directory = "output-${var.outname}"
...
...
images/scripts/install-base.sh
View file @
880ae2db
...
@@ -2,22 +2,36 @@
...
@@ -2,22 +2,36 @@
set
-eux
set
-eux
pushd
/tmp/input
mv
guestinit.sh /home/ubuntu/guestinit.sh
mv
bzImage /boot/vmlinuz-5.15.93
mv
config-5.15.93 /boot/
mv
m5 /sbin/m5
update-grub
tar
xf kheaders.tar.bz2
-C
/
popd
rm
-rf
/tmp/input
apt-get update
apt-get update
apt-get
-y
install
\
apt-get
-y
install
\
iperf
\
iperf
\
iputils-ping
\
iputils-ping
\
lbzip2
\
netperf
\
netperf
\
netcat
\
netcat
\
ethtool
\
ethtool
\
tcpdump
\
tcpdump
\
pciutils
pciutils
\
busybox
\
numactl
\
sysbench
pushd
/tmp/input
mv
guestinit.sh /home/ubuntu/guestinit.sh
mv
bzImage /boot/vmlinuz-5.15.93
mv
config-5.15.93 /boot/
mv
m5 /sbin/m5
update-grub
# with stupid ubuntu22 /lib is a symlink at which point just untaring to / will
# replace that symlink with a directory, so first extract and then carefully
# copy... -.-
mkdir
kheaders
cd
kheaders
tar
xf /tmp/input/kheaders.tar.bz2
cp
-a
lib/modules/
*
/lib/modules/
cp
-a
usr/
*
/usr/
# cleanup
popd
rm
-rf
/tmp/input
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