Results 1 to 3 of 3

Thread: virt-p2v-make-disk does not work for me on bionic

  1. #1
    Join Date
    Jun 2018
    Beans
    4

    Question virt-p2v-make-disk does not work for me on bionic

    Hello all. I'm running bionic and need to get a working p2v setup.

    As of reading the man pages for virt-p2v(1) (http://manpages.ubuntu.com/manpages/bionic/man1/virt-p2v.1.html) and
    virt-p2v-make-disk(1) (http://manpages.ubuntu.com/manpages/bionic/man1/virt-p2v-make-disk.1.html) I tried to make
    such a bootable disk to begin the process. Quickly I ran into trouble as you'll see.

    First, after installing the requisite libguestfs-tools and even virt-goodies I see this error...

    $ virt-p2v-make-disk -o p2v-bionic-bootable.img
    virt-p2v-make-disk: cannot find /lib/x86_64-linux-gnu/virt-p2v/virt-p2v.xz


    As google showed me this looks like the bug reported here https://bugs.debian.org/cgi-bin/bugr...cgi?bug=897684
    and sure enough the path isn't right...

    $ dpkg --listfiles libguestfs-tools | grep virt-p2v.xz/usr/lib/x86_64-linux-gnu/virt-p2v/virt-p2v.xz


    to work-around I did this

    $ sudo mkdir -p /lib/x86_64-linux-gnu/virt-p2v/
    $ sudo ln -s /usr/lib/x86_64-linux-gnu/virt-p2v/virt-p2v.xz /lib/x86_64-linux-gnu/virt-p2v/virt-p2v.xz


    Trying again I get a different error...

    $ virt-p2v-make-disk -o p2v-bionic-bootable.img
    virt-p2v-make-disk: cannot find dependencies file (/share/virt-p2v/dependencies.debian)


    At this point I'm at a loss. the path of /share looks very unexpected.

    Where does this dependencies file come from? Or am I just doing it wrong?

  2. #2
    Join Date
    Nov 2009
    Beans
    1

    Re: virt-p2v-make-disk does not work for me on bionic

    I managed to get virt-p2v-make-kickstart to run on bionic after installing it ( libguestfs-tools ) and making these soft links to link directories ( !! not just files ):

    sudo ln -s /usr/share/ /share
    sudo ln -s /usr/lib/x86_64-linux-gnu/virt-p2v/ /lib/x86_64-linux-gnu/virt-p2v

    Now I have an 85k p2v.ks file but where is the livecd creator mentioned in the man pages??

  3. #3
    Join Date
    Aug 2013
    Beans
    1

    Re: virt-p2v-make-disk does not work for me on bionic

    Is this issue still open?
    I resolved it to set prefix variable in shell before execute command...

    export prefix=/usr/

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •