W
Можно еще Dude.
Size: a a a
W
S
DB
S
DB
DB
S
S
S
S
DB
A
DB
A
S
AS
D
#cloud-config
users:
- name: root
ssh_pwauth: True
ssh_authorized_keys:
- ssh-rsa blablabla...
local-hostname: testvmСобираю их в "конфиг-драйв"
network-interfaces: |
iface eth0 inet static
address 10.0.0.30
netmask 255.255.255.0
gateway 10.0.0.1
genisoimage -output seed.iso -volid cidata -joliet -rock user-data meta-data
virt-install --memory 16384 --vcpus 4 --name test-vm --disk /srv/vms/test.qcow2,device=disk --disk /srv/vms/seed.iso,device=cdrom --os-type Linux --os-variant centos7.0 --virt-type kvm --graphics none --network bridge=br0 --import
port 22: Connection refused
cloud-init[520]: Cloud-init v. 0.7.5 running 'init-local' at Mon, 06 Apr 2020 08:10:55 +0000. Up 13.58 seconds.
Starting Hostname Service...
[ OK ] Started Hostname Service.
[ OK ] Started Initial cloud-init job (pre-networking).
D
#cloud-config
users:
- name: root
ssh_pwauth: True
ssh_authorized_keys:
- ssh-rsa blablabla...
local-hostname: testvmСобираю их в "конфиг-драйв"
network-interfaces: |
iface eth0 inet static
address 10.0.0.30
netmask 255.255.255.0
gateway 10.0.0.1
genisoimage -output seed.iso -volid cidata -joliet -rock user-data meta-data
virt-install --memory 16384 --vcpus 4 --name test-vm --disk /srv/vms/test.qcow2,device=disk --disk /srv/vms/seed.iso,device=cdrom --os-type Linux --os-variant centos7.0 --virt-type kvm --graphics none --network bridge=br0 --import
port 22: Connection refused
cloud-init[520]: Cloud-init v. 0.7.5 running 'init-local' at Mon, 06 Apr 2020 08:10:55 +0000. Up 13.58 seconds.
Starting Hostname Service...
[ OK ] Started Hostname Service.
[ OK ] Started Initial cloud-init job (pre-networking).
a CentOS 7 cloud image installed in opennebula has its network stack configured directly through cloud-init (icmp is ok quickly) but there is a conflict between systemd/networkmanager and cloud-init as one needs to wait 5 minutes before sshd is started (also it continues to test dhcp even if configured in static with cloud-init)
. Попробовал перезагрузить хост, ssh заработал. В чем ошибка - непонятно, через cloud-init передавал перезагрузку sshd и сети, но проблему это не решало.Y
ДМ