Hey guys,
I use the following:
- Packer v1.3.4
- OS: Fedora 29 Workstation (4.20.6-200.fc29.x86_64)
- Virtualization Platform: VMware Workstation 15.0.2 build-10952284
- Editor: Visual Studio version: 1.31.0
My goal is:
- I try to build templates for VMs (mainly Debian, CentOS & Fedora)
The problem:
I recognized that packer can not build a vm when it is executed by Visual Studio as a task.
E.g. while installing Debian, the installation stops right after getting an IP address from DHCP Server and try to retrieve the preseed.cfg. I can see it when I switch console with ALT + F4. Nothing happens.
My tasks.json looks like this:
{
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "validate",
"type": "shell",
"command": "packer",
"args": [
"validate",
"/home/racoon/packer/debian/test.json"
]
},
{
"label": "build",
"type": "shell",
"command": "packer",
"args": [
"build",
"/home/racoon/packer/debian/test.json"
]
}
]
}
When I execute the build command with the same JSON config from the command line everything works fine as expected.
[user@workstation]$ packer build debian-stretch.json
Does anyone have a clue why this behaviour occurs? Help would be much appreciated.