[Bug 2022856] Re: Ubuntu 22.04 Server Autoinstall Traceback crash trying to install packages
Michael Hudson-Doyle
2022856 at bugs.launchpad.net
Tue Jun 13 04:54:17 UTC 2023
Oh right, there are no disks other than the install ISO in your VM.
Where are you expecting the install to go? If you want to overwrite the
install media you can put "toram" on the kernel command line, which will
copy the ISO to ram and make the install media available. This does
require a fairly large amount of RAM though.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to subiquity in Ubuntu.
https://bugs.launchpad.net/bugs/2022856
Title:
Ubuntu 22.04 Server Autoinstall Traceback crash trying to install
packages
Status in subiquity package in Ubuntu:
New
Bug description:
Autoinstall installation crashes with this error when using a local
iso cidata containing the user-data on arm64. This exact same user-
data and package selection works on Ubuntu 22.04 installations on
x86_64 with user-data served over http:
Title: install failed crashed with CalledProcessError
Traceback:
Traceback (most recent call last):
File "/snap/subiquity/4381/lib/python3.8/site-packages/subiquity/server/controllers/install.py", line 290, in install
await self.postinstall(context=context)
File "/snap/subiquity/4381/lib/python3.8/site-packages/subiquitycore/context.py", line 148, in decorated_async
return await meth(self, **kw)
File "/snap/subiquity/4381/lib/python3.8/site-packages/subiquity/server/controllers/install.py", line 313, in postinstall
await self.install_package(context=context, package=package)
File "/snap/subiquity/4381/lib/python3.8/site-packages/subiquitycore/context.py", line 148, in decorated_async
return await meth(self, **kw)
File "/snap/subiquity/4381/lib/python3.8/site-packages/subiquity/server/controllers/install.py", line 340, in install_package
await run_curtin_command(
File "/snap/subiquity/4381/lib/python3.8/site-packages/subiquity/server/curtin.py", line 203, in run_curtin_command
return await cmd.wait()
File "/snap/subiquity/4381/lib/python3.8/site-packages/subiquity/server/curtin.py", line 116, in wait
result = await self.runner.wait(self.proc)
File "/snap/subiquity/4381/lib/python3.8/site-packages/subiquity/server/runner.py", line 84, in wait
raise subprocess.CalledProcessError(proc.returncode, proc.args)
subprocess.CalledProcessError: Command '['systemd-run', '--wait', '--same-dir', '--property', 'SyslogIdentifier=subiquity_log.2256', '--setenv', 'PATH=/snap/subiquity/4381/bin:/snap/subiquity/4381/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/subiquity/4381/bin:/snap/subiquity/4381/sbin', '--setenv', 'PYTHONPATH=:/snap/subiquity/4381/lib/python3.8/site-packages', '--setenv', 'PYTHON=/snap/subiquity/4381/usr/bin/python3.8', '--setenv', 'SNAP=/snap/subiquity/4381', '--', '/snap/subiquity/4381/usr/bin/python3.8', '-m', 'curtin', '--showtrace', '-vvv', '--set', 'json:reporting={"subiquity": {"type": "journald", "identifier": "curtin_event.2256.11"}}', 'system-install', '-t', '/target', '--', 'net-tools']' returned non-zero exit status 100.
Reproduce this easily on any new Mac M1/M2 from my public GitHub repo
where the autoinstall user data and Hashicorp Packer config is for
100% reproducibility:
git clone https://github.com/HariSekhon/Packer-templates pack
cd pack
make install tart # Tart is only for new ARM processor Macs M1/M2
make ubuntu-tart # downloads the arm64 ISO, creates the cidata iso image with autoinstall user-data, and then run packer to do the build
On an x86_64 system with VirtualBox installed you can see the same
exact autoinstall user-data served over http working to install on the
same version of Ubuntu 22.04:
git clone https://github.com/HariSekhon/Packer-templates pack
cd pack
make install vbox # run only on Mac to install packer and virtualbox, otherwise install them yourself
make ubuntu-vbox
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/2022856/+subscriptions
More information about the foundations-bugs
mailing list