Ubuntu Desktop VM Very Slow??

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Rayj2016
Posts: 59
Joined: 11. Jul 2015, 22:33

Ubuntu Desktop VM Very Slow??

Post by Rayj2016 »

VirtualBox Graphical User Interface Version 6.1.28 r147628 (Qt5.6.2) on Window 10:

I created an Ubuntu 20.04 server VM and it appears to be running ok, However creating a VM for Ubuntu Desktop 20.04 or 21.10 is slower than molasses as
it took about 115-20 mins to create the VM!

Then running Firefox takes about 30 seconds to come up. I never had this problem with previous versions of Vbox.

Also noticed when I try to browse to the server (Server IP = 192.168.1.22) the desktop is Unable to connect and is showing a different IP: Firefox can't establish a connection to the server at 192.168.1.33
I have no idea where this .33 IP is coming from?

Also I browse to http, but Firefox tries https which I do not have configured.

I can ping in both directions, Desktop to server and server to desktop.

I am using bridge adapter on both VM's.

Ideas?

Thanks,

Ray
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Ubuntu Desktop VM Very Slow??

Post by scottgus1 »

If you have been using an earlier version of Virtualbox and upgraded, please try downgrading again. 6.1.28 has a bug or two.
Rayj2016
Posts: 59
Joined: 11. Jul 2015, 22:33

Re: Ubuntu Desktop VM Very Slow??

Post by Rayj2016 »

scottgus1 wrote:If you have been using an earlier version of Virtualbox and upgraded, please try downgrading again. 6.1.28 has a bug or two.
Does that mean losing my current VM server? it took a lot to configure.

Ray
Rayj2016
Posts: 59
Joined: 11. Jul 2015, 22:33

Re: Ubuntu Desktop VM Very Slow??

Post by Rayj2016 »

scottgus1 wrote:If you have been using an earlier version of Virtualbox and upgraded, please try downgrading again. 6.1.28 has a bug or two.
I down graded to 6.1.6 r137129

I still have the same issue. Using bridge adapter.

Desktop VM IP=192.168.1.26
Server VM IP=192.168.1.22

I can ping in both directions.

But browsing to http://192.168.1.22 from the desktop returns:
Unable to connect
Firefox can't establish a connection to the server at 192.168.1.33


The 192.168.1.33 IP has me confused!

Ray
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Ubuntu Desktop VM Very Slow??

Post by scottgus1 »

  1. Start the VM from full normal shutdown, not save-state. Run until you see the problem happen, then shut down the VM from within the VM's OS if possible. If not possible, close the Virtualbox window for the VM with the Power Off option set.

    Right-click the VM in the main Virtualbox window's VM list, choose Show Log. Save the far left tab's log and the hardening log next to it, zip them, and post the zip file, using the forum's Upload Attachment tab.
  2. Right-click the VM in the main Virtualbox window's VM list, choose Show in Explorer/Finder/File Manager. Zip the VM's .vbox file (not the .vbox-prev file), and post the zip file, using the forum's Upload Attachment tab. (Configure your host OS to show all extensions if the folder that opens does not show a .vbox file.)
  3. In the Windows OS, open a Command Prompt and run ipconfig /all. Post the command output.
  4. In the Linux OS, open a Terminal and run ifconfig or ip address. Post the command output.
Rayj2016
Posts: 59
Joined: 11. Jul 2015, 22:33

Re: Ubuntu Desktop VM Very Slow??

Post by Rayj2016 »

DT21.10-2021-10-29-08-30-25_Desktop.log
(87.33 KiB) Downloaded 7 times
Sngine-2021-10-29-08-22-58_Server.log
(87.87 KiB) Downloaded 5 times
scottgus1 wrote:
  1. Start the VM from full normal shutdown, not save-state. Run until you see the problem happen, then shut down the VM from within the VM's OS if possible. If not possible, close the Virtualbox window for the VM with the Power Off option set.

    Right-click the VM in the main Virtualbox window's VM list, choose Show Log. Save the far left tab's log and the hardening log next to it, zip them, and post the zip file, using the forum's Upload Attachment tab.
  2. Right-click the VM in the main Virtualbox window's VM list, choose Show in Explorer/Finder/File Manager. Zip the VM's .vbox file (not the .vbox-prev file), and post the zip file, using the forum's Upload Attachment tab. (Configure your host OS to show all extensions if the folder that opens does not show a .vbox file.)
  3. In the Windows OS, open a Command Prompt and run ipconfig /all. Post the command output.
  4. In the Linux OS, open a Terminal and run ifconfig or ip address. Post the command output.

Instructions are a little ambiguous as I have 2 VM's. 1 Desktop and 1 Server.

Server ifconfig:
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.22 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::a00:27ff:fed7:de3f prefixlen 64 scopeid 0x20<link>
ether 08:00:27:d7:de:3f txqueuelen 1000 (Ethernet)
RX packets 463 bytes 86503 (86.5 KB)
RX errors 0 dropped 179 overruns 0 frame 0
TX packets 151 bytes 50064 (50.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 108 bytes 8412 (8.4 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 108 bytes 8412 (8.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

I can use putty and access the server but I am getting Network error: Connection refused when I try to putty to the Desktop VM?
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Ubuntu Desktop VM Very Slow??

Post by scottgus1 »

Rayj2016 wrote:Instructions are a little ambiguous as I have 2 VM's. 1 Desktop and 1 Server.
Hmm. So I guess that with two VMs, there'd be two of the logs, two .vbox files, and two ifconfigs, and the host ipconfig /all.

So you've provided two logs, good. And one ifconfig.

There's the other ifconfig, the host ipconfig /all and the .vbox files missing..... :wink:
Rayj2016
Posts: 59
Joined: 11. Jul 2015, 22:33

Re: Ubuntu Desktop VM Very Slow??

Post by Rayj2016 »

I nneded to install openSSH-server on the desktop VM. Here is the ifconfig:

enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.26 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::d217:15f0:ff0:b6eb prefixlen 64 scopeid 0x20<link>
ether 08:00:27:1f:a1:10 txqueuelen 1000 (Ethernet)
RX packets 10013 bytes 3420617 (3.4 MB)
RX errors 0 dropped 1033 overruns 0 frame 0
TX packets 1558 bytes 175585 (175.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 314 bytes 31082 (31.0 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 314 bytes 31082 (31.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

C:\Users\Ray>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : Rays-PC
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : Home

Ethernet adapter Local Area Connection 2:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Qualcomm Atheros AR8161/8165 PCI-E Gigabit Ethernet Controller (NDIS 6.20)
Physical Address. . . . . . . . . : 90-2B-34-DE-C1-A0
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : Home
Description . . . . . . . . . . . : Intel(R) 82579V Gigabit Network Connection
Physical Address. . . . . . . . . : 90-2B-34-DE-C1-9E
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.1.21(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Wednesday, October 27, 2021 6:21:05 PM
Lease Expires . . . . . . . . . . : Saturday, October 30, 2021 7:57:13 AM
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 1.1.1.1
1.0.0.1
NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter VirtualBox Host-Only Network:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter
Physical Address. . . . . . . . . : 0A-00-27-00-00-0D
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::7c50:f5f6:a3c1:a64%13(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.56.1(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 218759207
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1C-90-11-BE-90-2B-34-DE-C1-9E
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter VirtualBox Host-Only Network #2:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter #2
Physical Address. . . . . . . . . : 0A-00-27-00-00-1F
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::f52d:7cf:17f0:3c63%31(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.92.1(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 520749095
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1C-90-11-BE-90-2B-34-DE-C1-9E
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter VirtualBox Host-Only Network #3:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter #3
Physical Address. . . . . . . . . : 0A-00-27-00-00-26
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::d8de:8865:f2ff:a06f%38(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.106.1(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 638189607
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1C-90-11-BE-90-2B-34-DE-C1-9E
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Local Area Connection 4:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : TAP-Windows Adapter V9
Physical Address. . . . . . . . . : 00-FF-84-05-9B-35
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Rayj2016
Posts: 59
Joined: 11. Jul 2015, 22:33

Re: Ubuntu Desktop VM Very Slow??

Post by Rayj2016 »

Can't seem to find the .vbox files?
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Ubuntu Desktop VM Very Slow??

Post by scottgus1 »

Scottgus1 wrote:Right-click the VM in the main Virtualbox window's VM list, choose Show in Explorer/Finder/File Manager. Zip the VM's .vbox file (not the .vbox-prev file), and post the zip file, using the forum's Upload Attachment tab. (Configure your host OS to show all extensions if the folder that opens does not show a .vbox file.)
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Ubuntu Desktop VM Very Slow??

Post by scottgus1 »

Also, post the results of "ping" between the server and the desktop VMs.
Rayj2016
Posts: 59
Joined: 11. Jul 2015, 22:33

Re: Ubuntu Desktop VM Very Slow??

Post by Rayj2016 »

Servervbox.zip
(1.5 KiB) Downloaded 4 times
Desktopvbox.zip
(1.54 KiB) Downloaded 4 times
ray@DT21:~$ ping 192.168.1.22
PING 192.168.1.22 (192.168.1.22) 56(84) bytes of data.
64 bytes from 192.168.1.22: icmp_seq=1 ttl=64 time=0.375 ms
64 bytes from 192.168.1.22: icmp_seq=2 ttl=64 time=0.738 ms
64 bytes from 192.168.1.22: icmp_seq=3 ttl=64 time=0.717 ms
64 bytes from 192.168.1.22: icmp_seq=4 ttl=64 time=0.734 ms
64 bytes from 192.168.1.22: icmp_seq=5 ttl=64 time=0.749 ms
64 bytes from 192.168.1.22: icmp_seq=6 ttl=64 time=0.740 ms
^C
--- 192.168.1.22 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5067ms
rtt min/avg/max/mdev = 0.375/0.675/0.749/0.134 ms

ray@snginebcast:~$ ping 192.168.1.26
PING 192.168.1.26 (192.168.1.26) 56(84) bytes of data.
64 bytes from 192.168.1.26: icmp_seq=1 ttl=64 time=1.78 ms
64 bytes from 192.168.1.26: icmp_seq=2 ttl=64 time=0.677 ms
64 bytes from 192.168.1.26: icmp_seq=3 ttl=64 time=0.672 ms
64 bytes from 192.168.1.26: icmp_seq=4 ttl=64 time=0.668 ms
64 bytes from 192.168.1.26: icmp_seq=5 ttl=64 time=0.644 ms
64 bytes from 192.168.1.26: icmp_seq=6 ttl=64 time=0.650 ms
^C
--- 192.168.1.26 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5084ms
rtt min/avg/max/mdev = 0.644/0.848/1.779/0.416 ms
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Ubuntu Desktop VM Very Slow??

Post by fth0 »

The network configuration looks correct to me in general, and since the ping also works, everything in and below the IP level is ok. The domain name part of the HTTP URL ("192.168.1.22" in your example) is either resolved locally or given to a DNS server to resolve, so this is the part to investigate IMHO. You can either use Wireshark or the Firefox Network Monitor (Ctrl-Shift-I, Network Monitor tab) to analyze this.
Rayj2016
Posts: 59
Joined: 11. Jul 2015, 22:33

Re: Ubuntu Desktop VM Very Slow??

Post by Rayj2016 »

fth0 wrote:The network configuration looks correct to me in general, and since the ping also works, everything in and below the IP level is ok. The domain name part of the HTTP URL ("192.168.1.22" in your example) is either resolved locally or given to a DNS server to resolve, so this is the part to investigate IMHO. You can either use Wireshark or the Firefox Network Monitor (Ctrl-Shift-I, Network Monitor tab) to analyze this.
Thanks for your help. This used to work in the past...ie: I used to be able to browse from the Desktop VM to the Web Server VM. I don't know what happened.
cubdukat
Posts: 1
Joined: 4. Nov 2021, 22:30

Re: Ubuntu Desktop VM Very Slow??

Post by cubdukat »

I have been noticing this as well not just in Ubuntu, but with every Linux distro. The boot text screen that used to fly by within seconds now takes almost a full minute to complete. Installations that took five minutes now take 40 minutes, and everything is just noticeably pokey.

I'm going to try going back to a version prior to 6.1.28 because the performance was way better. The only reason I upgraded to .28 was that I also had Hyper-V enabled and it refused to run with it enabled, and quite frankly I got tired of not being able to install many distros outside of Ubuntu/Debian and Fedora (namely Arch-based distros like Manjaro).
Post Reply