I looked at your json code. I have never tried making a vagrant box for kvm with packer. Also the terminal connection is something for which I am not familiar. Good luck.
On Fri, Feb 4, 2022 at 3:00 PM Edward Cheadle <[email protected]> wrote: > Sorry this is for my 21.10 install but I think putting the linux line > before the autoinstall is something to try. > > My boot command for 20.04 > "boot_command": ["<enter><enter><f6><esc><wait> ", "autoinstall > ds=nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/", "<wait><enter>"] > > On Friday, February 4, 2022 at 2:57:49 PM UTC-7 Edward Cheadle wrote: > >> THis is my boot command. You might try putting the line linux >> /casper/vmlinux quiet<wait> before the autoinstall line. >> boot_command = [ >> " <wait>", >> " <wait>", >> " <wait>", >> " <wait>", >> " <wait>", >> "c", >> "<wait>", >> "set gfxpayload=keep", >> "<enter><wait>", >> "linux /casper/vmlinuz quiet<wait>", >> " autoinstall<wait>", >> " ds=nocloud-net<wait>", >> "\\;s=http://<wait>", >> "{{.HTTPIP}}<wait>", >> ":{{.HTTPPort}}/<wait>", >> " ---", >> "<enter><wait>", >> "initrd /casper/initrd<wait>", >> "<enter><wait>", >> "boot<enter><wait>"] >> >> >> On Tuesday, January 25, 2022 at 3:20:33 AM UTC-7 [email protected] >> wrote: >> >>> Hi, I'm, trying this ubuntu.json >>> >>> { >>> "variables": { >>> "serial": "" >>> }, >>> >>> "builders": [ >>> { >>> "accelerator": "kvm", >>> "boot_command": [ >>> "", >>> "append console=ttyS0,115200n8 autoinstall >>> ds=no-cloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/user-data", >>> "initrd=casper/initrd ", >>> "kernel=casper/vmlinuz ", >>> "" >>> ], >>> "boot_wait": "10s", >>> "disk_interface": "virtio", >>> "disk_size": "50G", >>> "disk_cache": "none", >>> "disk_compression": true, >>> "headless": "true", >>> "use_default_display": false, >>> "format": "qcow2", >>> "http_directory": "./http", >>> "iso_checksum": >>> "sha256:f8e3086f3cea0fb3fefb29937ab5ed9d19e767079633960ccb50e76153effc98", >>> "iso_urls": [ >>> "/Scripts/ubuntu-20.04.3-live-server-amd64.iso" >>> ], >>> "name": "ubuntu-packer1", >>> "net_device": "virtio-net", >>> "output_directory": "output/ubuntu", >>> "shutdown_command": "shutdown -P now", >>> "ssh_handshake_attempts": "20", >>> "ssh_password": "ubuntu", >>> "ssh_timeout": "20m", >>> "ssh_username": "ubuntu", >>> "type": "qemu", >>> "cpus": "1", >>> "memory": "1024" >>> } >>> ], >>> "provisioners": [ >>> { >>> "inline": [ >>> "ls /" >>> ], >>> "type": "shell" >>> } >>> ] >>> } >>> >>> I'm connected to build host trough ssh without X, so no graphics. I get >>> this into packer.log: >>> 2022/01/25 11:28:02 packer-builder-qemu plugin: [INFO] Attempting SSH >>> connection to 127.0.0.1:3299... >>> 2022/01/25 11:28:02 packer-builder-qemu plugin: [DEBUG] reconnecting to >>> TCP connection for SSH >>> 2022/01/25 11:28:02 packer-builder-qemu plugin: [DEBUG] handshaking with >>> SSH >>> >>> But there's no ssh available, ssh does not respond from cmd line to >>> 127.0.0.1 -p 3299 either. Kickstart file was generated from manual install >>> I did earlier. I'm newbie with Packer so what I doing wrong here? >>> >>> Br, Jouni >>> >> -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/hashicorp/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to a topic in the > Google Groups "Packer" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/packer-tool/5LXVHM_9PcI/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/5f1747b0-ba0d-4df5-840c-78c7da414c4bn%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/5f1747b0-ba0d-4df5-840c-78c7da414c4bn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/hashicorp/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAJFQ7OswUYpx4McvUcR_Tz9PdiQ7bYc6xE1jtF_%3DWdVvbE%2BwKA%40mail.gmail.com.
