Skip to content

[Bug]: compose.yml: console is not accessible #776

Open
@bam80

Description

@bam80

Operating system

Fedora 42

Description

On podman-compose up,
console is screwed up and input is not accessible with sample compose.yml.

Alpine boots, but it's not possible to login to the system or issue commands.
Ctrl+C stops the container.

Note I don't have Docker to test with it.

Docker compose

services:
  qemu:
    image: qemux/qemu
    container_name: qemu
    environment:
      BOOT: "alpine"
    devices:
      - /dev/kvm
      - /dev/net/tun
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
    volumes:
      - ./qemu:/storage
    restart: always
    stop_grace_period: 2m

Docker log

$ podman logs qemu 
❯ Starting QEMU for Docker v7.12...
❯ For support visit https://github.com/qemus/qemu
❯ CPU: Intel Celeron 847 | RAM: 3/8 GB | DISK: 96 GB (btrfs) | KERNEL: 6.14.6-300.fc42.x86_64...

sysctl: permission denied on key "net.ipv4.ip_forward"
❯ ERROR: IP forwarding is disabled. Please add the following setting to your container: --sysctl net.ipv4.ip_forward=1
❯ Warning: podman detected, falling back to user-mode networking!
❯ Notice: port mapping will not work without "USER_PORTS" now.
❯ Warning: your configured RAM_SIZE of 2 GB is very close to the 3.4 GB of memory available, please consider a lower value.
❯ Booting image using QEMU v10.0.0...

BdsDxe: failed to load Boot0002 "UEFI QEMU QEMU HARDDISK " from PciRoot(0x0)/Pci(0xA,0x0)/Scsi(0x0,0x0): Not Found
BdsDxe: loading Boot0001 "UEFI QEMU QEMU CD-ROM " from PciRoot(0x0)/Pci(0x5,0x0)/Scsi(0x0,0x0)
BdsDxe: starting Boot0001 "UEFI QEMU QEMU CD-ROM " from PciRoot(0x0)/Pci(0x5,0x0)/Scsi(0x0,0x0)

                                       GNU GRUB  version 2.12

 ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
 │*Linux virt                                                                                     
 │                                                                                                
 │                                                                                                
 │                                                                                                
 │                                                                                                
 │                                                                                                
 │                                                                                                
 │                                                                                                
 │                                                                                                
 │                                                                                                
 │                                                                                                
 │                                                                                                
 │                                                                                                
 │                                                                                                
 │                                                                                                
 │                                                                                                
 │                                                                                                
 │                                                                                                
 │                                                                                                 
 └────────────────────────────────────────────────────────────────────────────────────────────────┘

      Use the ▲ and ▼ keys to select which entry is highlighted.                              
      Press enter to boot the selected OS, `e' to edit the commands before booting or `c' for 
      a command-line.                                                                          
   The highlighted entry will be executed automatically in 0s.                                     


  Booting `Linux virt'


Welcome to Alpine Linux 3.21
Kernel 6.12.13-0-virt on an x86_64 (/dev/ttyS0)

qemu-system-x86_64: terminating on signal 2 from pid 1 (/usr/bin/tini)
localhost login: bam@old:/var/home/bam/work/anaconda$

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions