mirror of
https://github.com/GNS3/gns3-registry.git
synced 2024-12-24 06:56:41 +00:00
Enable serial login
This commit is contained in:
parent
578aadbbbc
commit
46676b1c7d
@ -23,7 +23,7 @@
|
||||
"console_type": "telnet",
|
||||
"boot_priority": "c",
|
||||
"kvm": "require",
|
||||
"options": "-nographic"
|
||||
"options": "-cpu host -nographic"
|
||||
},
|
||||
"images": [
|
||||
{
|
||||
@ -45,7 +45,7 @@
|
||||
{
|
||||
"filename": "oracle-cloud-init-data.iso",
|
||||
"version": "1.1",
|
||||
"md5sum": "c8ab06fd6590eba1c64fa7d6bdb8e2c0",
|
||||
"md5sum": "cb51bc42ae9dfb7345bfa7362a313baf",
|
||||
"filesize": 374784,
|
||||
"download_url": "https://github.com/GNS3/gns3-registry/tree/master/cloud-init/oracle-cloud",
|
||||
"direct_download_url": "https://github.com/GNS3/gns3-registry/raw/master/cloud-init/oracle-cloud/oracle-cloud-init-data.iso"
|
||||
|
@ -3,7 +3,6 @@
|
||||
Generated using the following commands:
|
||||
|
||||
```
|
||||
printf "#cloud-config\n\npassword: oracle\nchpasswd: { expire: False }\nssh_pwauth: True\n" > user-data
|
||||
printf "instance-id: oracle-cloud\nlocal-hostname: oracle-cloud\n" > meta-data
|
||||
mkisofs -output oracle-cloud-init-data.iso -volid cidata -joliet -rock user-data meta-data
|
||||
```
|
||||
|
Binary file not shown.
@ -1,5 +1,19 @@
|
||||
#cloud-config
|
||||
|
||||
password: oracle
|
||||
chpasswd: { expire: False }
|
||||
ssh_pwauth: True
|
||||
|
||||
# Modified default_user from /etc/cloud/cloud.cfg.d/90_ol.cfg
|
||||
users:
|
||||
- name: oracle
|
||||
plain_text_passwd: oracle
|
||||
lock_passwd: false
|
||||
gecos: Cloud User
|
||||
groups: [adm, sytemd-journal]
|
||||
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
|
||||
shell: /bin/bash
|
||||
|
||||
# Enable serial login
|
||||
runcmd:
|
||||
- [ systemctl, start, "serial-getty@ttyS0.service" ]
|
||||
- [ grubby, --update-kernel=ALL, "--args=console=tty0 console=ttyS0,115200" ]
|
||||
- [ grub2-mkconfig, -o, /etc/grub2.cfg ]
|
||||
|
Loading…
Reference in New Issue
Block a user