pct set 100 -net1, but how to remove ?

James Crook

Well-Known Member
Jul 28, 2017
143
2
58
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.....
 
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 yours easily in our online shop.

Buy now!