[go-nuts] Re: Help Bootstrapping to ESXi

2023-01-13 Thread Anthony Brown
I haven't made a bootstrapped Go toolchain so I can't help with that but I 
can provide the following information:

ESXi knows how to run ELF binaries, the interesting part then becomes what 
architecture of CPU do you have the ESXi server installed on. If it's x86 
or any other architecture that the Go toolchain already supports you don't 
have to make a bootstrap version for yourself. If it's not one of those, 
then it might be easier to compile your binaries on a different machine 
with the GOOS and GOARCH flags to specify your target OS (in this case 
Linux) and whatever architecture you are trying to build for.

Just to be sure, I just wrote a simple "Hello" binary in Go on Ubuntu. Did 
a simple 'go build' so that it would target my host OS and architecture 
then SCP'd it to an ESXi host I have available for testing also on x86. I 
was able to run this binary without issue within the shell of the ESXi 
server.

Hopefully that provides some insight.

On Monday, January 9, 2023 at 3:20:15 PM UTC-6 brett@gmail.com wrote:

> Good afternoon, hoping to get a little help.
>
> I am trying to build a bootstrap candidate that allows me to build and run 
> go programs on an ESXi server.
>
> I am following this 
> 
>  blog, and the issue is that my bootstrap candidate doesn't contain the 
> go binary in the bin directory that is required when running all.bash.
>
> Any help would be greatly appreciated.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/05acc8d9-fe55-49fc-bf97-2b51e4d6c5e2n%40googlegroups.com.


[go-nuts] Re: Help Bootstrapping to ESXi

2023-01-10 Thread Brian Candler
"Bootstrapping go" means "building the go compiler toolchain from 
scratch".  You almost certainly don't want to do this.  This is something 
you'd normally only attempt if there is not a suitable go binary 
distribution available for your system.

Go needs to run under an operating system. ESXi emulates a PC as a "virtual 
machine", but you cannot boot a PC directly into Go: that is, Go does not 
run on "bare metal".  So with ESXi you first need to create a VM, install 
an operating system inside it, and then you install Go inside that.

For example, if you installed a Linux VM under ESXi, then inside that VM 
you can install the Linux distribution of Go, which you can download 
from  https://go.dev/dl/.  Ditto if you chose to install a FreeBSD or 
Windows VM - you simply download the FreeBSD or Windows distribution of Go.

On Monday, 9 January 2023 at 23:58:56 UTC mi...@newclarity.net wrote:

> Is your ESXi server not running an Intel x86 processor?  That is what the 
> article is about.
>
> Also, what OS is your guest VM running?  
>
> -Mike
>
> On Monday, January 9, 2023 at 4:20:15 PM UTC-5 brett@gmail.com wrote:
>
>> Good afternoon, hoping to get a little help.
>>
>> I am trying to build a bootstrap candidate that allows me to build and 
>> run go programs on an ESXi server.
>>
>> I am following this 
>> 
>>  blog, and the issue is that my bootstrap candidate doesn't contain the 
>> go binary in the bin directory that is required when running all.bash.
>>
>> Any help would be greatly appreciated.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/0ea77641-1061-4b9b-96f9-2c7f6f1f1790n%40googlegroups.com.


[go-nuts] Re: Help Bootstrapping to ESXi

2023-01-09 Thread Mike Schinkel
Is your ESXi server not running an Intel x86 processor?  That is what the 
article is about.

Also, what OS is your guest VM running?  

-Mike

On Monday, January 9, 2023 at 4:20:15 PM UTC-5 brett@gmail.com wrote:

> Good afternoon, hoping to get a little help.
>
> I am trying to build a bootstrap candidate that allows me to build and run 
> go programs on an ESXi server.
>
> I am following this 
> 
>  blog, and the issue is that my bootstrap candidate doesn't contain the 
> go binary in the bin directory that is required when running all.bash.
>
> Any help would be greatly appreciated.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/9fc7173f-fc01-4fcf-8ce4-a329011cdf75n%40googlegroups.com.