Skip to content

- ["private_network", { type: "dhcp" }] #54

@styk-tv

Description

@styk-tv

Have anyone tried to create a dhcp network? I can't seem to find the right combination for yaml. I either need VmBoxManage parametrized version below (hostonly lines and dhcpserver lines, 4 in total) or simple type=dhcp like in the subject as this works directly from Vagrantfile

        customize:
          - [modifyvm, !ruby/sym id, '--memory', 2048]
          - [modifyvm, !ruby/sym id, 'hostonlyif','create']
          - [modifyvm, !ruby/sym id, 'hostonlyif','ipconfig','vboxnet0','--ip','192.168.56.1']
          - [modifyvm, !ruby/sym id, 'dhcpserver','add','--ifname','vboxnet0','--ip','192.168.56.1','--netmask','255.255.255.0','--lowerip','192.168.56.100','--upperip','192.168.56.200']
          - [modifyvm, !ruby/sym id, 'dhcpserver','modify','--ifname','vboxnet0','--enable']
          - [createhd, '--filename', 'disks/pgmaster-2g', '--size', 2048]
          - [storageattach, !ruby/sym id, '--storagectl', 'SATA Controller', '--port', '1', '--type', 'hdd', '--nonrotational', 'on', '--discard', 'on', '--medium', 'disks/pgmaster-2g.vdi']

any hints would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions