Cobra Forum

Linux => New to Ubuntu => Topic started by: mahesh on Aug 23, 2023, 08:58 AM

Title: qemu-img cloud-ubuntu problem with create cloud-ubuntu.img
Post by: mahesh on Aug 23, 2023, 08:58 AM
Hay my friends maybe someone knows how to resolve this I have Ubuntu 22.04 jellyfish installed qemu-kvm I have two virtual machine on it linux 16.04 and linux 18 server for training course
And now i want to install from ubuntu 22.04 cionsole the cloud-ubuntu based on xenial linux 16.04. I cannot obey this sudo qemu-img create -f qcow2 -b xenial-server-cloudimg-amd64-disk1.qcow2 cloud-ubuntu.img
qemu-img: cloud-ubuntu.img: Backing file specified without backing format
Detected format of qcow2 .
Nothing helps even -F -o rebase I need to create snapshoot cloud-image to start instalation with password and user everything in linux 22.04 is updated

-rw-r--r-- 1 libvirt-qemu kvm 544735232 Sep 18 16:36 xenial-server-cloudimg-amd64-disk1.img
-rw-r--r-- 1 root root 1021772136 Sep 16 19:33 xenial-server-cloudimg-amd64-disk1.qcow2
user@user-Aspire-7750G:/var/lib/libvirt/images$ sudo qemu-img create -f qcow2 -b xenial-server-cloudimg-amd64-disk1.qcow2 cloud-ubuntu.img
qemu-img: cloud-ubuntu.img: Backing file specified without backing format
Detected format of qcow2.user@user-Aspire-7750G:/var/lib/libvirt/images$

I trying something else installed xenial-server-cloudimg-amd64-disk1.img with image not converted from the page
edited vim config
#cloud-config
runcmd:
- [ apt-get, -y, remove, cloud-init ]
password: ubuntu
chpasswd: { expire: False }
ssh_pwauth: True
~
and next inserted it to the sudo cloud-localds config.img config

But ubuntu default password did not work and cannot log in to the system

If someone knows the problem please help