From owner-freebsd-questions@freebsd.org Sun Sep 13 03:53:32 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4C9A13EB79F for ; Sun, 13 Sep 2020 03:53:32 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dreamchaser.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BpwZg2JF3z4t3h for ; Sun, 13 Sep 2020 03:53:30 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.15.2/8.15.2) with ESMTP id 08D3rM80051375 for ; Sat, 12 Sep 2020 21:53:22 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) To: FreeBSD Mailing List Reply-To: freebsd@dreamchaser.org From: Gary Aitken Subject: packer script for ubuntu that works on fbsd virtualbox Message-ID: Date: Sat, 12 Sep 2020 21:49:44 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (nightmare.dreamchaser.org [192.168.151.101]); Sat, 12 Sep 2020 21:53:23 -0600 (MDT) X-Rspamd-Queue-Id: 4BpwZg2JF3z4t3h X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org X-Spamd-Result: default: False [-2.78 / 15.00]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.04)[-1.041]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.48)[-0.480]; DMARC_NA(0.00)[dreamchaser.org]; NEURAL_HAM_MEDIUM(-0.96)[-0.959]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Sep 2020 03:53:32 -0000 I'm having trouble getting packer to produce a ubuntu-18.04.5 that actually works on virtualbox on my 11.3-RELEASE-p6 fbsd system. I can create one using vagrant or from virtualbox itself, but not using packer. I've tried using the packer installed via pkg install (1.6.0), and I've also using a 1.6.1 from source. I thought about trying to build a more recent virtualbox but the patches in the port are tweaking stuff way beyond my abilities. Can anyone post a packer .json file to create a ubuntu vm that works? The VM goes through the initial install process ok, then begins installing updates. After update #14 or so, it crashes and reboots, starting the install process all over. Again and again. Using the virtualbox-ose from pkg install (5.2.44). FWIW, here's the .json file that doesn't work, given the command "packer build ubuntu-18-04.json" { "builders": [ { "boot_command": [ "", "", "", "", "/install/vmlinuz", " auto", " console-setup/ask_detect=false", " console-setup/layoutcode=us", " console-setup/modelcode=pc105", " debconf/frontend=noninteractive", " debian-installer=en_US.UTF-8", " fb=false", " initrd=/install/initrd.gz", " kbd-chooser/method=us", " keyboard-configuration/layout=USA", " keyboard-configuration/variant=USA", " locale=en_US.UTF-8", " netcfg/get_domain=vm", " netcfg/get_hostname=vagrant", " grub-installer/bootdev=/dev/sda", " noapic", " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `preseed_path`}}", " -- ", "" ], "boot_wait": "10s", "disk_size": "{{user `disk_size`}}", "guest_os_type": "Ubuntu_64", "hard_drive_interface": "sata", "headless": "{{ user `headless` }}", "http_directory": "http", "iso_checksum": "{{user `iso_checksum_type`}}:{{user `iso_checksum`}}", "iso_urls": [ "file:///hd2/Downloads/Ubuntu/ubuntu-18.04.5-live-server-amd64.iso", "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}" ], "output_directory": "../../builds/packer-{{user `template`}}-virtualbox", "shutdown_command": "echo 'vagrant' | sudo -S shutdown now", "ssh_password": "vagrant", "ssh_port": 22, "ssh_timeout": "1000s", "ssh_username": "vagrant", "type": "virtualbox-iso", "vboxmanage": [ [ "modifyvm", "{{.Name}}", "--memory", "{{ user `memory` }}" ], [ "modifyvm", "{{.Name}}", "--cpus", "{{ user `cpus` }}" ] ] } ], "variables": { "cpus": "1", "disk_size": "10000", "headless": "", "iso_checksum": "3756b3201007a88da35ee0957fbe6666c495fb3d8ef2e851ed2bd1115dc36446", "iso_checksum_type": "sha256", "iso_name": "ubuntu-18.04.5-live-server-amd64.iso", "memory": "1536", "mirror": "http://releases.ubuntu.com/", "mirror_directory": "18.04.5/", "preseed_path": "preseed.cfg", "template": "ubuntu-18.04.05-live-server-amd64.iso", "version": "TIMESTAMP", "vm_description": "packer ubuntu-18.04.5", "vm_version": "18.04.5" } } Thanks, Gary