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

Support OpenSUSE 13.1 #241

Merged
merged 1 commit into from
Jul 29, 2014
Merged

Support OpenSUSE 13.1 #241

merged 1 commit into from
Jul 29, 2014

Conversation

simonoff
Copy link
Contributor

No description provided.

@juliandunn
Copy link
Contributor

Thanks! I will test it out.

@simonoff
Copy link
Contributor Author

@juliandunn any progress?

@juliandunn
Copy link
Contributor

@simonoff still working on it - tried to build it overnight but it didn't finish before my Caffeine timed out 😦 I will try again today

"iso_checksum": "1096c9c67fc8a67a94a32d04a15e909d",
"iso_checksum_type": "md5",
"iso_url": "{{user `mirror`}}/13.1/iso/openSUSE-13.1-DVD-x86_64.iso",
"output_directory": "packer-opensuse-13.1-i386-vmware",
Copy link
Contributor

Choose a reason for hiding this comment

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

should say x86_64?

@juliandunn
Copy link
Contributor

Were you able to build this in VMWare? My build hangs at the very end at

==> vmware-iso: Gracefully halting virtual machine...

@simonoff
Copy link
Contributor Author

Hm... same for me for vmware. I'm not tested it because has end trial on vmware fusion. I will try to fix this issue on another laptop.

@simonoff
Copy link
Contributor Author

@juliandunn Something strange. VMWare stopping faster but packer think what it still running. Does shutdown_command waiting on some return or not?

@juliandunn
Copy link
Contributor

@simonoff Unsure - can you run Packer in debug mode to see what it's polling on?

@simonoff
Copy link
Contributor Author

@jamescott already did it - https://gist.github.com/simonoff/600b1203663ed1b69625
I checked the VM itself. When calling the shutdown command it's not returning anything. Shutdown fast and you cannot logout from tty for example. May be in this a problem. But in VirtualBox the same working fine...

@juliandunn
Copy link
Contributor

@simonoff Maybe play with an alternate shutdown command? I know you probably copied this one from the SLES definitions but there are a few different ones in there e.g. FreeBSD has this one

@simonoff
Copy link
Contributor Author

@juliandunn I tried few variants. Like in FreeBSD, calling directly halt, shutdown and poweroff. All the same - VMWare Fustion closed VM window but packer still waiting.

Probably bug in packer.

Can we disable VMWare for a while and release only VirtualBox variant?

@juliandunn
Copy link
Contributor

Actually I was able to build a box on VMWare using this:

diff --git a/packer/opensuse-13.1-x86_64.json b/packer/opensuse-13.1-x86_64.json
index 9d031f6..f2aa800 100644
--- a/packer/opensuse-13.1-x86_64.json
+++ b/packer/opensuse-13.1-x86_64.json
@@ -56,7 +56,7 @@
       "iso_checksum_type": "md5",
       "iso_url": "{{user `mirror`}}/13.1/iso/openSUSE-13.1-DVD-x86_64.iso",
       "output_directory": "packer-opensuse-13.1-x86_64-vmware",
-      "shutdown_command": "echo 'vagrant'|sudo -S /sbin/halt -h -p",
+      "shutdown_command": "echo 'vagrant'|sudo -S /sbin/shutdown -h 1",
       "ssh_password": "vagrant",
       "ssh_port": 22,
       "ssh_username": "vagrant",

Mind applying that and then I can merge this?

@simonoff
Copy link
Contributor Author

Let me recheck x86 and x86_64 and if all ok then i will push updates.

@simonoff
Copy link
Contributor Author

@juliandunn I made force push with fix for VMWare and few fixes for whole image. Added rsyslog and enabled it.

@juliandunn juliandunn merged commit 6825f15 into chef:master Jul 29, 2014
@simonoff
Copy link
Contributor Author

@juliandunn thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants