hers is output of lxc config show <instance> --expanded
, thanks~
xiyou@lxd1:~$ lxc config show shpc-1106-instance-idpgYnLq --expanded
architecture: x86_64
config:
cloud-init.network-config: |
#cloud-config
version: 2
ethernets:
eth0:
dhcp4: ‘no’
addresses: [172.16.10.153/16]
nameservers:
addresses: [172.16.0.1, 223.5.5.5, 114.114.114.114, 8.8.8.8]
gateway4: 172.16.0.1
cloud-init.user-data: |
#cloud-config
runcmd:
- [mkdir, -p, /home/txb/jupyter_home]
- [chmod, ‘777’, /home/txb/jupyter_home]
- [docker, run, --name, base-jupyter-notebook, -d, --restart=always, -p, ‘8888:8888’,
-v, ‘/home/txb/jupyter_home:/home/jovyan’, ‘jupyter/base-notebook:ubuntu-22.04’,
start-notebook.sh, ‘–NotebookApp.password=’‘sha1:x9rQgX6qCAybC1ND:94333e0668c319ee8c13acf3feb8b231a116bfee’’’]
- [sh, -c, echo $(openssl rand -hex 16) > /var/lib/rstudio-server/secure-cookie-key]
- [sh, -c, service rstudio-server restart]
apt:
primary:
- uri: https://mirrors.aliyun.com/ubuntu/
arches: [default]
timezone: Asia/Shanghai
ssh_pwauth: ‘yes’
packages: [openssh-server]
users:
- lock_passwd: false
shell: /bin/bash
passwd: $6$FkVfhFgV6Ota$y.QcYb1Y7E4KBUAIeQoZPotYZTJT33GpgpyX6QNT09DfDYieru5omhvcHZjuHogszMgoJ2qwX3U1Hc.CVEz2N/
name: txb
groups: [sudo]
image.architecture: amd64
image.description: Ubuntu focal amd64 (cloud) (20221119_07:42)
image.name: ubuntu-focal-amd64-cloud-20221119_07:42
image.os: ubuntu
image.release: focal
image.serial: “20221119_07:42”
image.variant: cloud
limits.cpu: “20”
limits.memory: 33GB
security.nesting: “true”
volatile.base_image: c92c964c1f4682ed741a8d669ff9987f3ffa5087f15cbbc2dde9836fa64bb2dc
volatile.cloud-init.instance-id: 06bd3672-cfe9-4472-9f2a-7b5066c4ccfa
volatile.eth0.host_name: veth6f48edd8
volatile.eth0.hwaddr: 00:16:3e:47:78:8d
volatile.idmap.base: “0”
volatile.idmap.current: ‘[{“Isuid”:true,“Isgid”:false,“Hostid”:1000000,“Nsid”:0,“Maprange”:1000000000},{“Isuid”:false,“Isgid”:true,“Hostid”:1000000,“Nsid”:0,“Maprange”:1000000000}]’
volatile.idmap.next: ‘[{“Isuid”:true,“Isgid”:false,“Hostid”:1000000,“Nsid”:0,“Maprange”:1000000000},{“Isuid”:false,“Isgid”:true,“Hostid”:1000000,“Nsid”:0,“Maprange”:1000000000}]’
volatile.last_state.idmap: ‘[{“Isuid”:true,“Isgid”:false,“Hostid”:1000000,“Nsid”:0,“Maprange”:1000000000},{“Isuid”:false,“Isgid”:true,“Hostid”:1000000,“Nsid”:0,“Maprange”:1000000000}]’
volatile.last_state.power: RUNNING
volatile.uuid: 6ea5cc39-77a8-4aad-89bd-015987965020
devices:
eth0:
ipv4.address: 172.16.10.153
name: eth0
nictype: bridged
parent: bridge0
security.ipv4_filtering: “true”
security.mac_filtering: “true”
security.port_isolation: “true”
type: nic
home:
path: /home
pool: remote
source: custom-volume-of-1106-50-jRO8yaRf
type: disk
root:
path: /
pool: remote
size: 69GB
type: disk
ephemeral: false
profiles:
- default
stateful: false
description: Instance of txb