==> hyperv-iso: Creating build directory... ==> hyperv-iso: Retrieving ISO ==> hyperv-iso: Trying C:/San/SV65/CentOS/CentOS-8.1.1911-x86_64-boot.iso ==> hyperv-iso: Trying file://C:/San/SV65/CentOS/CentOS-8.1.1911-x86_64-boot.iso?checksum=sha256%3A7fea13202bf2f26989df4175aace8fdc16e1137f7961c33512cbfad844008948 ==> hyperv-iso: file://C:/San/SV65/CentOS/CentOS-8.1.1911-x86_64-boot.iso?checksum=sha256%3A7fea13202bf2f26989df4175aace8fdc16e1137f7961c33512cbfad844008948 => C:\San\SV65\hyper-packer\hyper-packer\packer_cache\90f663ae9e6efa846d32fef93d7a21fac2d5236a.iso ==> hyperv-iso: Starting HTTP server on port 8601 ==> hyperv-iso: Creating switch 'vSwitch' if required... ==> hyperv-iso: switch 'vSwitch' already exists. Will not delete on cleanup... ==> hyperv-iso: Creating virtual machine... ==> hyperv-iso: Enabling Integration Service... ==> hyperv-iso: Setting boot drive to os dvd drive C:\San\SV65\hyper-packer\hyper-packer\packer_cache\90f663ae9e6efa846d32fef93d7a21fac2d5236a.iso ... ==> hyperv-iso: Mounting os dvd drive C:\San\SV65\hyper-packer\hyper-packer\packer_cache\90f663ae9e6efa846d32fef93d7a21fac2d5236a.iso ... ==> hyperv-iso: Skipping mounting Integration Services Setup Disk... ==> hyperv-iso: Mounting secondary DVD images... ==> hyperv-iso: Configuring vlan... ==> hyperv-iso: Determine Host IP for HyperV machine... ==> hyperv-iso: Host IP for the HyperV machine: 169.254.78.116 ==> hyperv-iso: Attempting to connect with vmconnect... ==> hyperv-iso: Starting the virtual machine... ==> hyperv-iso: Waiting 5s for boot... ==> hyperv-iso: Typing the boot command... ==> hyperv-iso: Waiting for SSH to become available...
@ VM End , It stops with dracut-intiqueue timeout - starting timeout scripts Could not boot. /dev/root/ doest not exist Entering emergency mode. ks.cfg are #platform=x86, AMD64, or Intel EM64T #version=DEVEL # Install OS instead of upgrade install # X Window System configuration information xconfig --startxonboot # Keyboard layouts # old format: keyboard us # new format: keyboard --vckeymap=us --xlayouts='us','pl' # Root password rootpw password # Use network installation #url --url="http://mirror.centos.org/centos/7/os/x86_64" # Use cdrom cdrom # System language lang en_US --addsupport=en_GB.UTF-8 # Firewall configuration firewall --disabled # System authorization information auth --useshadow --passalgo=sha512 # Use graphical install # graphical # Use text install text # Run the Setup Agent on first boot firstboot --disable # SELinux configuration selinux --disabled # License agreement eula --agreed # System services services --enabled="chronyd" services --enabled="sshd" services --enabled="NetworkManager" ignoredisk --only-use=sda # Network information network --bootproto=dhcp --device=eth0 --noipv6 --activate # Reboot after installation reboot # System timezone timezone Australia/Sydney --ntpservers =3.centos.pool.ntp.org,0.centos.pool.ntp.org,2.centos.pool.ntp.org,1.centos.pool.ntp.org # System bootloader configuration bootloader --location=mbr --boot-drive=sda # autopart --type=lvm # Clear the Master Boot Record zerombr # Partition clearing information clearpart --all --initlabel # Disk partitioning information part /boot/efi --fstype="vfat" --size=200 part /boot --fstype="ext4" --size=1024 part swap --fstype="swap" --size=16384 part / --fstype="ext4" --grow --size=1 # pre part %pre %end # post part %post systemctl enable sshd # systemctl start sshd systemctl set-default multi-user.target systemctl disable initial-setup-text systemctl disable initial-setup-graphical sed -i 's/__all__ = \["EULAspoke"\]/__all__ = \["LicenseScreen"\]/' /usr/lib/python2.7/site-packages/initial_setup/tui/spokes/eula.py # secure boot files cp -pr /boot/efi/EFI/centos/* /boot/efi/EFI/BOOT/ # delete libvirt systemctl stop libvirtd systemctl disable libvirtd %end %packages @^graphical-server-environment @base @compat-libraries @core @desktop-debugging @development @dial-up @fonts @gnome-desktop @guest-agents @guest-desktop-agents @hardware-monitoring @input-methods @internet-browser @multimedia @network-file-system-client @performance @print-client @security-tools @x11 chrony mc curl wget yum-priorities yum-versionlock yum-utils yum-cron openssh-server openssh-clients openssh %end Please guide thru - why its failing to load the OS Is this something related to harddisk not being created? -- 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/mitchellh/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/ae432d58-fc26-461e-9b78-06e750fa49fc%40googlegroups.com.
