Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on similar kvm domain names in the setup face #292

Open
MarkusGnigler opened this issue Oct 9, 2024 · 0 comments
Open

Issue on similar kvm domain names in the setup face #292

MarkusGnigler opened this issue Oct 9, 2024 · 0 comments

Comments

@MarkusGnigler
Copy link

I have a problem when 2 similar names exists in kvm.
The required name for setup is RDPWindows but i have a previous testing machine with name RDPWindows.Back.

The grep commands on libvirt waCheckVMRunning doesnt seem to be complettelly correct.

I switch to regex strict match exept the running query e.g. **grep -wq "^$VM_NAME$" **.

full change:

VM_PAUSED=0
virsh list --state-paused | grep -wq "^$VM_NAME$" || VM_PAUSED="$?"
VM_RUNNING=0
virsh list --state-running | grep -wq "$VM_NAME" || VM_RUNNING="$?"
VM_SHUTOFF=0
virsh list --state-shutoff | grep -wq "^$VM_NAME$" || VM_SHUTOFF="$?"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant