On 10/4/19 11:02 AM, Ljubomir Ljubojevic wrote:> ... > It is OK if your KVM host is on LAN cable that never is disconnected > or power goes down. But I have a laptop I use first at work where I > use LAN and then at home where I use WLAN only, and suspending laptop > is same as disconnecting LAN, bridge is disabled and KVM bridged > network unhooked, and you can never reinitialize it without at least > restarting kvm, and full treatmant is shuting down VM, restarting NM > then network then starting VM again... So I just shutdown VM and > laptop and boot everey itme I move. Maybe I can change this behavior now.You and I have nearly identical use cases, interestingly enough.? My laptop that I'm using right now to type this is my development machine for a number of KVM things I do in the data center as well. Since I run it docked with ethernet on my desk, but not docked and on WiFi at home, I've had to do two things: 1.) A real shutdown when I leave work.? For some reason I've never be a fan of suspend/hibernate, and since I use LUKS I'd rather not leave the volume unlocked as it would be in a suspend/hibernate scenario; 2.) NAT-connected VMs in development, since I've never been able to get bridging to work properly over wireless (specification says it can't work, and I think that's true in practice, but I always reserve the right to be wrong!). My laptop is at least as powerful as most of our servers, and it works great for development purposes.
On 10/4/19 5:27 PM, Lamar Owen wrote:> On 10/4/19 11:02 AM, Ljubomir Ljubojevic wrote: >> ... >> It is OK if your KVM host is on LAN cable that never is disconnected >> or power goes down. But I have a laptop I use first at work where I >> use LAN and then at home where I use WLAN only, and suspending laptop >> is same as disconnecting LAN, bridge is disabled and KVM bridged >> network unhooked, and you can never reinitialize it without at least >> restarting kvm, and full treatmant is shuting down VM, restarting NM >> then network then starting VM again... So I just shutdown VM and >> laptop and boot everey itme I move. Maybe I can change this behavior now. > > You and I have nearly identical use cases, interestingly enough.? My > laptop that I'm using right now to type this is my development machine > for a number of KVM things I do in the data center as well. Since I run > it docked with ethernet on my desk, but not docked and on WiFi at home, > I've had to do two things: > 1.) A real shutdown when I leave work.? For some reason I've never be a > fan of suspend/hibernate, and since I use LUKS I'd rather not leave the > volume unlocked as it would be in a suspend/hibernate scenario; > 2.) NAT-connected VMs in development, since I've never been able to get > bridging to work properly over wireless (specification says it can't > work, and I think that's true in practice, but I always reserve the > right to be wrong!).I have VM in NAT mode mostly these days, but sometimes I need bridged network to recognize some hardware on the network, Mikrotik WiFi routers or printers so I need ability to go to bridge. If this with NetworkManager-config-server package works, I can at most times (if I want) plug a LAN to my laptop and be happy. I do not use LUKS so suspend until I get home 10 minutes later is ok.> > My laptop is at least as powerful as most of our servers, and it works > great for development purposes.I have Dell Vostro 15 with Core i7, 12GB RAM and 512GB SSD + 1TB HDD> > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >-- Ljubomir Ljubojevic (Love is in the Air) PL Computers Serbia, Europe StarOS, Mikrotik and CentOS/RHEL/Linux consultant
On 2019-10-04 10:27, Lamar Owen wrote:> On 10/4/19 11:02 AM, Ljubomir Ljubojevic wrote: >> ... >> It is OK if your KVM host is on LAN cable that never is disconnected >> or power goes down. But I have a laptop I use first at work where I >> use LAN and then at home where I use WLAN only, and suspending laptop >> is same as disconnecting LAN, bridge is disabled and KVM bridged >> network unhooked, and you can never reinitialize it without at least >> restarting kvm, and full treatmant is shuting down VM, restarting NM >> then network then starting VM again... So I just shutdown VM and >> laptop and boot everey itme I move. Maybe I can change this behavior now. > > You and I have nearly identical use cases, interestingly enough.? My > laptop that I'm using right now to type this is my development machine > for a number of KVM things I do in the data center as well. Since I run > it docked with ethernet on my desk, but not docked and on WiFi at home, > I've had to do two things: > 1.) A real shutdown when I leave work.? For some reason I've never be a > fan of suspend/hibernate, and since I use LUKS I'd rather not leave the > volume unlocked as it would be in a suspend/hibernate scenario; > 2.) NAT-connected VMs in development, since I've never been able to get > bridging to work properly over wireless (specification says it can't > work, and I think that's true in practice, but I always reserve the > right to be wrong!).I wonder if it is possible to do what I do on FreeBSD laptop: there I created link aggregation interface which includes wired adapter and wireless one (in that priority order), making networking acting "as smart as macintosh does ;-) ". I'm sure one of Linux Experts can point us in right direction (at the moment I just use GUI applet to enable interfaces etc). Valeri> > My laptop is at least as powerful as most of our servers, and it works > great for development purposes. > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos-- ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++
On 10/4/19 11:39 AM, Ljubomir Ljubojevic wrote:> ... > I have VM in NAT mode mostly these days, but sometimes I need bridged > network to recognize some hardware on the network, Mikrotik WiFi routers > or printers so I need ability to go to bridge.I've kludged together a solution for those times here by using the NAT connection, but then running an OpenVPN client on the guest to an OpenVPN server with layer-2 adjacency to those sorts of devices.? That has the added bonus of letting those layer-2 services work even from off-site (part of the reason I use LUKS!).? I use static addresses in the OpenVPN setup as well, allowing controlled access to certain resources (like the control interface addresses and ports to our two 26-meter radio telescopes).> If this with NetworkManager-config-server package works, I can at most > times (if I want) plug a LAN to my laptop and be happy.I am interested in what you find!> I have Dell Vostro 15 with Core i7, 12GB RAM and 512GB SSD + 1TB HDDDell Precision M6700 with Core i7-3740QM @ 2.7GHz, 24GB RAM, 500GB SSD plus 2x 1TB HGST 7K1000's.? I never buy new, always gently preowned, and it's amazing to me how well the 3740QM performs relative to newer stuff.... and I paid less than 10% of MSRP for it....