LXD on Windows 10 WSL?


#7

LXD appears in the repositories (and probably in the container image for WSL) because it is the stock Ubuntu container image. It can get confusing if it appears there while it cannot work without a Linux kernel.

It would be possible for LXD to run natively on WSL if WSL provided all the necessary features that LXD requires from the Linux kernel.


#8

Bummer. Personally I think it could be a game changer if LXD could run efficiently in WSL.

Thanks again.

Ray


#9

That would be defeating my purpose. If I installed HyperV, I’d stick with running VM’s and not LXD.


#10

But you have a limited number of VMs that your server can run. If you are content with very few VMs and have a high end server, then you are ok with a VM.


#11

I just upgraded to Win 10 Pro…if that makes any difference?


#12

yes as said before, Windows Home can’t handle Multipass, so that’s an option now available , lucky you :slight_smile: . Now I don’t know much Multipass and I can’t help you with it, but other can certainly do it.


#13

So…with Multipass, can I run multiple instances of Ubuntu at the same time?


#14

With multipass you can create multiple Ubuntu VMs. In each of them you can install LXD.
Normally you would start with a single VM and a nice LXD installation.

Multipass in not a requirement; you can use any other VM tool as well. It is lightweight though, and it is the same tool on native Ubuntu.


#15

So trying it out and running into this problem:

C:\Users\rayj0>multipass launch
launch failed: timed out waiting for instance to respond

C:\Users\rayj0>multipass list
Name State IPv4 Release
preferred-curassow STOPPED – Ubuntu 18.04 LTS
relieved-kudu STOPPED – Ubuntu 18.04 LTS

C:\Users\rayj0>multipass start preferred-curassow
start failed: timed out waiting for instance to respond

I read about possible firewall issues so I turn off Norton 360 firewall but no help.

Any ideas?


#16

Have a look at https://discourse.ubuntu.com/t/installing-multipass-for-windows/9547
The requirements are:

  1. Only Windows 10 Pro or Enterprise , build 1803 or later is currently supported.
  2. Make sure the network you’re connected to is marked Private (which really means Trusted ), otherwise Windows will prevent Multipass from starting. We’re working on resolving that issue.
  3. You will need to allow the installer to gain Administrator privileges.

(lhprojects) #17

I’m a bit confused, on the Github page, it states creation, management and maintenance of virtual machines. This seems far from containers ? Notwithstanding, the Github repository is vague about the underlying technology?


#18

multipass is a tool to create virtual machines (VM), based on KVM (Linux), HyperV (Windows) and also for MacOS (not sure which).
I got you covered with https://blog.simos.info/multipass-management-of-virtual-machines-running-ubuntu/

On Windows you cannot run LXD directly, so you need first a VM running Ubuntu or other Linux, then setup LXD in there.
So, you can either use HyperV with an Ubuntu image, multipass over HyperV, VMWare, Virtualbox or something else.

If HyperV is too much trouble (i.e. requires a version of Windows you do not have), then go for an alternative.


#19

I installed multipass on Windows 10 Pro. Is there anything else I need to do besides the Multipass?

Ray


#20

These are the requirements,

After installation, try to create an Ubuntu VM.
Allocate enough memory and disk space so that LXD can work well.


#21

Maybe I am confusing you. I am only interested in running Multipass and not LXD.
I run multipath launch. The insances are created, but they will not start.

Ray


#22

But you wouldn’t mind running LXD under multipass on Windows for a mere test so that this thread is relevant to the forum, right?

There are three specific requirements mentioned earlier, and I need from you to positively state that you have checked them, so that we know that multipass should work. Can you do that?

  1. Only Windows 10 Pro or Enterprise , build 1803 or later is currently supported.
  2. Make sure the network you’re connected to is marked Private (which really means Trusted ), otherwise Windows will prevent Multipass from starting. We’re working on resolving that issue.
  3. You will need to allow the installer to gain Administrator privileges.

Apart from that, there is support for multipass on the Ubuntu discourse website. Here is a list of tagged posts for multipass. You would post there a support question for multipass and tag it with the multipass tag to get the attention of the multipass developers.


#23

So…I am running Windows 10 Pro over WiFi which is marked Private.
For installer, you mean the Multipass installation on Windows 10?

Thanks,

Ray


#24

The requirements I wrote above in italics are copied from the multipass page. I used italics to denote that this is copied text.

The installation instructions that I gave earlier, refer to a GitHub download page that has an installer named multipass-0.6.0+win-win64.exe
This is the installer.

If you completed the installation without an error, then you can launch a VM with multipass.


#25

So that’s my problem.

I uninstalled multipass and re-installed as administrator. That worked fine.
Then I did a multipass launch -n rayj
It took awhile…about 5 mins. I thought this was going to work.
But then is stopped with “launch failed: time out waiting for instance response.”

“multipass list” shows rayj STOPPED release Ubuntu 18.04 LTS

Ideas?

Ray


#26

So I did a few things:
Uninstalled Multipass and reinstalled. No help.
Turned on Virtualization in BIOS. No help.
Joined the HyperV Administrator group. Helped somewhat.

I now have 2 instances marked as RUNNING. However the IPv4 addresses are marked UNKNOWN?

Any ideas?

Ray