Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

Commit

Permalink
New: Add lxc play script
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroamador committed Aug 7, 2019
1 parent dcd7c88 commit d7c3873
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/lxc_play.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
for number in 1 2 3; do
#vagrant ssh node${number} -c "sudo pveam download local ubuntu-16.04-standard_16.04.5-1_amd64.tar.gz"
vagrant ssh node${number} -c "sudo pct create 10${number} local:vztmpl/ubuntu-16.04-standard_16.04.5-1_amd64.tar.gz -net0 name=eth0,bridge=vmbr0,ip=10.12.12.10${number}/24,gw=10.12.12.${number} -memory 128 -hostname test10${number}"
done

vagrant ssh node1 -c "sudo pvesh get /cluster/resources --type vm"

0 comments on commit d7c3873

Please sign in to comment.