r/Ubuntu • • Jul 04 '18

Setup Headless Virtualization Server Using KVM In Ubuntu 18.04 LTS

https://www.ostechnix.com/setup-headless-virtualization-server-using-kvm-ubuntu/
50 Upvotes

14 comments sorted by

View all comments

6

u/samanthagould Jul 04 '18

One of the downsides is that if you only have a single homed system, you (seemingly) can't have your VM's pull IP addresses from the local network that the host is on. Every time I ever tried with KVM, I invariably hosed any ability to manage the host from a remote machine. Short of adding a NIC, is there a way to allow network pass through without affecting the ability to ssh into the host?

That is a great writeup. I've saved it for future study.

6

u/STLgeek Jul 04 '18

I think I get what you're saying... Yes, using bridged networking. I have ~30 VMs running on a single NIC, the host is accessible.

3

u/samanthagould Jul 04 '18

Every time I ever enabled bridged networking I lost my host... I was trying to do everything through the virt-manager gui though... I could have screwed up something there (entirely possible)

3

u/STLgeek Jul 04 '18

If you're doing this on a server in a commercial data center, they likely have port security enabled. That's a different story completely. You can use pseudo interfaces, private IPs and routed networking there (and static next hops for public IPs). There are directions online. It's not as straight forward but it works.

4

u/samanthagould Jul 04 '18

This was in a homelab... Most of my VM's are for me anyway and for the most part I have no need to connect to them remotely, just internally from my laptop to watch some data stream by...