zzhou1 / virt-dup Goto Github PK
View Code? Open in Web Editor NEWHave fun to duplicate a Virtual Machine with qcow2 and raw images in seconds on top of CoW capable filesystem, eg. xfs, btrfs, ocfs2.
Have fun to duplicate a Virtual Machine with qcow2 and raw images in seconds on top of CoW capable filesystem, eg. xfs, btrfs, ocfs2.
@zzhou1 In some cases, ${ORG_VM} not totally using XXX/${ORG_VM}.qcow2 as the source file. For example, I'm gonna install a VM is sles15, but there is no operating system named sles15, only the sle15. After installing that, I changed the name because I really want to use sles15 as the VM name and I think the VM name can be changed casually.
According to the above, sudo ./virt-dup.sh -o sles15vm1 -n sles15vm2 --debug
would get
/tmp/sles15vm1_dup_10148.xml is under processing for sles15vm2
<name>sles15vm1</name>
<uuid>e65d76da-83bc-4cdb-baf5-c011c0d745b5</uuid>
<mac address='52:54:00:44:0a:e0'/>
Stop, no result when search sles15vm1 in all image names
So, I propose the ${ORG_VM} as the source file name from named VM xml.
If there are some misunderstanding and mistakes I made, really appreciate to let me know.
Sincerely,
Yuan
--change-ip, the correct syntax need the comma ",". eg. eg. --change-ip ip1,ip2
tw:~ # virt-dup vm1 vm2 --change-ip 192.168.152.100,192.168.152.230
tw:~ # journalctl -f
...
Mar 24 16:48:25 tw systemd[1]: tmp-virt_dup_mnt_sfkqjzpy.k3s\x2dsle15sp2.mount: Succeeded.
Mar 24 16:48:33 tw kernel: block nbd0: NBD_DISCONNECT
Mar 24 16:48:33 tw kernel: block nbd0: Disconnected due to user request.
Mar 24 16:48:33 tw kernel: block nbd0: shutting down sockets
Mar 24 16:48:33 tw kernel: block nbd0: Attempted send on invalid socket
Mar 24 16:48:33 tw kernel: blk_update_request: I/O error, dev nbd0, sector 0 op 0x1:(WRITE) flags 0x800 phys_seg 0 prio class 0
tw:~ # uname -r
5.9.11-1-default
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.