Hi, I´m need to customize a debian qcow image, but I have this error virt-customize: error: no operating systems were found in the guest image The command that I´m trying is: virt-customize -v -x -a ./kvm_av_4_4_n0.qcow2 --attach ./one_context/packages.iso -root-password password:acens --run ./ctpd/pro/scripts/one_altavault.sh --firstboot-command "dpkg-reconfigure openssh-server I attach the log. I´m wondering if is possible to specify the partition. Please, can you provide some help? BR. ________________________________ Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción. The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it. Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição
Hi, On Wednesday, 20 December 2017 12:30:23 CET EMILIO ABRAHAM GARRIDO GARCIA wrote:> I´m need to customize a debian qcow image, but I have this error > virt-customize: error: no operating systems were found in the guest image > > The command that I´m trying is: > virt-customize -v -x -a ./kvm_av_4_4_n0.qcow2 --attach ./one_context/packages.iso -root-password password:acens --run ./ctpd/pro/scripts/one_altavault.sh --firstboot-command "dpkg-reconfigure openssh-server > > I attach the log. I´m wondering if is possible to specify the partition.At the moment, virt-customize/virt-builder do not allow to specify partitions to mount, but rely on the inspection to detect the guest, and all the features in it (like the mount points). Looking at the log provided, I do not understand which type of guest is in the image: - MBR partition scheme - 3 primary partitions, all of them ext3 - 1 extended partition, containing 5 logic partitions (4 with ext3, 1 swap) - on 2 logic partitions there is a /etc directory and that's about it -- no grub 1/2 stuff, no /bin, or anything else normally found in Linux systems. Can you please explain a bit more what is exactly in the disk image? -- Pino Toscano
Hi, please keep the replies on the list ... On Wednesday, 20 December 2017 13:17:43 CET EMILIO ABRAHAM GARRIDO GARCIA wrote:> The image is a debian image, with two boot images. I can execute this: > > # virt-filesystems --long -h --all -a kvm_av_4_4_n0.qcow2 > Name Type VFS Label MBR Size Parent > /dev/sda1 filesystem ext3 BOOTMGR - 255M - > /dev/sda2 filesystem ext3 BOOT_1 - 128M - > /dev/sda3 filesystem ext3 BOOT_2 - 128M - > /dev/sda4 filesystem unknown - - 1.0K - > /dev/sda5 filesystem ext3 ROOT_1 - 2.5G - > /dev/sda6 filesystem ext3 ROOT_2 - 2.5G - > /dev/sda7 filesystem swap SWAP - 4.0G - > /dev/sda8 filesystem ext3 VAR - 80G - > /dev/sda9 filesystem ext3 CONFIG - 64M - > /dev/sda1 partition - - 83 255M /dev/sda > /dev/sda2 partition - - 83 128M /dev/sda > /dev/sda3 partition - - 83 128M /dev/sda > /dev/sda4 partition - - 0f 1.0K /dev/sda > /dev/sda5 partition - - 83 2.5G /dev/sda > /dev/sda6 partition - - 83 2.5G /dev/sda > /dev/sda7 partition - - 82 4.0G /dev/sda > /dev/sda8 partition - - 83 80G /dev/sda > /dev/sda9 partition - - 83 64M /dev/sda > /dev/sda device - - - 91G -The above does not tell me anything more than the log you already sent. What I would like to know is what is _inside_ each partition, how the various partitions related with each other (e.g. mount points/fstab), etc. -- Pino Toscano
On Wed, Dec 20, 2017 at 11:30:23AM +0000, EMILIO ABRAHAM GARRIDO GARCIA wrote:> Hi, > > I´m need to customize a debian qcow image, but I have this error virt-customize: error: no operating systems were found in the guest imageThe basic reason for this error is described in the FAQ here: http://libguestfs.org/guestfs-faq.1.html#whats-the-deal-with-guestfish--i We need to know what OS is contained in the guest because without that information we cannot perform some customizations ...> The command that I´m trying is: > virt-customize -v -x -a ./kvm_av_4_4_n0.qcow2 --attach ./one_context/packages.iso -root-password password:acens --run ./ctpd/pro/scripts/one_altavault.sh --firstboot-command "dpkg-reconfigure openssh-server... in this case ‘--root-password’ and ‘--firstboot-command’ are not possible without knowing the OS. Specifying a partition name isn't sufficient. Pino asked if there is an OS in this image. From the fact you're running dpkg-reconfigure I'm going to guess it's Debian/Ubuntu, but it's strange that inspection cannot detect that. Are you presenting all the guest disks to virt-customize? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html
Hi I haven´t got much detail it´s the image of AltaVault Software. Is possible to specify the boot partition in the virt-customize command? Os it´s possible to merge the partitions? BR. El 20/12/17 13:35, "Pino Toscano" <ptoscano@redhat.com> escribió: Hi, please keep the replies on the list ... On Wednesday, 20 December 2017 13:17:43 CET EMILIO ABRAHAM GARRIDO GARCIA wrote: > The image is a debian image, with two boot images. I can execute this: > > # virt-filesystems --long -h --all -a kvm_av_4_4_n0.qcow2 > Name Type VFS Label MBR Size Parent > /dev/sda1 filesystem ext3 BOOTMGR - 255M - > /dev/sda2 filesystem ext3 BOOT_1 - 128M - > /dev/sda3 filesystem ext3 BOOT_2 - 128M - > /dev/sda4 filesystem unknown - - 1.0K - > /dev/sda5 filesystem ext3 ROOT_1 - 2.5G - > /dev/sda6 filesystem ext3 ROOT_2 - 2.5G - > /dev/sda7 filesystem swap SWAP - 4.0G - > /dev/sda8 filesystem ext3 VAR - 80G - > /dev/sda9 filesystem ext3 CONFIG - 64M - > /dev/sda1 partition - - 83 255M /dev/sda > /dev/sda2 partition - - 83 128M /dev/sda > /dev/sda3 partition - - 83 128M /dev/sda > /dev/sda4 partition - - 0f 1.0K /dev/sda > /dev/sda5 partition - - 83 2.5G /dev/sda > /dev/sda6 partition - - 83 2.5G /dev/sda > /dev/sda7 partition - - 82 4.0G /dev/sda > /dev/sda8 partition - - 83 80G /dev/sda > /dev/sda9 partition - - 83 64M /dev/sda > /dev/sda device - - - 91G - The above does not tell me anything more than the log you already sent. What I would like to know is what is _inside_ each partition, how the various partitions related with each other (e.g. mount points/fstab), etc. -- Pino Toscano ________________________________ Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción. The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it. Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição