Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

yum isn't working inside vm #288

Closed
wcwxyz opened this issue Jul 14, 2016 · 5 comments
Closed

yum isn't working inside vm #288

wcwxyz opened this issue Jul 14, 2016 · 5 comments
Assignees

Comments

@wcwxyz
Copy link

wcwxyz commented Jul 14, 2016

I'm trying docker + runv-containerd + runv with stock kernel/initrd from hyperstart project.
After I run:
docker run -it --rm centos:6 /bin/bash

Inside the vm:

[root@4a2b5ba9b6ef /]# yum
rpmdb: mmap: Invalid argument
error: db3 error(22) from dbenv->open: Invalid argument
error: cannot open Packages index using db3 - Invalid argument (22)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:

Error: rpmdb open failed
@wcwxyz
Copy link
Author

wcwxyz commented Jul 14, 2016

I tested with centos:7, yum/rpm is working fine.

@crook
Copy link

crook commented Sep 22, 2016

@wcwxyz can you show the output of the following comand?

yum --debuglevel=3 clean all
yum --debuglevel=3 makecache

@wcwxyz
Copy link
Author

wcwxyz commented Dec 8, 2016

It seems like a 9p filesystem issue. After I modified hypertstart to mount 9p fs with "trans=virtio,cache=mmap", it works.

@gnawux
Copy link
Member

gnawux commented May 16, 2017

related with hyperhq/hyperstart#88

@bergwolf
Copy link
Member

This rpmdb open failed error is fixed with hyperhq/hyperstart#74

The remaining yum Rpmdb checksum is invalid issue is tracked in hyperhq/hyperstart#88. So close this one.

harche pushed a commit to harche/runv that referenced this issue Nov 28, 2017
setup /etc/hostname for container
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants