I'm running this in order to initialize a CentOS 7 VM:
After that I'm going to the VM's "Cloud-Init" section and set the User, Password, DNS Servers and IP Config in the form of "192.168.1.10/27" with "192.168.1.1" as Gateway. I then click on "Regenerate Image"
The VM works but I can't login via "Console", even if the Username was previously correctly set. The only way to login is to use a SSH Key.
Please note that the exact same procedure fully works with Ubuntu.
Code:
# wget http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.raw.tar.gz
# tar -xzf CentOS-7-x86_64-GenericCloud.raw.tar.gz
# rm -rf CentOS-7-x86_64-GenericCloud.raw.tar.gz
# qm create 9000 --memory 2048 --net0 virtio,bridge=vmbr1
# qm importdisk 9000 CentOS-7-x86_64-GenericCloud-20180930_02.raw zfs
(100.00/100%)
# qm set 9000 --scsihw virtio-scsi-pci --scsi0 zfs:vm-9000-disk-0
update VM 9000: -scsi0 zfs:vm-9000-disk-0 -scsihw virtio-scsi-pci
# qm set 9000 --ide2 zfs:cloudinit
update VM 9000: -ide2 zfs:cloudinit
# qm set 9000 --boot c --bootdisk scsi0
update VM 9000: -boot c -bootdisk scsi0
# qm set 9000 --serial0 socket --vga serial0
update VM 9000: -serial0 socket -vga serial0
After that I'm going to the VM's "Cloud-Init" section and set the User, Password, DNS Servers and IP Config in the form of "192.168.1.10/27" with "192.168.1.1" as Gateway. I then click on "Regenerate Image"
The VM works but I can't login via "Console", even if the Username was previously correctly set. The only way to login is to use a SSH Key.
Please note that the exact same procedure fully works with Ubuntu.
Last edited: