Skip to content

Instantly share code, notes, and snippets.

View stgraber's full-sized avatar

Stéphane Graber stgraber

View GitHub Profile
@stgraber
stgraber / commands
Created March 22, 2022 22:23
LXD cluster with CEPH, OVN and Grafana on Google Compute
# Deploy the LXD cluster
juju bootstrap google/northamerica-northeast1 gce
juju deploy ./lxd-gce.yaml
juju add-storage ceph-osd/0 osd-devices=gce,100G,1
juju add-storage ceph-osd/1 osd-devices=gce,100G,1
juju add-storage ceph-osd/2 osd-devices=gce,100G,1
juju add-storage ceph-osd/3 osd-devices=gce,100G,1
juju add-storage ceph-osd/4 osd-devices=gce,100G,1
# Expose the services
recirc_id(0x3e76e),in_port(4),ct_state(+new-est-rel-rpl-inv+trk),ct_label(0/0x1),eth(src=00:16:3e:ad:66:b1,dst=00:16:3e:ad:66:b1),eth_type(0x0800),ipv4(src=64.0.0.0/224.0.0.0,dst=45.45.148.136,proto=6,ttl=66,frag=no), packets:0, bytes:0, used:never, actions:set(ipv4(ttl=65)),check_pkt_len(size=1518,gt(ct_clear,check_pkt_len(size=1518,gt(ct(zone=54,nat),recirc(0x3e76d)),le(ct(zone=54,nat),recirc(0x3e76e)))),le(ct_clear,check_pkt_len(size=1518,gt(ct(zone=54,nat),recirc(0x3e76d)),le(ct(zone=54,nat),recirc(0x3e76e)))))
recirc_id(0x3e76e),in_port(4),ct_state(+new-est-rel-rpl-inv+trk),ct_label(0/0x1),eth(src=00:16:3e:ad:66:b1,dst=00:16:3e:ad:66:b1),eth_type(0x0800),ipv4(src=2.0.0.0/254.0.0.0,dst=45.45.148.136,proto=6,ttl=31,frag=no), packets:0, bytes:0, used:never, actions:set(ipv4(ttl=30)),check_pkt_len(size=1518,gt(ct_clear,check_pkt_len(size=1518,gt(ct(zone=54,nat),recirc(0x3e76d)),le(ct(zone=54,nat),recirc(0x3e76e)))),le(ct_clear,check_pkt_len(size=1518,gt(ct(zone=54,nat),recirc(0x3e76d)),le(ct(zone=54,nat),rec
# Show system
lscpu
lspci -nnn
nvidia-smi
# Enable MIG
nvidia-smi -mig 1
# List GPU instance profiles
nvidia-smi mig -lgip