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.....
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.....