Created
November 28, 2014 01:42
-
-
Save hupili/83f2940f317575642937 to your computer and use it in GitHub Desktop.
show IPs of LXC virtual machine (for ubuntu).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Run this under /var/lib/lxc | |
for vm in `find -maxdepth 1 -type d` | |
do | |
echo $vm | |
grep 'address' $vm/rootfs/etc/network/interfaces | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment