Can I mount LXC image on MacOS?

kamzata

Renowned Member
Jan 21, 2011
219
9
83
Italy
I'd like to "restore" my LXC backup locally on MacOS, then backup it again and restore it on my Proxmox server in order to speed up my development process. Is that possible in some way?
 
hi,

afaik the LXD doesn't run on macos (only the client, but not the server).

but what do you want to do exactly? if you just need some files from the container you can always make a backup and transfer the archive
 
hi,

afaik the LXD doesn't run on macos (only the client, but not the server).

but what do you want to do exactly? if you just need some files from the container you can always make a backup and transfer the archive
I'd like to run my Proxmox LXC Container on local on my MacOS and then move it to my remote server which is running Proxmox. Is that possible without virtualizing Proxmox itself?
 
so if you look here [0], you'll see a note saying:
Note:
The builds for MacOS only include the client, not the server.

that means in macos you can't run the LXD (daemon for running the containers) locally, since only the client works.

if you're really insistent on running LXC, then i guess you could do so by running LXD in docker -- so it would be nested and the docker container would need to have access to the whole host to run LXD/LXC.

you can also use an ubuntu/debian VM of course and run LXD/LXC inside there as well. virtualizing proxmox is also possible.

however nested virtualization is usually discouraged because of performance and security drawbacks.

it's also possible that you might be able to accomplish your goal without running the container on your macOS. what exactly do you want to do? perhaps there's an easier/simpler solution :)

[0]: https://linuxcontainers.org/lxd/getting-started-cli/#macos-builds
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!