Twincat, how to virtualise Ethercat between two hyper V pc - virtual-machine

I have created 2 Hyper V machine running windows 11 and Twincat .29, i have then created a NIC on both the virtual PC´s. to run Ethercat, and installed beckohff RT driver on it.
All that works.
The NIC dont have any connection to the hardware NIC, all is virtualise.
Now my question is, how to set the virtual NIC to tranfed a Ethercat telegram.
i can't turn the hyper V switch into a TSN switch, or is that possible?
Can i get the 2 virtual PC to, think there is a "network cable" between them, so there is no switch, like in real life ethercat.

Related

Run Raspberry Pi script from Windows PC using Ethernet

As the title says, I want to run a script on the Raspberry Pi from my Windows PC. The connection between PC and Raspberry Pi 4 (Raspbian OS) should be done using an Ethernet cable. The Rasperry Pi cannot be operated permanently in the network. Is it correct that then a SSH connection is out of the question?
For background: the Raspberry Pi is connected to a camera and a stepper motor. Depending on the position of the object to be photographed, the stepper motor is moved and then a photo is taken. This photo is then to be sent back to the PC via the network cable. The script on the Raspberry Pi (rotation stepper motor and image capture) is implemented with Python and fully functional. Is it generally possible to run the Pi script using the Ethernet cable and transfer the generated images back?
Using a Windows QT GUI I want to start this script and display the images later.
Is this possible or can someone suggest a simpler way? Maybe someone already had a similar problem and would help me.
Many thanks in advance.
If you have an extra Ethernet NIC on your computer, you can directly connect your PC and Raspberry PI (on relatively newer hardware) or if that doesn't work, you can use a crossover Ethernet cable to connect your PC to the PI. Then configure an ssh server on the PI and enable Avahi and dhcpd and execute your script via that using MSYS ssh or Putty (ssh pi#hostname.local). Don't forget to change your hostname.
Bonus tip: you can also send your data (images) back over the same connection.

Not picking up 2nd vm

Hi good day cut a long story short I am trying to run two vms on two different pcs as my main pc can t handle them both running at the same time do my current setup is
Dell(main pc) running parrot os in vm
Crappy laptop running durp n stink in vm
Both on same Wi-Fi both share internet connection via shared connection under Wi-Fi options shared but the problem I am facing is when I do any scan on network e.g. Netdiscover nmap etc i can pick up everything else on the network
Phones xbox the laptop running Windows 7 but I can't actually pick up the Ubuntu os that's running in vm
I forgot to mention they are running virtual box latest version and both are setup to allow vm under network settings plus both set to bridged

Wireless network causes virtual machines to be inaccessible by outside world

I currently have two Ubuntu 14.04 virtual machines running on a windows 7 host. The virtual machines are configured to use a bridged network adapter.
When the host machine is hardlined to the internet, the virtual machines are able to ping the outside world as well as be ping by the outside world.
When the host machine is on a wireless network, the virtual machines cannot ping the outside world, and the outside world is not able to ping the virtual machines.
When connected to a wireless network, I receive the 'Destination host unreachable' error when pinging either from the virtual machines to outside, or from outside to the virtual machines.
It may be worth noting that these virtual machines are being run inside VirtualBox. Also something which may be applicable here, section 6.5 of the virtualbox manual states:
Bridging to a wireless interface is done differently from bridging to
a wired interface, because most wireless adapters do not support
promiscuous mode. All traffic has to use the MAC address of the host's
wireless adapter, and therefore VirtualBox needs to replace the source
MAC address in the Ethernet header of an outgoing packet to make sure
the reply will be sent to the host interface. When VirtualBox sees an
incoming packet with a destination IP address that belongs to one of
the virtual machine adapters it replaces the destination MAC address
in the Ethernet header with the VM adapter's MAC address and passes it
on. VirtualBox examines ARP and DHCP packets in order to learn the IP
addresses of virtual machines.
I'm not sure what may be causing this issue. Accessing these virtual machines from the outside world when switching between networks is necessary in my situation. Any ideas as to what may be going on?
Thanks in advance for any help!
Just to provide some value to those who may stumble upon this issue in the future:
The source of this problem stems from a setting within virtualbox. Open virtualbox, and under the Settings > Network > Adapter page, there is a name field.
If attempting to connect to the virtual machines over a wired connection, select your host machines Ethernet adapter.
If attempting to connect to the virtual machines over a wireless connection, select your host machine's wireless adapter.
Hope this helps someone out there!

How can I configure a Client Hyper-V (on Windows 8) to connect to the host and other VMs without a network connection?

I'm trying to develop an interface to an application that doesn't run on Windows 8. Hence, I've created a VM with Windows 7 running the integration service and another service running on the Windows 8 host.
I have three Virtual Network scenarios configured for Hyper-V: Wireless, Shared and Internal. Where Wireless allows all VMs and the host to connect to a wireless network (External), Shared let's the VMs connect through the host via a VPN (Internal) and Internal creates a network within the host where the VMs don't have network access (Private).
When I'm in Wireless (External) mode and there's a wireless network to connect to, everything works fine as if I were testing using to physical PCs on a wireless network. However, today I had a situation where I wasn't connected to a network but still wanted to do some testing and I could not get the VM to see the host and vice-versa. This scenario was quite straight forward to create on VMware which I used before switching to Hyper-V...
Has anyone managed to make Client Hyper-V VMs and the host communicate without a network? Can you guide me how to set it up?
Wireless networking under Windows 8 Hyper V can not communicate with multiple VM the Wireless NIC is assign to only one Hyper V internet connection,
Meaning only one Hyper V can connect to the Internet preventing others from connecting unless you use multiple Nic's Wireless Network Cards or USB Wireless Network.
It is only after you restart or shut down your computer that Hyper-V problems start.
So if you can not connect any of your Hyper VMs then you problem could be due to a shutdown error that Hyper-v in counted Try restarting the whole computer then Hyper- VMs your problem should fix itself.
Might want to try this. I am having similar problems as you and all signs point to this particular solution working, but for me it is not. Might help you, though.
http://blogs.technet.com/b/doxley/archive/2008/07/07/disconnecting-hyper-v.aspx
The solution that DID end up working for me was this:
http://www.elmajdal.net/Win2k8/Enabling_Wireless_Network_For_Hyper_V_Virtual_Machine.aspx

Force Windows 8 to use UMTS

My situation:
I am running (evaluating) Windows 8 (RTM) on my Laptop.
I am connected to a LAN which has NO access to the internet (DEV-LAN).
I am running a virtual machine (VMware Workstation) which is connected via Bridge Mode to the DEV-LAN. This virtual machine has no access to the internet.
Before, with Windows 7 I was able to connect the host via UMTS to the internet while the virtual machine still was connected to the DEV-LAN. So I could keep working within the virtual machine while doing research (MSDN, Google, Stackoverflow) in the internet on the host.
When I now connect the Windows 8 host to the mobile broadband, nothing changes in the runtime behaviour. The whole Network communication is still running over DEV-LAN. Windows 8 tells me in the Network Sidebar that mobile broadband is connected, but it does not use it. When I remove the network plug of DEV-LAN, THEN the broadband connection will be used. But then obviously, I cannot work in my virtual machine, which depends on DEV-LAN.
Question:
Is there any switch in windows 8 that I can use to tell the system to use broadband over LAN, when available?
Thanks a lot!
Torsten
edit for the comment of pst: the following metrics are given
IPv4-Routentabelle
===========================================================================
Aktive Routen:
Netzwerkziel Netzwerkmaske Gateway Schnittstelle Metrik
0.0.0.0 0.0.0.0 192.168.23.1 192.168.23.12 25
0.0.0.0 0.0.0.0 77.24.97.50 77.24.97.49 296
It finally works :-)
I set the metric of my LAN-Adapter to 999 and everything is as I want it to be.
Any change of the UMTS Adapter to a lower metric was unsuccessful.
Even when I set the metric to 1 or 5 or 10, netstat /rn told me a metric > 50.
So when I cannot lower the one metric, I have to raise the other one ;-)
The metric can be easily changed like follows:
System Settings
Network and Internet
Network Connections
Ethernet -> Context Menu -> Properties
Select Internet Protocol (v4) -> Properties
Advanced
Automatic Metric off and manually set to 999