LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 06-17-2020, 12:09 PM   #1
marius09
Member
 
Registered: Mar 2019
Posts: 37

Rep: Reputation: Disabled
safe operation


hi,

We have here kvm.


The source host and the target host see the disk where VM resides,see the same nfs or cifs exported share.
Is it safe to move a VM (with linux that has nfs or cifs shared mounted inside VM) to other host?

Is it safe to move a VM that is very high loaded to other host?either the i/o traffic is very high or the cpus are very loaded.

if there inside VM is high i/o traffic can be a delay in moving the VM to other host?

Last edited by marius09; 06-17-2020 at 12:29 PM.
 
Old 06-18-2020, 04:26 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,899

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
In general: you can move a VM only when it is off (otherwise should be safe).

(by the way what do you mean by moving a VM?)

Last edited by pan64; 06-18-2020 at 04:56 AM.
 
Old 06-18-2020, 06:34 AM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by pan64 View Post
In general: you can move a VM only when it is off (otherwise should be safe).
Libvirt supports live migration. The VM is running while its memory is being copied over. It can even switch over to the destination host before all its pages are copied (they will then be page-faulted from the source). Incredible but true. I've seen it happen

Intensive memory writes can slow live migration down. If RAM accesses are faster than page copies, the VM might even never migrate.
If the VM's storage is not shared between source and destination host, it must also be copied, and in this situation, I imagine intensive disk writes might have the same delaying effect as RAM writes. However you mention NFS or CIFS, so I doubt this is a problem for you.

Also, CPU load is irrelevant. The VM initially uses the source host's CPU, and at some point it is stopped for a fraction of a second and switched-on on the destination host. That's all.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Is this apt-get autoremove operation safe? edbarx Debian 20 03-22-2012 04:11 PM
SIOCSIFFLAGS: Operation not permitted SIOCSIFFLAGS: Operation not permitted sushan1982 Linux - Wireless Networking 1 01-01-2012 08:04 PM
eth0 Operation Failed cvlinux Linux - Networking 2 09-11-2001 07:25 AM
eth0 Operation failed cvlinux Linux - Networking 0 09-10-2001 03:20 PM
setserial: Operation not permitted (with pctel drivers) jmerriman Linux - General 1 05-02-2001 12:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 06:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration