LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-21-2023, 10:58 PM   #46
MikeVx
Member
 
Registered: Feb 2003
Posts: 76

Original Poster
Rep: Reputation: 1

It turned out that the Windows XP problem was two things: I can't ping past the gateway of 10.0.2.2 in any OS (pinging is my go-to test for connectivity), and the IE in XP is too old for modern HTTPS connections. It took some futzing to find a site that had no HTTPS, but that connection is working.
 
Old 11-21-2023, 11:10 PM   #47
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,383

Rep: Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762
Quote:
IE in XP is too old for modern HTTPS connections
I have better success with Google Chrome.
 
Old 11-22-2023, 07:06 AM   #48
MikeVx
Member
 
Registered: Feb 2003
Posts: 76

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by allend View Post
I have better success with Google Chrome.
I do Firefox, but I can't change the browser because all of the modern sites are HTTPS and IE won't connect to download anything.

If I can figure out bridged networking I can import an FF install file that way. Not really important, I was just seeing how an ancient system would work. This is proving to be an education in different ways than I had figured on.
 
Old 11-22-2023, 12:10 PM   #49
MikeVx
Member
 
Registered: Feb 2003
Posts: 76

Original Poster
Rep: Reputation: 1
I solved the ReactOS video mode problem by telling virt-manager that I was installing Windows NT 4.0.

Frankly, I have no idea of how I solved the ISO changing issue, if it was anything I did, but it is working now.

The last couple of days have gotten me fairly far. My remaining outstanding problem is bridged networking. That is how I get data in to and out of the VMs that does not originate on the Internet.

To save people digging through the thread: I create a share on the host computer, and share it via NFS for Linux systems, and Samba for Windows systems. This lets me freely move data between the host and the VMs, and from VM to VM using the host as the relay point.

I'll resume chasing the bridged networking after the holiday weekend. For those in the US, Happy Thanksgiving! In the spirit of Alice in Wonderland, for the rest of the world, Happy Un-Thanksgiving!
 
Old 11-22-2023, 08:33 PM   #50
MikeVx
Member
 
Registered: Feb 2003
Posts: 76

Original Poster
Rep: Reputation: 1
Smile

Success!

The bridged networking situation has been resolved. Not as neatly as I'd like, but it has been resolved.

Somehow the setuid bit had been turned off on qemu-bridge-helper. I had turned it on previously, but things were still confusing at the time.

After I reset the bit, I am able to get out to my local network. I would prefer that it actually be on my network instead of a pocket network of 192.168.122.0/24, but I'll take it as I can reach into the pocket from my host. I haven't had a need to reach VMs from other devices, so not having a real presence on my LAN may not be a problem.

Some testing has revealed that, like most DHCP systems I'm familiar with, the bridge hands out the same address to the VM each time. This will let me use NFS to share between the host and the Linux VMs as the addresses will be persistent. Samba not being address-dependent will be OK now that I can reach my host.

Thanks to everyone for the help in getting here. {Insert the "happy Happy, Joy Joy" song here.}
 
1 members found this post helpful.
Old 11-27-2023, 04:07 PM   #51
MikeVx
Member
 
Registered: Feb 2003
Posts: 76

Original Poster
Rep: Reputation: 1
I was so tangled in getting networking to work at all, that I forgot something important until I tried replicating bits of my set-up. One thing I do is determine which systems go through a VPN based on an address range assigned by my router. In order to do this the NICs have to be visible to the LAN. These are set up infrequently, so I forgot about the issue.

Now I have more research to do. allend previously mentioned TAP, so I'm looking at that.
 
Old 11-28-2023, 06:16 PM   #52
MikeVx
Member
 
Registered: Feb 2003
Posts: 76

Original Poster
Rep: Reputation: 1
Success....again!

It took some finding, but I dug up a solution to bridging to the LAN.

First I had to remove the file /etc/libvirt/qemu/networks/autostart/default.xml to remove the virbr0 interface.

I added this to my /etc/rc.d/rc.local file:
Code:
ifconfig eth0 0.0.0.0
brctl addbr br0
brctl addif br0 eth0
dhclient br0
I will admit to not fully understanding all of this, but I'll see what I can learn about it all now that I have it working. The part I find confusing is assigning a null address to eth0 and everything still works, the rest seems sensible. It seems that the address of 0.0.0.0 does not actually get set. Interesting.

The result is:

After changing my current VM Bridge settings to a device name of br0, booting the VM causes a tap# interface to appear on the host, with the # starting at 0 and incrementing for each active VM. The various VMs are being assigned addresses from my router as I want them to. I haven't tested reserving addresses yet, but I expect that to work correctly as I can see the VNICs in the router matching the address given out. VMs can connect to the host and each other, the host can connect to the VMs.

Somehow the eth0 and br0 interfaces share the same IP address, but it is working, so no complaints.

I'll let this setup run for a few weeks and see how it behaves.

The next adventure: Migrating my old Windows VMs to QEMU without invalidating the registrations. This one may actually be impossible. :-)
 
Old 11-28-2023, 08:56 PM   #53
MikeVx
Member
 
Registered: Feb 2003
Posts: 76

Original Poster
Rep: Reputation: 1
Quick follow-up. The reservation of addresses works as it should.
 
Old 11-29-2023, 12:29 AM   #54
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,383

Rep: Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762
Quote:
The next adventure: Migrating my old Windows VMs to QEMU without invalidating the registrations. This one may actually be impossible. :-)
A pound to a penny on it not working. Different hypervisors are seen as different hardware as far as a Windows install is concerned.
 
Old 12-01-2023, 12:04 AM   #55
MikeVx
Member
 
Registered: Feb 2003
Posts: 76

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by allend View Post
A pound to a penny on it not working. Different hypervisors are seen as different hardware as far as a Windows install is concerned.
That would appear to be the case. Both Windows 7 and Windows 10 went unregistered. My attempt to copy over Windows XP failed. It crashes while booting with a quick blue screen then a 30 second countdown to a reboot which blue screens...
 
Old 12-01-2023, 05:48 AM   #56
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,834
Blog Entries: 17

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Quote:
Originally Posted by MikeVx View Post
That would appear to be the case. Both Windows 7 and Windows 10 went unregistered. My attempt to copy over Windows XP failed. It crashes while booting with a quick blue screen then a 30 second countdown to a reboot which blue screens...
Windows have some different requirements on QEMU/kvm than Linux distributions. Mostly in regards to the "normal" drivers not working in the Windows guest, so you need to take extra care to chose compatible options FOR the guest in the host VM setup, and possibly do some juggling in Windows after. That's maybe a good day of research and experiments.
 
Old 12-02-2023, 01:38 PM   #57
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by MikeVx View Post
I figured out the problem. Having used the ISO for Windows XP from a certain directory, all ISOs that I want to access have to be in that directory. I'll need to run some tests to see if this is across all VMs or is on a per-VM basis. If it's per-VM, I can take care to define a pool directory for each VM by creating the directory and placing the install ISO there. Further ISOs can be put there as needed. If it's global, this will be messy.

Now I have the driver ISO connected,l but I can't seem to get things installed correctly. I might be doing something wrong, it's been a bit since I used XP for anything.

Time to test if it's VM-specific or global...
On my system I can select the location of the install ISO by using the browse button then the browse local button. The first one that opens is the last used directory but the browse local allows navigation in the file system..
 
Old 12-03-2023, 11:15 PM   #58
MikeVx
Member
 
Registered: Feb 2003
Posts: 76

Original Poster
Rep: Reputation: 1
More updates as I continue tinkering with my setup to replicate what I had before the whole upgrade thing.

After replacing my boot drive and installing Slackware 15, I started in on replicating the prior setup.

With help in another thread I got DVDStyler working. Then this thread got me going on KVM/QEMU to replace VirtualBox. Now I'm just tweaking bits of network behavior.

I am able to access a share on the host with NFS from linux guests. I am currently haggling with Samba. Windows 11 sees the mount but complains I lack permission. Windows 10 and 7 haven't been attempted yet. Windows XP says my host has too many connections.

I'll work on figuring out what I did wrong on the Samba setup, and create a new thread if I need help. I figure that after all the help I have been given on this thread, I should at least keep people updated on the results of their efforts.
 
Old 12-04-2023, 02:16 AM   #59
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,834
Blog Entries: 17

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Quote:
Originally Posted by MikeVx View Post
Now I'm just tweaking bits of network behavior.

I am able to access a share on the host with NFS from linux guests. I am currently haggling with Samba. Windows 11 sees the mount but complains I lack permission. Windows 10 and 7 haven't been attempted yet. Windows XP says my host has too many connections.

I'll work on figuring out what I did wrong on the Samba setup, and create a new thread if I need help. I figure that after all the help I have been given on this thread, I should at least keep people updated on the results of their efforts.
Hmm, network is one of the more complex things to get correct. It's often alright to just use the user mode networking, but for any serious tasks a more complex network setup is required, and the proper access rights to do so.
 
Old 12-04-2023, 06:30 PM   #60
MikeVx
Member
 
Registered: Feb 2003
Posts: 76

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by zeebra View Post
Hmm, network is one of the more complex things to get correct. It's often alright to just use the user mode networking, but for any serious tasks a more complex network setup is required, and the proper access rights to do so.
I found a parameter in smb.conf that I didn't remember needing, but it has fixed Windows 11. I expect that 10 and 7 will be OK, XP is still complaining that my host has too many connections. I'll see about getting an NFS client after I get an XP-compatible Firefox in there. I figured out that I can download the FF and create an ISO file, and connect it to the VM. It's the long way around, but I'll only need to do it once...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Install QEMU on ubuntu 15.04 and mange QEMU with Virt Manager LXer Syndicated Linux News 0 05-29-2015 04:41 PM
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 02:05 PM
KVM + qemu + virt-manager issues cyanide_will Linux - Software 4 04-15-2008 01:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration