Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: configuration of additional disks #95

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

LIV2
Copy link
Contributor

@LIV2 LIV2 commented Sep 19, 2022

Additional disks would always get configured as scsi devices regardless of disk_adapter_type.

This change ensures that additional disks are always configured on the same bus as the primary disk.

Closes #91

Additional disks would always get configured as scsi devices regardless of disk_adapter_type
This change ensures that additional disks are always configured on the same bus as the primary disk
This resolves hashicorp#91
@LIV2 LIV2 requested a review from a team as a code owner September 19, 2022 11:32
@tenthirtyam tenthirtyam changed the title Fix configuration of additional disk fix: Configuration of additional disks Sep 28, 2022
@dkierner-dh
Copy link

dkierner-dh commented Oct 4, 2022

@tenthirtyam I would add the bug label instead of the enhancement label as it does not work as intended:

- `disk_additional_size` ([]uint) - The size(s) of any additional
hard disks for the VM in megabytes. If this is not specified then the VM
will only contain a primary hard disk. The builder uses expandable, not
fixed-size virtual hard disks, so the actual file representing the disk will
not use the full size unless it is full.
- `disk_adapter_type` (string) - The adapter type of the VMware virtual disk to create. This option is
for advanced usage, modify only if you know what you're doing. Some of
the options you can specify are `ide`, `sata`, `nvme` or `scsi` (which
uses the "lsilogic" scsi interface by default). If you specify another
option, Packer will assume that you're specifying a `scsi` interface of
that specified type. For more information, please consult [Virtual Disk
Manager User's Guide](http://www.vmware.com/pdf/VirtualDiskManager.pdf)
for desktop VMware clients. For ESXi, refer to the proper ESXi
documentation.

@tenthirtyam tenthirtyam changed the title fix: Configuration of additional disks fix: configuration of additional disks Oct 4, 2022
@dkierner-dh
Copy link

dkierner-dh commented Nov 7, 2022

@tenthirtyam @nywilken Hi, is there anything in particular that blocks @LIV2's pull request #95 from being merged?
In contrast to #96 this is merely a bug fix and I would like to have that bug fixed with version 1.0.8.

@tenthirtyam
Copy link
Collaborator

Both will need thoughtful reviews and testing.

I'm happy to assist the maintainers with both once I'm back from sabbatical.

Ryan Johnson
Senior Staff Solutions Architect | Product Engineering @ VMware, Inc.

@tenthirtyam tenthirtyam self-requested a review November 22, 2022 04:54
@tenthirtyam tenthirtyam added this to the v1.0.8 milestone Dec 4, 2022
@tenthirtyam tenthirtyam removed this from the v1.0.8 milestone Aug 22, 2023
@nywilken nywilken self-assigned this Sep 12, 2023
@nywilken
Copy link
Member

Please give me time to pull this down and give it a test.

Copy link
Member

@nywilken nywilken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LIV2 thanks again for opening up this change. I apologies as I wasn't able to prioritize this review sooner. I reviewed and validated the fix. I am able to get VMware Fusion to build as expected with the disk using the SATA bus.

==> vmware-iso.debian: Deleting unnecessary VMware files...
    vmware-iso.debian: Deleting: builds/debian_aarch64/packer-debian.plist
    vmware-iso.debian: Deleting: builds/debian_aarch64/packer-debian.scoreboard
    vmware-iso.debian: Deleting: builds/debian_aarch64/vmware.log
==> vmware-iso.debian: Compacting all attached virtual disks...
    vmware-iso.debian: Compacting virtual disk 1
    vmware-iso.debian: Compacting virtual disk 2
    vmware-iso.debian: Compacting virtual disk 3
    vmware-iso.debian: Compacting virtual disk 4
==> vmware-iso.debian: Cleaning VMX prior to finishing up...
    vmware-iso.debian: Detaching ISO from CD-ROM device sata0:1...
    vmware-iso.debian: Disabling VNC server...
==> vmware-iso.debian: Skipping export of virtual machine...
Build 'vmware-iso.debian' finished after 5 minutes 42 seconds.

==> Wait completed after 5 minutes 42 seconds

==> Builds finished. The artifacts of successful builds are:
--> vmware-iso.debian: VM files in directory: builds/debian_aarch64

@nywilken nywilken merged commit 4555b42 into hashicorp:main Sep 22, 2023
@hashicorp hashicorp locked and limited conversation to collaborators Jun 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Additional Disks Do Not Get Configured and Mounted Correctly When Using a Non-SCSI Disk Adapter Type
4 participants