Spice ports

Issues related to configuring your network
Post Reply
MartinR
Posts: 652
Joined: 2015/05/11 07:53:27
Location: UK

Spice ports

Post by MartinR » 2020/12/30 18:04:44

I have several VMs runable on my machine, and as such they are booted when required. I normally connect using the remote viewer over a spice port (5900 upwards). Is there any way to tie a specific port to a specific VM? Currently I need to use cockpit to find out which port a particular VM is attached to, and it seems almost random for any given boot.

User avatar
TrevorH
Forum Moderator
Posts: 30337
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Spice ports

Post by TrevorH » 2020/12/30 18:09:43

Yes, edit the xml and tell it to use a specific port but be aware that if you have conflicts then a 2nd VM will just refuse to start...

Code: Select all

    <graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1'>
That's for a vnc console but spice should have something similar.

Edit: oh and autoport='no'
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

MartinR
Posts: 652
Joined: 2015/05/11 07:53:27
Location: UK

[solved] Re: Spice ports

Post by MartinR » 2020/12/30 23:17:07

Thanks for the prompt reply. After spending a few hours this afternoon trying to sort things out, and after you kind advice I started drawing up a schedule for which ports should go to each machine. Then I noticed that there was a virt-viewer which did nearly the same as remote-viewer but didn't appear in the menus. :oops: I say "nearly the same", but with one crucial difference, it allows you to specify the target by name, not port. :D I've now set up a submenu "Virtual machine consoles" with an entry for each machine and life looks a lot simpler. Thanks once again for the pointer, I'd still be looking at the tree, not the wood, otherwise.

Post Reply

Return to “CentOS 8 - Networking Support”