LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 06-16-2017, 10:45 AM   #1
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Rep: Reputation: Disabled
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?
 
Old 06-16-2017, 11:26 AM   #2
Demosa
Member
 
Registered: Feb 2013
Distribution: Fedora 25, RHEL7, RHCI stack
Posts: 38

Rep: Reputation: Disabled
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
 
Old 06-16-2017, 11:34 AM   #3
dejank
Member
 
Registered: May 2016
Location: Belgrade, Serbia
Distribution: Debian
Posts: 229

Rep: Reputation: Disabled
Use ssh, wget, rsync or curl to do it over internet. Just googe/duckduckgo it, you will find lots of examples.
 
Old 06-16-2017, 12:16 PM   #4
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Original Poster
Rep: Reputation: Disabled
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.
 
Old 06-16-2017, 12:37 PM   #5
dejank
Member
 
Registered: May 2016
Location: Belgrade, Serbia
Distribution: Debian
Posts: 229

Rep: Reputation: Disabled
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.
 
Old 06-16-2017, 01:03 PM   #6
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Original Poster
Rep: Reputation: Disabled
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.
 
Old 06-16-2017, 01:15 PM   #7
dejank
Member
 
Registered: May 2016
Location: Belgrade, Serbia
Distribution: Debian
Posts: 229

Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel-based Virtual Machine (KVM): Switching from KVM guest to host (e.g. Linux Mint) & maximize guest screen fanoflq Linux - Newbie 2 07-13-2016 06:10 PM
LXer: Set up Spicevmc Channel on Ubuntu 11.04 as KVM Server and spice-vdagent as a KVM guest LXer Syndicated Linux News 0 06-15-2011 07:10 PM
KVM with Ubuntu guest - guest crashes when some apps are 'full screened' TonyRogers Linux - Virtualization and Cloud 0 05-15-2011 12:18 PM
ubuntu move kvm guest from one host to another thllgo Linux - Software 1 04-18-2011 06:12 PM
LXer: Installing Windows XP As A KVM Guest On Ubuntu 8.10 Desktop LXer Syndicated Linux News 0 02-15-2009 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration