Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
4
Question by Didanix · Apr 16, 2017 at 10:02 AM · unity 5serverwindowsheadlesswindows server

Unity headless server on Windows Server Core (Docker)

I've been trying to run a Unity server in headless mode on Windows Server Core, using the new(ish) native Docker support for Windows.

Right now, I don't get any output, not even errors, when I run the server app, it just starts and immediately stops. This got me thinking that it might be due to Unity not running in a "true" headless mode on Windows, since it always spawn a custom console-like app (at least in this case), while on linux it works as expected.

So I guess my question is if it's possible to even run a headless Unity server on Windows without any additional windows/consoles/command prompts? Running as a background process would be fine too, since I have other ways of interacting with it.

Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jowitt_msft · May 05, 2017 at 11:20 PM 0
Share

I'm experiencing the same issue, but just trying to run the Unity Editor with "-batchmode -nographics -quit". No logs, nothing. I'm trying to containerize our build machines, but this issue is preventing me from doing so.

avatar image jowitt_msft · May 08, 2017 at 09:07 PM 0
Share

I get the same issue with Windows Server Core running right in Hyper-V, that is, outside of docker/containers I still see this.

avatar image Didanix jowitt_msft · May 08, 2017 at 09:14 PM 0
Share

Same. Technically Server Core still has a GUI, but that doesn't seem to matter in this case.

I also tried running a headless UE4 server on it, and actually got an error dialog saying that both VC++ and DirectX runtime need to be installed.

Thing is, Server Core doesn't have or even support DirectX, and it looks like you can't even install it, so it could be that Unity's looking for DirectX and silently failing, hard to tell.

If it does end up being that, then I'm sure there's a way to import registry entries from a desktop installation, then manually copy over DLLs etc.

avatar image jowitt_msft Didanix · May 08, 2017 at 10:20 PM 0
Share

And since there's no upgrade to full experience option (http://www.davidhill.co/2017/04/install-windows-server-2016-gui-desktop-experience/) as well as no base image for docker with the full experience we're kind of stuck here.

avatar image Lee7 · Mar 29, 2018 at 06:16 AM 0
Share

I just tried this with 2017.3, ran into the same issue you experienced. No error, no log. I am assu$$anonymous$$g its missing some dependencies that are not included in Server Core.

Now I gotta fuck with linux.... hate linux.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by hoshhsiao · Aug 06, 2019 at 06:32 PM

I am running into a similar issue, when attempting this on Windows 2019 Sever Core. I did get a clue when I try to do this under bash.exe. I get this helpful hint:

error while loading shared libraries: GLU32.dll: cannot open shared object file: No such file or directory

Since Server Core is a stripped down Windows, it probably does not have library. (That looks like an OpenGL library of some kind). If I cannot figure out how to add those libraries back, I think I'll just start with the Full edition of Windows 2019.,I am running into something similar, running on Windows 2019 Server Core. When I attempt to run Unity in bash.exe, I get a more helpful error message:

C:/Unity/Editor/Unity.exe: error while loading shared libraries: GLU32.dll: cannot open shared object file: No such file or directory

Which I take it to mean that the GLU32.dll (part of the opengl libraries?) are not installed on Server Core by default. I'm looking into how I can install just that system. But if this isn't working, I'm just going to rebuild on top of the Full edition.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

123 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Linux Headless Server on Unity 5 - Idle CPU Load 1 Answer

Headless mode checkbox is uncheckable 1 Answer

Problem with connecting to AWS EC2 Server ... 0 Answers

Prefab created in Windows not opening on Mac 0 Answers

Gray window when opening Unity 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges