Linux - Virtualization and CloudThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have 2 VMs created by kvm and I want to copy a file from my host to virtual machines. I googled a lot, but nothing was found. Both host and vms are running linux
Anyone knows how to do that?
One might use the normal ways one might use between two real computers. That would be usb flash drive or network like ftp. In many vm's one can also use special folders or guest type features to move transparent to the user.
I'm not familiar with KVM but how are the host and guest setup - bridged, hosted, or NAT network?
I'm not quite sure. When I open connection details in virt-manager, I see different options:
br0(Bridge br0): which its state is active and its has a tatic IPv4
lo(Ethernet lo): which its state is active and its IP is 127.0.0.1/8
p13p1(Ethernet p13p1): hich its state is active and its IP is exactly the same as IP in br0.
Quote:
Originally Posted by jefro
One might use the normal ways one might use between two real computers. That would be usb flash drive or network like ftp. In many vm's one can also use special folders or guest type features to move transparent to the user.
I usually use rsync to copy files to/from my VMs, it normally works regardless if the VM is set up bridged or with NAT. Just install rsync on the host and the guests and use it to copy the files.
A connection to a VM is not usually dependent upon ability to access the internet. I assume you mean you have a host computer and a client vm on the same hardware.
A vm is a client computer connected to the host if you configured it to have one of the choices such as bridged or nat.
If you mean no internet to mean you don't have any network support or only local vm network then you have to use other means. Or you have to change it from local only/no network to bridged or nat.
Other ways are shared resources such as found in guest additions. It may be possible to use other means like com port or such.
Do I understand you correctly? You have several VMs running on a host. You want to copy files from the host to the VMs (or vice versa).
Why do you think you need Internet for that? If you have a SSH server running on the VMs (which I think since you want to use scp) you simply can copy from the host to the guests. Please specify where exactly you have problems. Also specify how you usually connect to the guests (SSH, web-interface, ...) to administer them.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.