Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

KVM: how do I correctly clone a guest image?

$
0
0
This is what I started with:
Code:

$ virsh list --all
 Id    Name                          State
----------------------------------------------------
 -    generic                        shut off
 -    XubuBionic                    shut off

where "generic" is Xubuntu 16.04 and "XubuBionic" was Xubuntu 18.04.

After that, I clearly did something wrong:
Code:

$ sudo virt-clone --original XubuBionic --name LuXuBionic
[sudo] password for vasa1:

Clone 'LuXuBionic' created successfully.

This took just a few seconds to complete.

And
Code:

$ virsh list --all
 Id    Name                          State
----------------------------------------------------
 -    generic                        shut off
 -    LuXuBionic                    shut off
 -    XubuBionic                    shut off
$

I opened LuXuBionic, ran sudo apt-get update and sudo apt-get dist-upgrade without any errors. I then ran sudo apt-get install lubuntu-desktop. That too went off okay.

On reboot, I could log into into Lubuntu.

Where I've obviously gone wrong is that all I installed in LuXuBionic has also been installed in XubuBionic :( I thought that XubuBionic would remain a clean Xubuntu 18.04.

I don't mind starting over, but what is the correct way to clone and then modify the clone and not the "parent"?

My host is Kubuntu 16.04.

Code:

$ kvm --version
QEMU emulator version 2.5.0 (Debian 1:2.5+dfsg-5ubuntu10.22), Copyright (c) 2003-2008 Fabrice Bellard
$


Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>