Packer Windows with Parallels Desktop: "Cannot connect Hard Drive 1"

71 views
Skip to first unread message

Dimitri Tavan

unread,
Mar 3, 2018, 3:03:26 PM3/3/18
to Packer
Hello, I'm trying to build a box for Parallels Desktop, it builds the box fine but when I try to use it it gives me the same error every time : "Cannot connect Hard Drive 1"
Here's the template I used to make it : https://github.com/joefitzgerald/packer-windows

I don't know how to resolve this problem.
I have Packer 1.21, Parallels Desktop 13.3.0-43321 and I'm on High Sierra 10.13.3

Thanks in advance

Alvaro Miranda Aguilera

unread,
Mar 5, 2018, 3:16:53 AM3/5/18
to packe...@googlegroups.com
Hello

i don't have parallels to try what happen, so I will suggest check the VM have the right number of disk and its trying to boot for the proper disk

ie disk 0 vs disk 1

other than that, i will suggest a different repo until you can find one that works and you can start updating it to get it work as you require



--
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 packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/4874854f-a1d2-42a3-9c29-3973bdab8cd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Dimitri Tavan

unread,
Mar 5, 2018, 6:10:30 AM3/5/18
to Packer
I tried on different repo and the error is still the same, even with the boxcutter one ( https://github.com/boxcutter/windows.git )

Rickard von Essen

unread,
Mar 5, 2018, 8:44:27 AM3/5/18
to packe...@googlegroups.com
Exactly which template do you try to build from "packer-windows"?

On 5 March 2018 at 12:10, Dimitri Tavan <dimitr...@gmail.com> wrote:
I tried on different repo and the error is still the same, even with the boxcutter one ( https://github.com/boxcutter/windows.git )

--
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 packer-tool+unsubscribe@googlegroups.com.

Dimitri Tavan

unread,
Mar 5, 2018, 11:17:33 AM3/5/18
to Packer
I tried to build windows_10.json, It works with Virtualbox but not Parallels.


Le lundi 5 mars 2018 14:44:27 UTC+1, Rickard von Essen a écrit :
Exactly which template do you try to build from "packer-windows"?
On 5 March 2018 at 12:10, Dimitri Tavan <dimitr...@gmail.com> wrote:
I tried on different repo and the error is still the same, even with the boxcutter one ( https://github.com/boxcutter/windows.git )

--
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 packer-tool...@googlegroups.com.

Rickard von Essen

unread,
Mar 6, 2018, 1:54:25 AM3/6/18
to packe...@googlegroups.com
Just tried joefitzgerald/packer-windows/windows_10.json and it works fine for me.

I have the following versions:
Parallels Desktop for Mac Pro Ed version 13.2.0 (43213)
Vagrant 2.0.2
vagrant-parallels (1.7.8)
Packer v1.1.3-dev (567b566c2+CHANGES) (there haven't been any changes to the parallels builder since 1.0.4)

First of all ensure that your Vagrant and plugin is up to date and try again. Otherwise I would try reinstall Parallels and verifying the content of the box being built.

For reference this is what I tested:
packer build -only parallels-iso windows_10.json
vagrant box add Windows10 windows_10_parallels.box
mkdir tmp && cd tmp
vagrant init windows10 --provider parallels
vagrant up

To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/d36acc0d-b338-44cc-9fdf-8bf2d4b4c29a%40googlegroups.com.

Dimitri Tavan

unread,
Mar 16, 2018, 6:59:00 AM3/16/18
to Packer
I have the following versions: 
Parallels Desktop for Mac Pro version 13.3.0 (443321)
Vagrant 2.0.3
vagrant-parallels (1.7.8)
packer 1.2.1

And it still gives me the same error, I don't know why I doesn't fail on build nothing, just gives me the same error every time.
I even made a clean install of High Sierra and reinstalled everything and I have the same results.

Rickard von Essen

unread,
Mar 16, 2018, 9:58:34 AM3/16/18
to packe...@googlegroups.com
Can you run Vagrant with debug logging and paste the log here where the error is visible. Can you run any other boxes, say bento/centos-7.4? 

To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/5f792b54-1a8a-47fe-a1c9-d198ae243b03%40googlegroups.com.

Dimitri Tavan

unread,
Mar 16, 2018, 6:23:55 PM3/16/18
to Packer
Yes I can run any other boxes, here's the log for packer and vagrant debug : https://paste.ee/p/kPgvS

Rickard von Essen

unread,
Mar 17, 2018, 12:10:10 PM3/17/18
to packe...@googlegroups.com
Could you put the box somewhere so I can download it and send me a link privately so I can test it? You can send the link to rickard.von.essen at gmail.com

To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/4476b348-a7c9-4e26-ba9a-6e1277e24f30%40googlegroups.com.

Rickard von Essen

unread,
Mar 18, 2018, 11:03:35 AM3/18/18
to packe...@googlegroups.com
I get the same error with your box. And trying to untar it gives an error:

tar -xzf ../windows_10_parallels.box
packer-parallels-iso.pvm/harddisk1.hdd/harddisk1.hdd.0.{5fbaabe3-6958-40ff-92a7-860e329aab41}.hds: Attempt to write to an empty file
tar: Error exit delayed from previous errors.

Are you running out of disk space or something?
Message has been deleted

Dimitri Tavan

unread,
Mar 18, 2018, 12:22:15 PM3/18/18
to Packer
I got enough space in my SSD I think, I have more than 100GB free..

Rickard von Essen

unread,
Mar 18, 2018, 2:39:20 PM3/18/18
to packe...@googlegroups.com
How about untar'ing the box, is the archive correct? 

On Mar 18, 2018 5:22 PM, "Dimitri Tavan" <dimitr...@gmail.com> wrote:
I got enough space in my SSD I think, I have more than 100GB free..

--
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 packer-tool+unsubscribe@googlegroups.com.

Dimitri Tavan

unread,
Mar 18, 2018, 2:42:59 PM3/18/18
to Packer
Gives me the same error as you, I don't get why

Rickard von Essen

unread,
Mar 18, 2018, 3:04:07 PM3/18/18
to packe...@googlegroups.com
Ok, but then we are closing in on the error. For some reason the box file on your computer gets currupted. I'll try to repro that with the release version of Packer that you are using. 

On Mar 18, 2018 7:43 PM, "Dimitri Tavan" <dimitr...@gmail.com> wrote:
Gives me the same error as you, I don't get why

--
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 packer-tool+unsubscribe@googlegroups.com.

Dimitri Tavan

unread,
Mar 18, 2018, 3:42:11 PM3/18/18
to Packer
I found a solution I needed to downgrade to Packer 1.1.3, here's the issues related to the problem : 

Reply all
Reply to author
Forward
0 new messages