-
Notifications
You must be signed in to change notification settings - Fork 21
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
How would I install 'virt-bootstrap' on Ubuntu 18.04? #2
Comments
Hi Marat,
Note that virt-bootstrap has the following dependencies: |
Thanks @rst0git , the installation procedure worked after I also did |
But you still need to do a lot to actually make it functional. For example, skopeo I had to get from this ppa or I had an error. Now I am getting the following error from virt-manager when trying to run
any idea what I'm missing here? |
Hi @Queuecumber, The error message:
shows that the
Or you can run virt-manager/virt-bootstrap as root. This will make virt-bootstrap use LXC driver of libvirt instead of qemu-session when extracting the rootfs of the contianer image. |
Same error even after loading those modules and verifying that they are loaded. I run libvirt as my local user so that it can interface with pulseaudio, could that be the problem? |
Hey @rst0git @maratbn @Queuecumber @giuseppe @Antique username@PC:~/Downloads/virt-bootstrap-master/src/virtBootstrap$ sudo python virt_bootstrap.py docker://ubuntu:latest /home/dino/Downloads/ubuntu-rootfs |
@dinoRkz What is the output of: $ mkdir /tmp/test
$ skopeo copy docker://ubuntu:latest dir:/tmp/test |
Hey, thanks for replying. This is the output of the above commands after execution. FATA[0000] Error loading trust policy: open /etc/containers/policy.json: no such file or directory I tried to open the /etc/containers directory, but it does not exist. |
@rst0git Please have a look at containers/skopeo#181
I tried executing the above command, and it worked. |
I tried to do some alternative fix from here https://github.com/containers/skopeo/blob/master/default-policy.json And then I executed the command The output of the above command is shown below. Could you please help me to resolve this error? dino@Dinesh-PC:~/Downloads/virt-bootstrap-master/src/virtBootstrap$ sudo python virt_bootstrap.py docker://ubuntu:latest /home/dino/Downloads/ubuntu-rootfs |
Do you have |
Thank you and sorry for bothering you. I realised that I have to delete ubuntu. Installed fedora. Followed all the steps mentioned above including #2 (comment) So, I have tried to run program using root, but, this error showed up: [root@localhost virtBootstrap]# sudo python virt_bootstrap.py docker://ubuntu:latest /home/dino/Downloads/ubuntu-rootfs [root@localhost virtBootstrap]# virt-sandbox -c lxc:/// --name=bootstrap_7997 -m host-bind:/mnt=/home/dino/Downloads/ubuntu-rootfs -- /bin/tar xf /var/cache/virt-bootstrap/docker_images/6cf436f81810f067c6d4ffca6793eae7cb6d38456715b0707d8a5a2d1acccf12 -C /mnt --exclude dev/* --overwrite --absolute-names --acls --xattrs --selinux ============================================================================== EDIT: Screenshot of the output is here: |
I think that the |
I'm using virt-manager on Ubuntu 18.04, and I specified in the virt-manager UI to create a new Libvirt-LXC virtual machine that is an operating system container. The UI then asks me to provide an existing OS root directory, but also implies that such a directory can be created with the message "To enable OS directory tree creation, please install virt-bootstrap".
I could not find a .deb package for this project, so I suppose it would be done manually, or perhaps by installing another package that includes it? What would be the procedure to install this software on Ubuntu 18.04 and configuring it so that virt-manager could use it?
Thanks,
Marat
The text was updated successfully, but these errors were encountered: