Re: VMware
Hi Tom H! On 2015.10.29 at 03:24:37 -0400, Tom H wrote next: > You cannot bridge a wireless NIC: > > http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge#It_doesn.27t_work_with_my_Wireless_card.21 > > It's been disabled in the kernel's bridging code since 2.6.34 (AFAIR). Umm this is on SL7.1 which uses kernel 3.10 $ brctl show bridge name bridge id STP enabled interfaces bridge0 8000.002590c73bd6 no eth0 wlan0 $ cat /etc/sl-release Scientific Linux release 7.1 (Nitrogen) I created bridge0 with NM and changed local ethernet to be its slave, after that hostapd bridged it with wlan0 with the following config interface=wlan0 bridge=bridge0 The wireless NIC was the random one that I got in package with some other motherboard, I didn't mess with firmware or anything like that $ lspci | grep Wireless 01:00.0 Network controller: Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01) Somehow I doubt that I managed to fall into 1% of users who has special card with special firmware. The documents you linked must not be telling the whole story. Or just outdated, as it was written in the 2009. > > There are web sites that show how to get around this limitation via > either ebtables or proxy-arp. I've never tried either but I assume > that, since VirtualBox and VMware allow it, they must use a similar > workaround under the cover. > > I launch VMs with "qemu-system-x86_64 ... -netdev > bridge,br=bridge0,id=net0 ..." on my laptop without adding my wireless > NIC to br0 and I set up forwarding of a VM's packets with: > > # echo "1" > /proc/sys/net/ipv4/ip_forward > and > # iptables -t nat -A POSTROUTING -o wifi0 -j MASQUERADE > or > # iptables -t nat -A POSTROUTING -s 10.0.2.0/24 ! -d 10.0.2.0/24 -j MASQUERADE > > If you use libvirt, define a "routed" network with virsh, and choose > it when you create a VM, virt-install sets up the forwarding > automatically. > > You haven't said whether you want to be able to access VMs from > another box but, FYI, I can ssh to VMs from another laptop by running > "ip ro add 10.0.2.0/24 via 192.168.1.43 dev wifi0" on that laptop, > where 192.168.1.43 is the ip address of the laptop hosting the VMs. > -- Vladimir
Filesystem package messes with /usr/local
I always thought that /usr/local was defined to be an area left alone by the operating system. For many years, we have made it a symlink to a read-only directory in AFS space. This has worked fine - until now. When I tried to update the "filesystem" package, it failed because it tried to do chmods on (at least) /usr/local/bin and /usr/local/etc. Why is it doing this? Is /usr/local no longer truly local? thanks, Steve Gaarder System Administrator, Dept of Mathematics Cornell University, Ithaca, NY, USA gaar...@math.cornell.edu
Re: VMware
On 10/29/2015 01:45 AM, prmari...@gmail.com wrote: If you have slow video performance on KVM look into spice. Which is not included with SL but it's not hard to add. It is included in the repos; I consider being in the repos to be included with SL. Spice makes things really nice.
Re: VMware
Vladimir, You seem to display a bridge between an 802.3 (eth) and an 802.11 (wnic). I am running on 4 hours sleep right now and still have 7 hours before I may leave for home; thus I apologize for being too exhausted to figure out the actual commands and configurations to implement what you display that evidently would work. My laptop has both a physical 802.3 interface and a physical 802.11 interface, with the 802.3 rarely used (most sites only provide 802.11). Do I add under SL 7.1 a "virtual" eth (e.g., an eth1) on the host, then make that a slave to the physical 802.11 wnic on the host, and then attach VirtualBox to the virtual eth on the host via NAT under VirtualBox? In any event, a copy (typescript, screenshots, etc.) of the actual commands you used, any needed configuration files, and a copy of any outputs produced during the activation/configuration greatly would be appreciated. As for the comment from someone in this email exchange that VirtualBox NAT works from a wnic to the internal 802.3 virtual eth on the virtual machine that supports MS Win 7 -- it does not, hence my query. Yasha Karant On 10/29/2015 09:11 AM, Vladimir Mosgalin wrote: Hi Tom H! On 2015.10.29 at 03:24:37 -0400, Tom H wrote next: You cannot bridge a wireless NIC: http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge#It_doesn.27t_work_with_my_Wireless_card.21 It's been disabled in the kernel's bridging code since 2.6.34 (AFAIR). Umm this is on SL7.1 which uses kernel 3.10 $ brctl show bridge name bridge id STP enabled interfaces bridge0 8000.002590c73bd6 no eth0 wlan0 $ cat /etc/sl-release Scientific Linux release 7.1 (Nitrogen) I created bridge0 with NM and changed local ethernet to be its slave, after that hostapd bridged it with wlan0 with the following config interface=wlan0 bridge=bridge0 The wireless NIC was the random one that I got in package with some other motherboard, I didn't mess with firmware or anything like that $ lspci | grep Wireless 01:00.0 Network controller: Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01) Somehow I doubt that I managed to fall into 1% of users who has special card with special firmware. The documents you linked must not be telling the whole story. Or just outdated, as it was written in the 2009. There are web sites that show how to get around this limitation via either ebtables or proxy-arp. I've never tried either but I assume that, since VirtualBox and VMware allow it, they must use a similar workaround under the cover. I launch VMs with "qemu-system-x86_64 ... -netdev bridge,br=bridge0,id=net0 ..." on my laptop without adding my wireless NIC to br0 and I set up forwarding of a VM's packets with: # echo "1" > /proc/sys/net/ipv4/ip_forward and # iptables -t nat -A POSTROUTING -o wifi0 -j MASQUERADE or # iptables -t nat -A POSTROUTING -s 10.0.2.0/24 ! -d 10.0.2.0/24 -j MASQUERADE If you use libvirt, define a "routed" network with virsh, and choose it when you create a VM, virt-install sets up the forwarding automatically. You haven't said whether you want to be able to access VMs from another box but, FYI, I can ssh to VMs from another laptop by running "ip ro add 10.0.2.0/24 via 192.168.1.43 dev wifi0" on that laptop, where 192.168.1.43 is the ip address of the laptop hosting the VMs. <>
Re: VMware
On Mon, Oct 26, 2015 at 2:45 PM, Yasha Karantwrote: > Although the KVM solution discussed here may work, the description of this > in operation appears to be a true > hypervisor even when only used to run, say, MS Windows as an application > environment virtual machine under SL. That is, this solution is not the > same "in spirit" as is VirtualBox. On a hard 802.3 wired connection, > VirtualBox does provide Internet access to the outside world from the guest; > this seems to be a failure on a 802.11 ISP wifi connection. JHas anyone > used VMware-Player-12.0.0-2985596.x86_64.bundle on a SL7 host with a MS Win > guest? I don't see why you think that VirtualBox and VMware aren't hypervisors like KVM. > If so, is the "free" version stripped of sufficient features as not to be > useful in a "production" environment? I do not need merely to look at > pretty pictures of a running guest environment; I need to access the > Internet. to share files (e.g., docx, pptx, etc.) between the Linux host and > the MS Windows guest, and to access both USB devices and the DVD drive of > the host on the guest. > > My institution cannot afford the US$249 for the VMware Workstation license, > and I cannot justify the expenditure of research funds. However, VMware > player is licensed for free for non-commercial private use (mine). > > I do note that my query on the failure of VirtualBox to work with 802.11 > host Linux networks and thus supply a connection to the guest OS within > VirtualBox now has had 46 views on the VirtualBox Linux host "forum" without > a reply -- evidently, this is a problem with the current VirtualBox for > which no one has a viable solution -- hence my interest in VMware Player. You cannot bridge a wireless NIC: http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge#It_doesn.27t_work_with_my_Wireless_card.21 It's been disabled in the kernel's bridging code since 2.6.34 (AFAIR). There are web sites that show how to get around this limitation via either ebtables or proxy-arp. I've never tried either but I assume that, since VirtualBox and VMware allow it, they must use a similar workaround under the cover. I launch VMs with "qemu-system-x86_64 ... -netdev bridge,br=bridge0,id=net0 ..." on my laptop without adding my wireless NIC to br0 and I set up forwarding of a VM's packets with: # echo "1" > /proc/sys/net/ipv4/ip_forward and # iptables -t nat -A POSTROUTING -o wifi0 -j MASQUERADE or # iptables -t nat -A POSTROUTING -s 10.0.2.0/24 ! -d 10.0.2.0/24 -j MASQUERADE If you use libvirt, define a "routed" network with virsh, and choose it when you create a VM, virt-install sets up the forwarding automatically. You haven't said whether you want to be able to access VMs from another box but, FYI, I can ssh to VMs from another laptop by running "ip ro add 10.0.2.0/24 via 192.168.1.43 dev wifi0" on that laptop, where 192.168.1.43 is the ip address of the laptop hosting the VMs.
Re: VMware
hi, yes, the wlan card seems fully connected. in virtualbox 4 or 5, when you create a virtual machine, in the network settings panel, select the bridge mode and the physical nic you want to use, like in this screenshot: http://i.imgur.com/FYr4BZs.png (in italian, but clear I hope...) it works even in open source edition of virtualbox and if the host is connected to a wpa2 enterprise secured wifi network. have a nice day, francesco Il 29/10/2015 06:33, Yasha Karant ha scritto: Hi Francesco, I just installed VirtualBox-5.0-5.0.6_103037_el7-1.x86_64.rpm along with Oracle_VM_VirtualBox_Extension_Pack-5.0.6-103037.vbox-extpack and the MS Win tools package of the above VirtualBox release to no avail. What do you mean by "wifi adapter must be fully connected on your linux host"? On the SL7 host, ifconfig -a shows: wlp61s0: flags=4163mtu 1500 inet 192.168.[redacted] netmask 255.255.255.0 broadcast 192.168.[redacted] inet6 [redacted] prefixlen 64 scopeid 0x20 ether [redacted] txqueuelen 1000 (Ethernet) RX packets 45054 bytes 47174187 (44.9 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 28494 bytes 3464767 (3.3 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 with the above redacted just in the event of any attempted compromises from any inappropriate use of this public list (not by any legitimate subscribers). However, all of the redacted data is valid and wlp61s0 is fully functional. Is this "fully connected"? As for KVM, I have other reservations about this on a workstation (not hardened server with external firewall defense) -- but that is a separate subject. Yasha Karant On 10/28/2015 12:54 AM, Francesco M. Taurino wrote: hi yasha, kvm windows 7/8/10 guests can be a bit slow in graphic applications, but quite usable if you need cpu/memory raw power. you can use virtualbox, and bridge the virtual lan card of your guest to a physical lan or a wifi adapter. the wifi adapter must be fully connected on your linux host. ftaurino Il 27/10/2015 10:31, Karel Lang AFD ha scritto: Hi, just q. (i surely missed it in earlier conv.) - why can't you use KVM as a virtualization layer? I use KVM on servers, workstations, laptops and i find it has all i need. I just missed thing like 'shared folder' between host/guest like eg. vbox has, but this can be remedied by compiling/turning on the 9pFS in kernel, if the 10Gbps of the NATed internal networking with virtio driver is not enough.