Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
06-16-2017, 10:45 AM
|
#1
|
Member
Registered: Nov 2015
Posts: 397
Rep: 
|
How to move a file into a Ubuntu guest in KVM?
I have a Ubuntu guest running in KVM.
How to move a file (e.g. a 2 GB file) from host (Linux Mint)
into that Ubuntu guest running in KVM?
I did not find any GUI methods to access external disk from the VM.
What did I missed?
|
|
|
06-16-2017, 11:26 AM
|
#2
|
Member
Registered: Feb 2013
Distribution: Fedora 25, RHEL7, RHCI stack
Posts: 38
Rep: 
|
The typical way to move files between hosts and guests in a virtual environment is to use scp. Can go either way, so from the Mint host, you would run
Quote:
mint]#scp /path/to/file user@ubuntu:/destination/for/file
|
or from the Ubuntu guest
Quote:
ubuntu]#scp user@mint:/path/to/file /destination/for/file
|
Replace user@ubuntu with your ubuntu username and the ubuntu vm IP address, or user@mint with the mint user and mint machine IP address and you should be good to go
Last edited by Demosa; 06-16-2017 at 11:38 AM.
Reason: More details
|
|
|
06-16-2017, 11:34 AM
|
#3
|
Member
Registered: May 2016
Location: Belgrade, Serbia
Distribution: Debian
Posts: 229
Rep: 
|
Use ssh, wget, rsync or curl to do it over internet. Just googe/duckduckgo it, you will find lots of examples.
|
|
|
06-16-2017, 12:16 PM
|
#4
|
Member
Registered: Nov 2015
Posts: 397
Original Poster
Rep: 
|
I tried ssh, but it would not permit me to ssh.
Code:
$ ssh sansforensics@192.168.122.223
ssh: connect to host 192.168.122.223 port 22: Connection refused
If you have time , try this VM image:
Click on link: "Download SIFT Workstation VMware Appliance Now - 2.4 G"
https://digital-forensics.sans.org/c...d-sift-kit/3.0
The VM image is the one I have problem with.
Do not do the "How To:" steps.
|
|
|
06-16-2017, 12:37 PM
|
#5
|
Member
Registered: May 2016
Location: Belgrade, Serbia
Distribution: Debian
Posts: 229
Rep: 
|
It is refused because you probably have firewall preventing you from connecting. So, both on host and guest, you need UFW. Use it for simplicity sake. Then do sudo ufw allow ssh on both host and guest. If you have ssh client/server on both installed and you got your IP addresses right, you will be able to use ssh. Or, as Demosa suggested, scp.
|
|
|
06-16-2017, 01:03 PM
|
#6
|
Member
Registered: Nov 2015
Posts: 397
Original Poster
Rep: 
|
Ok. I will read up on ufw first.
I wish all distros standardize on firewall.
I thought they were using firewalld & firewall-cmd.
Last edited by fanoflq; 06-16-2017 at 01:14 PM.
|
|
|
06-16-2017, 01:15 PM
|
#7
|
Member
Registered: May 2016
Location: Belgrade, Serbia
Distribution: Debian
Posts: 229
Rep: 
|
Quote:
I wish all distros standardize on firewall.
|
In a way they do. It is called iptables. Used firewalld and firewall-cmd, you will find UFW much more simple to use. It really is uncomplicated firewall :P
|
|
|
All times are GMT -5. The time now is 06:11 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|