English
« Back to projectatomic.io
Ask Your Question
0

Password configuration over user-data is wrong

asked 2015-09-24 10:37:39 +0000

radicke gravatar image

updated 2015-09-29 17:59:36 +0000

Hello!

I've tried to configure system user of the atomic host system (fedora based image) over the "user-data". My "user-data" looks like:

--------------BEGIN---------------
#cloud-config users:
  - default
  - name: demo
    gecos: demo user
    sudo: ["ALL=(ALL) NOPASSWD:ALL"]
    groups: wheel,adm,systemd-journal
    passwd: $6$0sqbVkDm$qRdisqUIrlgZdithHL1S06F2yhUwDBNXzmrcXDeakgXJHcAPLoEcwvrluCGZ7k/Q/JctEfKWII41k0OlByNWR0
    ssh_pwauth: True
    ssh_authorized_keys:
      - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDH9rCpHVVfaUuTOt2XYzNkZJWZfoHOyKiJTj1Pl4L7zOn84Trr/uH8+m/W6EieDmLH2wgt6Dlmy+rY//jBpxdBn5xd37Fq/gKCbA5P+wsUald0f5w6M/u06NeZ8TcyPtCRYzvXYCXrIlgQJR9Np4GcfkeSTgmbNnN0M5jUwZxYWmlp4C7QOeyiVPjM7rn64qm3SHjFk6LWnCoVB09kZAaC7rpIezMhrwLUIFCIHQsKwvpO4K92Q8vEz4Jzll0FSbIomzIy/PW2naqCgePvJE6r3QMgLi1Rwyb1FAMhGdwgtnc/i4DjGEfXTzMzy+HZkapZ7ftQof2TVcJc4u4/9nBJ or@localhost.localdomain
  - name: olaf
    gecos: testuser olaf
    sudo: ["ALL=(ALL) NOPASSWD:ALL"]
    groups: wheel,adm,systemd-journal
    ssh_pwauth: True
    ssh_authorized_keys:
      - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDH9rCpHVVfaUuTOt2XYzNkZJWZfoHOyKiJTj1Pl4L7zOn84Trr/uH8+m/W6EieDmLH2wgt6Dlmy+rY//jBpxdBn5xd37Fq/gKCbA5P+wsUald0f5w6M/u06NeZ8TcyPtCRYzvXYCXrIlgQJR9Np4GcfkeSTgmbNnN0M5jUwZxYWmlp4C7QOeyiVPjM7rn64qm3SHjFk6LWnCoVB09kZAaC7rpIezMhrwLUIFCIHQsKwvpO4K92Q8vEz4Jzll0FSbIomzIy/PW2naqCgePvJE6r3QMgLi1Rwyb1FAMhGdwgtnc/i4DjGEfXTzMzy+HZkapZ7ftQof2TVcJc4u4/9nBJ or@localhost.localdomain chpasswd:   list: |
    root:$6$9xKvTTMH$Tq9u7h3TTBqIM58rKaG2LtUch/RpEQQVDrfySfj680Ihd3RJV0phY7p96dYkBeGtxc21xJyVn3jpDjFklWR2R1
    cloud-user:$6$9xKvTTMH$Tq9u7h3TTBqIM58rKaG2LtUch/RpEQQVDrfySfj680Ihd3RJV0phY7p96dYkBeGtxc21xJyVn3jpDjFklWR2R1
    olaf:radicke   expire: False
----------------END---------------------

I get this output by generating the ISO file:

--------------BEGIN---------------
genisoimage -v -debug  -output atomic_init.iso -volid cidata -joliet -rock user-data meta-data
I: -input-charset not specified, using utf-8 (detected in locale settings)
genisoimage 1.1.11 (Linux)
graft_dir: ' : ', node: 'user-data', short_name: 'user-data'
graft_dir: ' : ', node: 'meta-data', short_name: 'meta-data'
Writing:   Initial Padblock                        Start Block 0
Done with: Initial Padblock                        Block(s)    16
Writing:   Primary Volume Descriptor               Start Block 16
Done with: Primary Volume Descriptor               Block(s)    1
Writing:   Joliet Volume Descriptor                Start Block 17
Done with: Joliet Volume Descriptor                Block(s)    1
Writing:   End Volume Descriptor                   Start Block 18
Done with: End Volume Descriptor                   Block(s)    1
Writing:   Version block                           Start Block 19
Done with: Version block                           Block(s)    1
Writing:   Path table                              Start Block 20
Done with: Path table                              Block(s)    4
Writing:   Joliet path table                       Start Block 24
Done with: Joliet path table                       Block(s)    4
Writing:   Directory tree                          Start Block 28
Done with: Directory tree                          Block(s)    1
Writing:   Joliet directory tree                   Start Block 29
Done with: Joliet directory tree                   Block(s)    1
Writing:   Directory tree cleanup                  Start Block 30
Done with: Directory tree cleanup                  Block(s)    0
Writing:   Extension record                        Start Block 30
Done with: Extension record                        Block(s)    1
Writing:   The File(s)                             Start Block 31
Total translation table size: 0
Total rockridge attributes bytes: 331
Total directory bytes: 0
Path table size(bytes): 10
Done with: The File(s)                             Block(s)    2
Writing:   Ending Padblock                         Start Block 33
Done with: Ending Padblock                         Block(s)    150
Max brk space used 0
183 extents written (0 MB)
----------------END--------------------

Than I rename the kvm inmage

-------------------BEGIN----------------
mv /home/DATA/kvm/kvm_images/Fedora-Cloud-Atomic-22-20150521.x86_64.qcow2  /home/DATA/kvm/kvm_images/atomic_test.qcow2
----------------END---------------------

and start the virualisation:

---------------BEGIN----------------
[root@oradicke-localdomain atomic_host]# virt-install --name=atomic1-fedora22 --ram 1024 --disk path=/home/DATA/kvm/kvm_images/atomic_test.qcow2  --vcpus 1 --os-type linux --os-variant generic --network network=default --graphic none --console pty,target_type=serial --cdrom=/home/DATA/kvm/iso/atomic_init.iso
WARNING  CDROM media does not print to the text console by default, so you likely will not see text install output. You might want to use --location. See the man page for examples of using --location with CDROM media

Starting install...
Creating domain...                                                                                            |    0 B  00:00:00     
Connected to domain atomic1-fedora22
Escape character is ^]
         Mounting Configuration ...
(more)
edit retag flag offensive close merge delete

Comments

I think it can be a bug: https://bugzilla.redhat.com/show_bug.cgi?id=1265477

radicke ( 2015-09-29 18:02:08 +0000 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-08-25 09:50:14 +0000

Mahjong connect games is the amazing game it is play on tiles in old days but now you can play mahjongg connect online game on just single click on homepage you play this game and enjoy alot.

edit flag offensive delete link more
0

answered 2017-08-24 15:25:10 +0000

Try to Password configuration with the help of different programming language. I am sure it will be easy for you.Many resume writing services give password configuration service.They also use python language for it.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
2 followers

Stats

Asked: 2015-09-24 10:37:39 +0000

Seen: 324 times

Last updated: Aug 25