Comments (4)
@Geogboe The SSH issue is a separate problem that can affect Ubuntu 20.04 installs using any method of providing cloud-init config files. The Ubuntu subiquity installer starts an SSH server during the install process. Packer attempts to connect to this server, but is unsuccessful because the server doesn't have access to the user created on the newly installed system. Once the system reboots Packer can successfully log in with the installed user.
Last month there were enough retry attempts for Packer to wait out the install process without exiting early. I think the increase in security updates to install in Sep and Oct (the last step in the install process) increased the install time to a point where more SSH retry attempts are now required.
Back to the issue at hand, I still have not been able to use cd_content
successfully, although for my purposes this isn't so critical as I moved to using http_content
instead (just had to figure out that ip=dhcp
is required in the boot command).
from packer-plugin-virtualbox.
I was also having this issue with Packer 1.7.4, but it seems to be fixed in 1.7.6?
from packer-plugin-virtualbox.
@vrevelas I just repeated the test with 1.7.6 and still get the same behavior.
One note on the original tests, for some reason now I need to increase SSH handshake attempts and SSH timeout to successfully build the image with cd_files
. Not sure what has changed on my end to cause that.
ssh_handshake_attempts = "200"
ssh_timeout = "30m"
from packer-plugin-virtualbox.
@ctberthiaume Strangely, I saw the same issue with the hyper-v builder so it looks like these new plugins may be importing the same bug -- which seem to just be that cd_content
wasn't declared in the interface.
While there seems to be a fix: #35 when I built the plugin from source it still doesn't work for me. So were you able to get it to work just by modifying your ssh values?
from packer-plugin-virtualbox.
Related Issues (20)
- HTTP server is unreachable by default in recent Virtualbox versions HOT 1
- Packer (virtualbox-iso) sets HTTPIP to 10.0.2.2 but serves traffic on 10.0.2.3! HOT 4
- virtualbox-ovf builder is not compatible with Ubuntu 22.04 cloud image mounting cd_files HOT 1
- Packer Option "-Force" does not overwrite old VM
- Error when using .VHD as boot device
- Environment variable LOGNAME or USER does not correspond to effective user id HOT 1
- Exported EFI VM's do not include relevant NVRAM files
- VBoxManage: error: Could not find a controller named 'IDE Controller' HOT 3
- Host OS DE become unresponsive
- Missing support for floppy_content
- BUG: base_mac added to bundled Vagrantfiles is causing reuse of MAC addresses.
- Unattend.xml not used for WS2009 with Packer & VirtualBox HOT 2
- Error unregistering floppy: VBoxManage error: VBoxManage: error: Could not find a controller named 'Floppy Controller'. Not considering this a critical failure; build will continue.
- Please add common arguments documentation to `virtualbox-vm` documentation
- Packer SSH communicator `ssh_port` argument value is ignored HOT 1
- {{.ArtifactId}} is not defined in parallel build
- Building virtualbox-iso within nested virtualization does not type the boot command
- VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee nsISupports
- `packer` hangs for a minute or two when it receives interrupt signal, `code VBOX_E_INVALID_OBJECT_STATE` in debug logs
- Typo in "about" section of the repository
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packer-plugin-virtualbox.