diff options
author | Yuya Kusakabe <yuya.kusakabe@gmail.com> | 2016-03-06 17:23:23 +0900 |
---|---|---|
committer | Yuya Kusakabe <yuya.kusakabe@gmail.com> | 2016-03-06 17:23:23 +0900 |
commit | c3a238ff2000ba4c27c791e66a9a4aaba9576a8f (patch) | |
tree | 9fa68c43a38c119354b26f96330e1c4ad616ca95 /scripts | |
parent | b0fbefc7b96ee0d939cf82aef4e51bfb67bd39c7 (diff) | |
download | vyos-build-c3a238ff2000ba4c27c791e66a9a4aaba9576a8f.tar.gz vyos-build-c3a238ff2000ba4c27c791e66a9a4aaba9576a8f.zip |
Fix qemu image cannot get IP address. (ref T12)
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/packer.json | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/scripts/packer.json b/scripts/packer.json index a390968a..6d487353 100644 --- a/scripts/packer.json +++ b/scripts/packer.json @@ -15,7 +15,7 @@ "shutdown_command": "sudo halt -p", "disk_size": 4096, "format": "raw", - "headless": true, + "headless": false, "accelerator": "tcg", "ssh_host_port_min": 2222, "ssh_host_port_max": 2229, @@ -29,13 +29,9 @@ "boot_wait": "5s", "boot_command": [ - "<enter><wait10><wait10><wait10>", - "<wait10><wait10><wait10>", - "<wait10><wait10><wait10>", - "<wait10><wait10><wait10>", - "<wait10><wait10><wait10>", - "vyos<enter><wait>", - "vyos<enter><wait10>", + "<enter><wait3m>", + "vyos<enter><wait5>", + "vyos<wait><enter><wait10>", "install image<enter><wait5>", "<enter><wait5>", "<enter><wait5>", @@ -44,21 +40,19 @@ "<enter><wait10>", "<enter><wait5>", "<enter><wait5>", - "vyos<enter><wait>", "vyos<enter><wait5>", + "vyos<enter><wait10>", "<enter><wait10><wait10>", "reboot<enter><wait5>", - "Yes<enter><wait10><wait10><wait10>", - "<wait10><wait10><wait10>", - "<wait10><wait10><wait10>", - "<wait10><wait10><wait10>", - "<wait10><wait10><wait10>", - "<wait10><wait10><wait10>", + "Yes<enter><wait3m>", "vyos<enter><wait>", "vyos<enter><wait10>", "configure<enter><wait5>", - "set interface ethernet eth0 address dhcp<enter><wait>", - "set service ssh<enter><wait>", + "set interface ethernet eth0 address dhcp<enter><wait5>", + "set service ssh<enter><wait5>", + "commit<enter><wait5>", + "save<enter><wait5>", + "delete interface ethernet eth0 hw-id<enter><wait5>", "commit<enter><wait5>", "save<enter><wait5>", "exit<enter><wait5>" |