GithubHelp home page GithubHelp logo

zzhou1 / virt-dup Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 41 KB

Have fun to duplicate a Virtual Machine with qcow2 and raw images in seconds on top of CoW capable filesystem, eg. xfs, btrfs, ocfs2.

Python 100.00%

virt-dup's People

Contributors

zzhou1 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

virt-dup's Issues

ORG_VM's source file not totally equal with ORG_VM.qcow2

@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

BUG: abnormal message "kernel: block nbd0: Attempted send on invalid socket"

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.