Welcome to the new Linux Foundation Forum!

Lab 28.3 Removing VM from command line (qemu)

Hello guys,
I have a question about Lab exercise 28.3 and it's not about the line in the .pdf file :)
I was wondering if there is a "proper" way to remove VM from command line?
I couldn't find anything here on the forum and on the internet I've found that no configuration file is created for VM when using qemu so virsh doesn't see it.
In that case, would it be OK to simply remove the created myimg.qcow2 file?
Thanks in advance!

Comments

  • luisviveropenaluisviveropena Posts: 391

    Hi @k0dard ,

    I think the proper way is using 'rm', hehehe. I think you were thinking about it because VirtualBox (or any other similar software), because in that case there is some configuration and also the image file. But in this case I don't see any special procedure to delete the image file. In fact, if you take a look to 'man qemu-img', you will see that the only delete option is for a snapshot, but there isn't one for an image file.

    Regards,
    Luis.

  • k0dardk0dard Posts: 2

    OK,
    Thanks for your reply :)

  • luisviveropenaluisviveropena Posts: 391

    It's a pleasure!

    Luis.

Sign In or Register to comment.