[SOLVED] Help moving Files from PC into an LXC

Stormrunner

New Member
Mar 4, 2024
2
0
1
Hey guys,
I'm very new to Proxmox, and to Linux in general. I have created an LXC to test running a game server to try and figure out how they work, and I have some save data files I need to copy into it. The files are on my PC but I can't seem to find a way to get them into the LXC. I have saved them as a .iso and uploaded them to my local pool, but I can't figure out how to get the container to see and access it. Can y'all point me in the right direction? Thanks!
 
Open a root shell on PMVE and ' adduser blah ' and give it a password # substitute your own name for the id

' chown blah somepath; chmod 750 somepath ' # where you want to store the file

Use WinSCP to copy the iso somewhere on the proxmox host, login as blah / whatever user you created and cd to the path you chown/chmodded

Go to the container, open a root shell and ' apt update; apt install -y mc ' # midnight commander

cd to where you want to store the file in the container, then Fire up ' mc '

Hit Tab to access the right pane, hit F9 key and SFTP to the proxmox host where the file to copy is, login as blah, F5 key to SCP/copy

You can even use mc to access the files inside the iso (and copy them out) just by hitting Enter on the file.

YW
 
Thank you guys for your help! This got me headed in the right direction!
I followed the steps above for creating a user, but ended up enabling root ssh access (temporarily, I hear it's risky to leave?) and then logging in to the target LXC via WinSCP. I could then just copy the directory and files where I wanted it to go and everything works great! Thank you guys so much!
 

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!