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

podman machine start reports error but seem to run ? #11421

Closed
maxandersen opened this issue Sep 2, 2021 · 7 comments · Fixed by #11442
Closed

podman machine start reports error but seem to run ? #11421

maxandersen opened this issue Sep 2, 2021 · 7 comments · Fixed by #11442
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@maxandersen
Copy link

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description

Steps to reproduce the issue:

podman machine start
INFO[0000] waiting for clients...
INFO[0000] listening tcp://0.0.0.0:7777
INFO[0000] new connection from  to /Users/max/tmp2/podman/qemu_podman-machine-default.sock
Waiting for VM ...
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]

Describe the results you received:

Some indication that there was a success and a hint on what to do next as user.

Describe the results you expected:

podman machine start
INFO[0000] waiting for clients...
INFO[0000] listening tcp://0.0.0.0:7777
INFO[0000] new connection from  to /Users/max/tmp2/podman/qemu_podman-machine-default.sock
Waiting for VM ...
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]
SUCCESS podman machine is now running! You should now be able to use commands such as `podman run`

or ultimately:

podman machine start
Starting podman machine...
SUCCESS podman machine is now running! You should now be able to use commands such as `podman run`
@mheon
Copy link
Member

mheon commented Sep 3, 2021

Can you provide more environment details - where are you running podman machine on (OS X? If so, what CPU, Intel or M1?).

@maxandersen
Copy link
Author

OSX - Intel

@scottschreckengaust
Copy link
Contributor

I am receiving the same "warning" message with podman machine start on an Intel based MacOS installed with brew:

❯ sw_vers
ProductName:	macOS
ProductVersion:	11.5.2
BuildVersion:	20G95

❯ system_profiler | grep "Processor Name: "
      Processor Name: Quad-Core Intel Core i5

❯ brew --version
Homebrew 3.2.10

❯ podman --version
podman version 3.3.0

❯ qemu-system-x86_64 --version
QEMU emulator version 6.1.0
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers

Consider adding the -cpu host to the addArchOptions function like the linux version:

func (v *MachineVM) addArchOptions() []string {
opts := []string{
"-accel", "kvm",
"-cpu", "host",
}
return opts
}

at:

func (v *MachineVM) addArchOptions() []string {
opts := []string{"-machine", "q35,accel=hvf:tcg"}
return opts
}

See GNS3/gns3-server#1639 for the inspiration

@baude
Copy link
Member

baude commented Sep 5, 2021

the error is benign

@baude baude closed this as completed Sep 5, 2021
@maxandersen
Copy link
Author

the error is benign

This issue is not about the specific warning - but that there is no indication to the user to know that the start succeeded - I'm suggesting that since such warnings/errors show up to actually print that there was a success; then users actually have a chance to know the warnings/errors are benign.

@rhatdan
Copy link
Member

rhatdan commented Sep 7, 2021

@maxandersen We have a fix to eliminate the warning. But you want a last line that says something like
XYZ VM Started
Correct?

@maxandersen
Copy link
Author

Yes. Something to reliably indicate success or failure.

mheon pushed a commit to mheon/libpod that referenced this issue Sep 20, 2021
Adding the `-cpu host` option to the `addArchOptions` function for
darwin removes the warning message, "host doesn't support requested
feature: CPUID.80000001H:ECX.svm [bit 2]" by qemu-system-x86_64 when
using the `podman machine start` command on MacOS

Closes containers#11421

[NO TESTS NEEDED]

Signed-off-by: Scott Schreckengaust <scottschreckengaust@users.noreply.github.com>
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants