LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-29-2020, 12:30 PM   #1
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Rep: Reputation: 84
Has anyone used Oracle VirtualBox?


From
https://www.virtualbox.org
I downloaded
virtualbox-6.1_6.1.16-140961~Ubuntu~bionic_amd64.deb

and I just double click, click on the “Install Package” button.
Then open VirtualBox and I installed OpenSuse Tumbleweed, 64 bit.

So, I am able to run the OpenSuse guest OS.
I am not sure how I can transfer a file from my host (Kubuntu 18.04) to the guest OS.
The clipboard transfer does not work either.

I looked at
https://www.virtualbox.org/manual/ch...ngadditionsiso
which basically says to run
from a command prompt
sudo ./VBoxLinuxAdditions.run

and it still does not work.

This shouldn’t be complicated or is it suppose to be complicated?


~~~~vmelkon
 
Old 11-29-2020, 04:04 PM   #2
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
To transfer a file between computers, use tools like scp, sftp, ftp, rsync. You can also set up NFS.

Quote:
Originally Posted by vmelkon View Post
and it still does not work.
What do you try, and what is the result?

EDIT:

It seems that you may be able to drag and drop icons between the host's and the VM's desktop or file managers after enabling bidirectional drag-and-drop in the Virtualbox Devices menu. I am not sure if this feature is mature, though. There are voices that declare it as buggy.

You can also create a shared folder managed by Virtualbox.

Finally, are you sure that VBoxLinuxAdditions.run was successful?

Last edited by berndbausch; 11-29-2020 at 05:14 PM.
 
Old 11-29-2020, 06:20 PM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Like berndbausch described, I would consider using sftp or similar (easy enough to do from CLI or Dolphin file manager). FWIW, I do similar with a Windows 10 host and openSUSE Leap guest using samba.

However, VirtualBox guest additions should work too. I haven't tried with a Linux host, but it does work with my Windows host/Linux guest situation.
 
Old 11-30-2020, 12:21 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by vmelkon View Post
This shouldn’t be complicated or is it suppose to be complicated?
It's a virtual machine! A simulated computer running inside your operating system. How cool is that!
And certainly very complex.
It's not "supposed" to be complicated, it is complicated.

Also many people use VMs precisely because they are separate from the host OS.
Separation from the host is a feature, not a problem.
 
1 members found this post helpful.
Old 11-30-2020, 06:20 PM   #5
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Original Poster
Rep: Reputation: 84
Quote:
Originally Posted by ferrari View Post
Like berndbausch described, I would consider using sftp or similar (easy enough to do from CLI or Dolphin file manager). FWIW, I do similar with a Windows 10 host and openSUSE Leap guest using samba.

However, VirtualBox guest additions should work too. I haven't tried with a Linux host, but it does work with my Windows host/Linux guest situation.
How can I do it with Dolphin?

~~~~vmelkon
 
Old 11-30-2020, 06:30 PM   #6
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Original Poster
Rep: Reputation: 84
OpenSuse was pissing me off since the update was taking 1 hour of downloading and then it fails with no message. The same happens on a real PC running OpenSuse.
So, I installed Kubuntu 18.04 as the guest OS.

-At the cmd, type
sudo apt install gcc

sudo apt install perl

sudo apt install make

sudo ./VBoxLinuxAdditions.run

-Reboot the guest OS Kubuntu 18.04
-Click on Devices → Shared Clipboard → Bidirectional
-Now, copy to clipboard works. I can copy from the guest text and past it into my host OS’s Kate or something. I can also do vice-versa.
-Click on Devices → Drag and Drop → Bidirectional
This one doesn’t work right. If I drag something from my Dolphin to the guest Kubuntu Dolphin, a menu pops up offering to create a link.

~~~~vmelkon
 
Old 11-30-2020, 08:24 PM   #7
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Quote:
Originally Posted by vmelkon View Post
How can I do it with Dolphin?

~~~~vmelkon
Type 'sftp://<IP address>' in the Dolphin location bar. If Avahi is in use, you can also use 'hostame.local'. The URL can be saved in Dolphin places if desired.

More on Dolphin's network capabilities...
https://www.youtube.com/watch?v=5wGADIyZsTY
https://www.binarytides.com/ssh-dolphin-konqueror-kde/

Last edited by ferrari; 11-30-2020 at 08:26 PM.
 
Old 12-03-2020, 07:32 PM   #8
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Original Poster
Rep: Reputation: 84
Quote:
Originally Posted by ferrari View Post
Type 'sftp://<IP address>' in the Dolphin location bar. If Avahi is in use, you can also use 'hostame.local'. The URL can be saved in Dolphin places if desired.

More on Dolphin's network capabilities...
https://www.youtube.com/watch?v=5wGADIyZsTY
https://www.binarytides.com/ssh-dolphin-konqueror-kde/
If I do that in Dolphin, I get
No route to host

I am able to ping my Kubuntu 18.04 that is running in VirtualBox.
I also downloaded the latest DVD of OpenSuse to avoid the update issues. I installed it in VirtualBox.
I also get
No route to host

for that OpenSuse as well.

I followed the steps at
https://linuxhandbook.com/sftp-server-setup/
to setup the SFTP server (In the VirtualBox OpenSuse and VirtualBox Kubuntu 18.04)

I am able to ping both guest OSes.

~~~~vmelkon
 
Old 12-03-2020, 09:01 PM   #9
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Check that you don't have a firewall bocking that service.
 
Old 12-05-2020, 12:23 AM   #10
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Original Poster
Rep: Reputation: 84
I disabled the firewall in the OpenSuse guest OS and now I get
connection refused
if I do it from Dolphin.
It does not even ask for a username + pwd.

If I do it from the terminal, same thing.
It does not even ask for a username + pwd.

~~~~vmelkon
 
Old 12-05-2020, 03:03 AM   #11
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Then it may be that the SSH service is not running on the server side.
 
Old 12-05-2020, 10:59 AM   #12
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Original Poster
Rep: Reputation: 84
How can I check to see if it is running? How to start it?
 
Old 12-05-2020, 11:29 AM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,736

Rep: Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920Reputation: 5920
How are the VMs networking configured? Are you using NAT (the default) or bridged etc?

For systemd based distributions depends on distribution, the service name could be ssh or sshd.
systemctl status ssh
systemctl start ssh

To enable at boot
systemctl enable ssh
 
Old 12-05-2020, 04:58 PM   #14
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,832
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by vmelkon View Post
From
https://www.virtualbox.org
I downloaded
virtualbox-6.1_6.1.16-140961~Ubuntu~bionic_amd64.deb

and I just double click, click on the “Install Package” button.
Then open VirtualBox and I installed OpenSuse Tumbleweed, 64 bit.

So, I am able to run the OpenSuse guest OS.
I am not sure how I can transfer a file from my host (Kubuntu 18.04) to the guest OS.
The clipboard transfer does not work either.

I looked at
https://www.virtualbox.org/manual/ch...ngadditionsiso
which basically says to run
from a command prompt
sudo ./VBoxLinuxAdditions.run

and it still does not work.

This shouldn’t be complicated or is it suppose to be complicated?


~~~~vmelkon
I don't remember exactly, but there is a way to create a space(partition) that can be seen in both the virtual machine and in the host OS. So you can easily transfer files. I think the way is to create a partition in your host that you mount in your virtualbox setup. Or perhaps it was the opposite. hmm..

But there is an easy way. And clipboard too, but I think that requires guest additions.
 
Old 12-05-2020, 05:22 PM   #15
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Original Poster
Rep: Reputation: 84
Quote:
Originally Posted by michaelk View Post
How are the VMs networking configured? Are you using NAT (the default) or bridged etc?

For systemd based distributions depends on distribution, the service name could be ssh or sshd.
systemctl status ssh
systemctl start ssh

To enable at boot
systemctl enable ssh
I am using bridge mode. OpenSuse has sshd
sudo systemctl status sshd
said that it is inactive so I did
sudo systemctl start sshd
and I rebooted OpenSuse Tumbleweed.

sudo systemctl status sshd
now says

Code:
jake@localhost:~> sudo systemctl status sshd
[sudo] password for root: 
● sshd.service - OpenSSH Daemon
     Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: dis>
     Active: failed (Result: exit-code) since Sat 2020-12-05 18:14:55 EST; 2min 59s ago
    Process: 796 ExecStartPre=/usr/sbin/sshd-gen-keys-start (code=exited, status=0/SUC>
    Process: 800 ExecStartPre=/usr/sbin/sshd -t $SSHD_OPTS (code=exited, status=255/EX>

Dec 05 18:14:55 localhost systemd[1]: sshd.service: Scheduled restart job, restart cou>
Dec 05 18:14:55 localhost systemd[1]: Stopped OpenSSH Daemon.
Dec 05 18:14:55 localhost systemd[1]: sshd.service: Start request repeated too quickly.
Dec 05 18:14:55 localhost systemd[1]: sshd.service: Failed with result 'exit-code'.
Dec 05 18:14:55 localhost systemd[1]: Failed to start OpenSSH Daemon.
~~~~vmelkon
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Fix Upgrading Ubuntu Repositories VirtualBox To Oracle-Provided VirtualBox LXer Syndicated Linux News 0 12-15-2019 02:50 PM
[SOLVED] virtualbox is installed along with virtualbox-dkms and virtualbox-ext-pack and linux-headers-generic, but error for no /dev/vboxdrv Astral Axiom Linux - Software 2 03-04-2019 08:09 PM
[SOLVED] Oracle VM VirtualBox Crash before displaying developer screen (Oh no! Something has gone wrong) agrorian Linux - Newbie 8 03-20-2018 04:07 PM
Does anyone have a list of A blocks used in the US? (or A block used outside the US) abefroman Linux - Security 7 02-13-2012 04:38 PM
LXer: Oracle VM VirtualBox 4.0 Has Arrived LXer Syndicated Linux News 0 12-22-2010 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:43 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