You are not logged in.

#1 2014-04-23 09:43:14

Jackoz530
Member
From: ph
Registered: 2014-04-23
Posts: 29

[Solved]Wifi in VMware (Laptop) issues

Uhm Hello. I'm a new guy here that took interest in Arch Linux and practicing and learning how to set it up in a virtual machine before I actually try it on a real machine.

I was following the Beginner's Guide in installing it and never really had problems other than installing Grub which is solved now, and seeing that I had my wireless connection was working, I assumed I never had the need to follow  https://wiki.archlinux.org/index.php/Be … e#Wireless.

And then after installing Grub I saw that my net connection's gone, and so I furiously searched for a way to bring it back. Some of the more helpful ones are https://wiki.archlinux.org/index.php/Wi … diswrapper,
https://wiki.archlinux.org/index.php/Wi … diswrapper,
https://wiki.archlinux.org/index.php/In … ot_working
and
https://bbs.archlinux.org/search.php?se … 1076810861.

Though during the first 4 hours in this prob I've been tempted to post in the forums, but the question was too "pro" for me to actually try it so I began to search again.

I installed packages by downloading them to my host computer and then transferring them to my VM and installing it there using pacman.

Now to cut to the chase:

I used wifi-menu after all I followed most of what I dug up and this is the result:
http://puu.sh/8k0AA.png

Then I tried iw dev and this is the result:
http://puu.sh/8k13B.png

Well I began to think that "no such device found(-19)" error was due to a driver missing, but when I used "lspci -k" this is the result:
Part 1 : http://puu.sh/8k0AA.png
Part 2 : http://puu.sh/8k1d6.png

I've got a hunch that VMWare's got 85% of the blame on this but what do I know.
I love the challenge of actually building something like this on your own but sometimes we need to ask from more experienced people.
Thanks

Last edited by Jackoz530 (2014-04-24 09:54:28)


"I find myself strangely drawn to this odd configuration of activity..."
-Puck(and possibly my whole life)

Offline

#2 2014-04-23 14:29:09

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: [Solved]Wifi in VMware (Laptop) issues

I think you are mixing things here. VMware should not talk directly to your 'real' wireless card. VMware hosts connect with the internet through a virtual ethernet adapter which is VMXNET3 Ethernet controller.

The OS in the virtual machine has a totally different hardware 'environment' than your actual physical compter which is running your vm. I have a laptop with a wireless card, but my vm just uses a virtual ethernet adapter to connect. The software routes these connections over my wireless card.

I think this is the cause of your trouble.

Furthermore, you mention that after installing GRUB you lose your 'net' connection. Could it be that it's because you restarted from the live Arch installation iso into the Arch installation residing in the vm? Maybe that installation needs to be configured to connect (over the ethernet card of course).


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#3 2014-04-23 14:40:09

Jackoz530
Member
From: ph
Registered: 2014-04-23
Posts: 29

Re: [Solved]Wifi in VMware (Laptop) issues

Rexilion wrote:

I think you are mixing things here. VMware should not talk directly to your 'real' wireless card. VMware hosts connect with the internet through a virtual ethernet adapter which is VMXNET3 Ethernet controller.

The OS in the virtual machine has a totally different hardware 'environment' than your actual physical compter which is running your vm. I have a laptop with a wireless card, but my vm just uses a virtual ethernet adapter to connect. The software routes these connections over my wireless card.

I think this is the cause of your trouble.

Well that explains why there's a hell lot of drivers in the VM. So the "device not found (-19)" error is due to netctl not detecting the actual wlan card, or did I misunderstand something?

Rexilion wrote:

Furthermore, you mention that after installing GRUB you lose your 'net' connection. Could it be that it's because you restarted from the live Arch installation iso into the Arch installation residing in the vm? Maybe that installation needs to be configured to connect (over the ethernet card of course).

Yep that's what I mean.I tried to find a way to reboot from the live Arch iSO again, but I don't have an idea how(at least from a vm).
Can you point me towards the right direction?


"I find myself strangely drawn to this odd configuration of activity..."
-Puck(and possibly my whole life)

Offline

#4 2014-04-23 14:49:47

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: [Solved]Wifi in VMware (Laptop) issues

Jackoz530 wrote:
Rexilion wrote:

I think you are mixing things here. VMware should not talk directly to your 'real' wireless card. VMware hosts connect with the internet through a virtual ethernet adapter which is VMXNET3 Ethernet controller.

The OS in the virtual machine has a totally different hardware 'environment' than your actual physical compter which is running your vm. I have a laptop with a wireless card, but my vm just uses a virtual ethernet adapter to connect. The software routes these connections over my wireless card.

I think this is the cause of your trouble.

Well that explains why there's a hell lot of drivers in the VM. So the "device not found (-19)" error is due to netctl not detecting the actual wlan card, or did I misunderstand something?

No, you are still a bit off here. The VM is not *intended* to detect your real physical wireless card. The software emulates an entire virtual case full of hardware which has almost nothing to do with your actual physical laptop. The VM does not know your actual connection is wifi. It does not know you have a vga card of manufactur x. Or a mobo of manufactor y.

The VM has a virtual ethernet card (VMXnet3 in your case). It has a virtual vga card which is not connected to your screen, but to the window you are using to view your vm.

You are, in fact, querying for a device that is not there and should not be there. You probably only need to attach a dhcp client to that vmxnet3 ethernet adapter and you are good to go.

Jackoz530 wrote:
Rexilion wrote:

Furthermore, you mention that after installing GRUB you lose your 'net' connection. Could it be that it's because you restarted from the live Arch installation iso into the Arch installation residing in the vm? Maybe that installation needs to be configured to connect (over the ethernet card of course).

Yep that's what I mean.I tried to find a way to reboot from the live Arch iSO again, but I don't have an idea how(at least from a vm).
Can you point me towards the right direction?

I think that the virtual BIOS is configured to look for a bootsector on the disk first and then on the cd (Arch .iso in our case). That is why you initially booted into the iso and now boot into the installed version of arch on the virtual disk (image).

If you really want to boot back into the iso, you have to tell vmware to boot from the cd first and then from the hard disk (or not from the hard disk at all).


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#5 2014-04-23 15:23:31

Jackoz530
Member
From: ph
Registered: 2014-04-23
Posts: 29

Re: [Solved]Wifi in VMware (Laptop) issues

Rexilion wrote:
Jackoz530 wrote:
Rexilion wrote:

I think you are mixing things here. VMware should not talk directly to your 'real' wireless card. VMware hosts connect with the internet through a virtual ethernet adapter which is VMXNET3 Ethernet controller.

The OS in the virtual machine has a totally different hardware 'environment' than your actual physical compter which is running your vm. I have a laptop with a wireless card, but my vm just uses a virtual ethernet adapter to connect. The software routes these connections over my wireless card.

I think this is the cause of your trouble.

Well that explains why there's a hell lot of drivers in the VM. So the "device not found (-19)" error is due to netctl not detecting the actual wlan card, or did I misunderstand something?

No, you are still a bit off here. The VM is not *intended* to detect your real physical wireless card. The software emulates an entire virtual case full of hardware which has almost nothing to do with your actual physical laptop. The VM does not know your actual connection is wifi. It does not know you have a vga card of manufactur x. Or a mobo of manufactor y.

The VM has a virtual ethernet card (VMXnet3 in your case). It has a virtual vga card which is not connected to your screen, but to the window you are using to view your vm.

You are, in fact, querying for a device that is not there and should not be there. You probably only need to attach a dhcp client to that vmxnet3 ethernet adapter and you are good to go.



Jackoz530 wrote:
Rexilion wrote:

Furthermore, you mention that after installing GRUB you lose your 'net' connection. Could it be that it's because you restarted from the live Arch installation iso into the Arch installation residing in the vm? Maybe that installation needs to be configured to connect (over the ethernet card of course).

Yep that's what I mean.I tried to find a way to reboot from the live Arch iSO again, but I don't have an idea how(at least from a vm).
Can you point me towards the right direction?

I think that the virtual BIOS is configured to look for a bootsector on the disk first and then on the cd (Arch .iso in our case). That is why you initially booted into the iso and now boot into the installed version of arch on the virtual disk (image).

If you really want to boot back into the iso, you have to tell vmware to boot from the cd first and then from the hard disk (or not from the hard disk at all).


So a vm is just an emulator if I understand that completely.
I tried to attach a dhcp client to the vmxnet3, though I don't think it actually worked.
Results:
http://puu.sh/8khRL.png

I'm not sure if I did it right but I followed this link:
https://wiki.archlinux.org/index.php/Ne … IP_address

I had the impression of applying the wired settings since the vmxnet3 is an ethernet cable.

I'll try of finding a way to fix it using the Arch iso, but can you give me any other ideas?


"I find myself strangely drawn to this odd configuration of activity..."
-Puck(and possibly my whole life)

Offline

#6 2014-04-23 15:25:15

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: [Solved]Wifi in VMware (Laptop) issues

Your connection appears to be working since it succesfully resolved google.com to an ip.

Try something like:

wget www.google.com

Maybe something is not supporting or blocking icmp.


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#7 2014-04-24 00:37:57

Jackoz530
Member
From: ph
Registered: 2014-04-23
Posts: 29

Re: [Solved]Wifi in VMware (Laptop) issues

Still nothing though. The second connection kept on timing out...

http://puu.sh/8kVRJ.png

Though my friend said that in order for vm's to have internet connection, the host computer must disable net connection.
I'll try his idea and report the results here...

EDIT: Actually tried bridge connecting the vm but nothing. It went back to Unreachable host. So I switched it back to NAT.
Since the live iso got a net connection I'm gonna try and fix it in there. I'm gonna report back with results.

Last edited by Jackoz530 (2014-04-24 02:14:56)


"I find myself strangely drawn to this odd configuration of activity..."
-Puck(and possibly my whole life)

Offline

#8 2014-04-24 05:38:03

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: [Solved]Wifi in VMware (Laptop) issues

Jackoz530 wrote:

Still nothing though. The second connection kept on timing out...

http://puu.sh/8kVRJ.png

But again, it resolves it's DNS name to an ip.

Jackoz530 wrote:

Though my friend said that in order for vm's to have internet connection, the host computer must disable net connection.
I'll try his idea and report the results here...

That does not make any sense. Interesting friend though.

Jackoz530 wrote:

EDIT: Actually tried bridge connecting the vm but nothing. It went back to Unreachable host. So I switched it back to NAT.
Since the live iso got a net connection I'm gonna try and fix it in there. I'm gonna report back with results.

Try the simple NAT, yes. Bridging is for advanced setups and not well supported on each piece of hardware.


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#9 2014-04-24 06:01:17

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [Solved]Wifi in VMware (Laptop) issues

Rexilion has done a pretty good job explaining this.  Your friend is completely wrong.

Inside your VM, look at the output of lspci.  Those "peripherals" are what are available to your machine.  You will note that one of them is a network interface.  Note there are no wireless interfaces, but there are wired interfaces.  Conceptually, there is a virtual network consisting of the wired interface in the VM, and one implemented on the host side by the VMWare host software.  That "network" allows communication between the host and the guest.  If the host bridges that virtual network to one of its physical interfaces, then the virtual machine is like any other computer on that external network.  If the host provides NAT, then the host acts like a router/firewall to the guest.  Also, if you are using a NAT, then the host also provides a DHCP server to provide the guest a dynamic address.  This address is generally of the form 10.0.x.x.

So,   How are you getting the address on your virtual machine?
What are you you using to control your "network interface" inside your virtual machine?  Netctl?  NetworkManager? dhcpd.service? 
Look at (or post) the output of systemctl --type=service --no-pager
What is the output of ip addr  ? It should be of the form 10.0.x.x (I think.  It is for VirtualBox anyway)
What is the output of ip route  The route should be a gateway on the same subnet as the IP address of your virtual machine.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#10 2014-04-24 09:54:11

Jackoz530
Member
From: ph
Registered: 2014-04-23
Posts: 29

Re: [Solved]Wifi in VMware (Laptop) issues

Well actually I think it's pretty much solved .  "pacman -Syu" solved it all.

Well the actual problem is due to installations of some packages not being completed because of lack of memory for the vm.
I found this out when I realized that pacman -Syu wasn't really executing most of the installations leaving the whole base system incomplete.

So I raised my vmware memory allocation (or virtual ram) from 256 mb to 1024 mb. Now that I think about it, this may be overkill.
Then I utilized pacman -Syu then it was finished.

Then I booted out of the live ISO then into the installed Arch Linux system then pinged, and success!

I guess it's mostly vmware's fault after all.
Thanks for those who gave me ideas and helped me. Marking it solved now.


"I find myself strangely drawn to this odd configuration of activity..."
-Puck(and possibly my whole life)

Offline

#11 2014-04-24 10:22:01

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: [Solved]Wifi in VMware (Laptop) issues

Good job figuring that out. Still, it's kind of odd that dns resolving worked while connecting to the internet did not.

Anyways, I hope you like your new OS.


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

Board footer

Powered by FluxBB