Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important information on the platform change.

cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

QEMU VM Setup in Windows 11 results in a not working Internet connection

QEMU VM Setup in Windows 11 results in a not working Internet connection

ChrisITD
New Poster

Hi Community,

last week I tried to follow the instructions to setup a QEMU VM on my Windows 11 machine. I followed the instructions here.

I used the create-new-vm-amd64-noproxy.bat to create the VM and launch-amd64-noproxy.bat to run it.

But opon completion it showed this message:

ChrisITD_0-1646040623571.png

After a restart it seemed to be working, so I connected via ssh and tried to continue with installing snapcraft. Then this error appeared:

ChrisITD_2-1646040767184.png

So I tried to use apt-get update to update some other packages and it didn't work:

ChrisITD_1-1646040748605.png

After further investigation and comparing to my collegues Windows 10 machine, we found out that the .bat script seems to fail on creating the necessary network adapters. The following is a screenshot from my collegues network adapters:

ChrisITD_3-1646040948323.png

And here are mine:

ChrisITD_4-1646040964998.png

The adapters starting with DE-AD-BE-... are completly missing.

Did someone encounter the same problem? Or does anyone know how to solve this? I'm fairly sure that it has something to do with Windows 11.

Chris

9 REPLIES 9

CodeShepherd
Community Moderator
Community Moderator

The network adapters are created when ctrlX COREvirtual are added to ctrlX WORKS and run in network adapter mode. They are not used by QEMU:

QEMU ctrlX COREvirtual Network ConnectionsQEMU ctrlX COREvirtual Network Connections

There seems to be a problem already addressed to QEMU directly but no solution up to now. See this external link.

Hi CodeShepard,

according to my collegue, the problem seems to be elsewhere. He had the same exit code, but the setup and internet connection for the VM worked for him.

nickH
Community Moderator
Community Moderator

Hi ChrisITD, 

you are right, for some reason it looks like your QEMU VM does not have connection to the internet. 

You could try to setup a QEMU with proxy usage and a smal proxy tool on your PC (e.g. Px) to get the network connection to the VM. 

To do this you can follow the steps in this How-To video: SETUP CTRLX AUTOMATION DEVELOPMENT ENVIRONMENT USING QEMU VM.

 

Best regards, 

Nick

Hi nickH,

unfortunatly this resulted in the same problem. I used px to create a fake proxy on my machine using this command:

ChrisITD_0-1646295213977.png

And then I continued with the proxy installation of QEMU, but the result is the same when I want to install Snapcraft later:

ChrisITD_1-1646295368388.png

 

nickH
Community Moderator
Community Moderator

I don't know what you mean by "fake proxy". 

A VM running on a host without direct internet access has to use a proxy server. We recommend to install and run px.exe as local proxy server on your Windows host. This local proxy forwards http and https requests to the configured remote proxy. 

Px provides both http and https access via default port 3128. But you have changed this in your configuration according to your screenshot to port 80. If you do this you have to change the proxy settings in the VM to your alternative port too. 

This URL is stored as so called "Proxy Settings" in the VM e.g. in following files:

  • /etc/environment  *1)
  • /etc/wgetrc
  • ~/.nuget/NuGet/NuGet.Config

 

*1) I opend the first file with the command "nano /etc/environment". Here you have to change 3128 to 80.

nickH_0-1646299834258.png

 

But I would suggest you to just download px.exe here. And start it on your host computer, like it was shown in the How-To video. Then you don't have to change these proxy settings. 

Note: You can check if px is running in the task manager. Px is running if you can see these three background processes:

nickH_1-1646300269063.png

 

There seems to be a missunderstanding here. The host windows machine does have a direct internet connection. Which is why I tried the no-proxy approach in the first place.

nickH
Community Moderator
Community Moderator

I'm not able to support the QEMU VM for Windows 11. So I can't recreate your problem or verify that it has something to do with your OS. 

But could you try to connect your host directly with a WLAN or Ethernet connection and start the VM again? From the screenshots of your network adapters it looks like you are connected with some kind of USB to Ethernet adapter. But your college is connected with WLAN. Maybe there is a problem with its NIC.

More information about networking with a QEMU VM can be found here: https://wiki.qemu.org/Documentation/Networking

 

 

nickH
Community Moderator
Community Moderator

Hello ChrisITD,

Have you found a solution to your troubles? 

I'm curious to know, what was the reason for your not working network connection. 

Best regards

Nick

CodeShepherd
Community Moderator
Community Moderator

Any news here or can this topic be closed?

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist