pct set 100 -net1, but how to remove ?

James Crook

Active Member
Jul 28, 2017
142
2
38
So I'm trying to back files in a container with limited space, so rather than back it up as a file and the pct pull it out I wanted to add or readd a network interface to the container to pipe the file to a network share or scp or ssh.

So I run
$ pct set 100 -net1 name=eth1,bridge=vmbr1,ip=192.168.1.2/24
$ lxc-attach -n 100 -- /home/user/mysqldymp -BLAH | ssh user@192.168.1.1 'cat > /TMP/dump.sql'

Now how do I remove net1 ?
At the moment I'm just changing net1 to vmbr99 and ip 0.0.0.0/24
$ pct set 100 -net1 name=eth1,bridge=vmbr99,ip=0.0.0.0/24

I couldn't see a way to hot remove it using pct or lxc.....
 

rcd

Member
Jul 12, 2019
197
17
23
60
Is there a way to see what has been set already?

I'm thinking of something like # pct set 100 -list for example.
 

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 your own in 60 seconds.

Buy now!